/* MAIN WRAPPER */
.main-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
}

/* CARD */
.tool-card {
    background: #fff;
    padding: 22px;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(0,0,0,0.06);
    font-size: 90%;
    width: 80%;
}

/* TITLES */
.tool-title {
    font-size: 1.4rem;
    margin-bottom: 20px;
}

.results-title {
    font-size: 1.1rem;
    margin-bottom: 15px;
}

/* ALERT */
.alert-error {
    padding: 15px;
    background: #ffecec;
    border: 1px solid #e8b4b4;
    border-radius: 4px;
    color: #b10000;
    margin-bottom: 20px;
}

/* BADGES */
.badge {
    padding: 5px 8px;
    border-radius: 3px;
    font-size: 0.85rem;
    color: #fff;
}

.badge-total {
    background: #0b8887;
}

.badge-groups {
    background: #d97706;
}

/* RESULTS */
.results-block {
    background: #f1faff;
    border: 1px solid #d5eefc;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.results-flex {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

.results-column {
    flex: 1;
    min-width: 260px;
}

.preview-list {
    padding-left: 20px;
}

.domain-count {
    font-size: 0.78rem;
}

/* FORMS */
.label-block {
    display: block;
    margin-top: 18px;
    font-weight: 600;
}

.textarea-block {
    width: 100%;
    padding: 10px;
    margin-top: 5px;
}

.file-input {
    margin-top: 10px;
}

.file-info {
    font-size: 0.9rem;
    color: #0b8887;
}

/* BUTTONS */
.btn {
    display: inline-block;
    padding: 10px 16px;
    border-radius: 4px;
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-size: 0.9rem;
    margin-top: 10px;
    margin-right: 6px;
}

.btn-primary {
    background: #0b8887;
}

.btn-dark {
    background: #555;
}

.btn-black {
    background: #333;
}

.btn-danger {
    background: #b91c1c;
}

.submit-btn {
    margin-top: 20px;
}

/* LOADING BOX */
.loading-box {
    display: none;
    text-align: center;
    margin-top: 20px;
}

.loading-text {
    font-size: 1rem;
    color: #0b8887;
    margin-bottom: 10px;
}

/* SPINNER */
.spinner {
    width: 30px;
    height: 30px;
    border: 4px solid #0b8887;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ANIMATION */
@keyframes spin {
    100% { transform: rotate(360deg); }
}
