/* Validate Results Page Specific Styles */

/* Results Summary */
.results-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0 0.5rem;
}

#resultsCount {
    font-size: 0.95rem;
    color: var(--brand-text-light);
    font-weight: 500;
}

/* Results Main Content */
.results-main-content {
    padding: 1.5rem;
    overflow-y: auto;
    width: 100%;
    max-width: 100%;
}

/* Results Table Container */
.results-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow-x: auto;
    width: 100%;
}

/* Results Table */
.results-table {
    width: 100%;
    min-width: 1400px;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.results-table thead {
    background: var(--brand-primary);
    color: white;
}

.results-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.results-table tbody tr {
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.results-table tbody tr:hover {
    background-color: #f8f5ff;
}

.results-table td {
    padding: 0.875rem 1rem;
    color: var(--brand-text-dark);
}

.results-table td .text-muted {
    color: #999;
    font-style: italic;
}


/* Badge Styles */
.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

/* Type Badges */
.badge-entra {
    background-color: #e0f2fe;
    color: #0369a1;
}

.badge-agency {
    background-color: #fef3c7;
    color: #d97706;
}

.badge-unknown {
    background-color: #f3f4f6;
    color: #6b7280;
}

/* Result Badges */
.badge-valid {
    background-color: #d1fae5;
    color: #059669;
}

.badge-not-found {
    background-color: #fee2e2;
    color: #dc2626;
}

.badge-disabled {
    background-color: #fef3c7;
    color: #d97706;
}

.badge-invalid {
    background-color: #fce7f3;
    color: #db2777;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--brand-text-light);
}

.empty-state p {
    font-size: 1.1rem;
    margin: 0;
}

/* Search and Filter Section */
.search-section {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.search-input {
    padding: 0.5rem 1rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.9rem;
    min-width: 280px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 3px var(--brand-primary-20);
}

.btn-search {
    padding: 0.5rem 1rem;
    background: var(--brand-primary);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-search:hover {
    background: var(--brand-primary-dark);
}

/* Filter Section */
.search-filters {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid #ddd;
}

.filter-label {
    font-size: 0.85rem;
    color: var(--brand-text-light);
    font-weight: 500;
}

.filter-select {
    padding: 0.4rem 0.75rem;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 0.85rem;
    background: white;
    cursor: pointer;
    transition: border-color 0.2s ease;
}

.filter-select:focus {
    outline: none;
    border-color: var(--brand-primary);
}

/* Button Group */
.button-group {
    display: flex;
    gap: 0.5rem;
    margin-left: auto;
}

.btn-secondary {
    padding: 0.5rem 1rem;
    background: white;
    color: var(--brand-primary);
    border: 1px solid var(--brand-primary);
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-secondary:hover {
    background: var(--brand-primary-20);
}

.btn-logout {
    padding: 0.5rem 1rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.btn-logout:hover {
    background: #b91c1c;
}

/* Top Bar Adjustments for Results Page */
.top-bar-left {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Responsive Design */
@media (max-width: 1200px) {
    .search-filters {
        margin-left: 0;
        padding-left: 0;
        border-left: none;
        margin-top: 0.75rem;
        width: 100%;
    }

    .top-bar-left {
        flex-direction: column;
        align-items: flex-start;
    }

    .button-group {
        margin-left: 0;
        margin-top: 0.75rem;
    }
}

@media (max-width: 768px) {
    .results-main-content {
        padding: 1rem;
    }

    .search-input {
        min-width: 200px;
    }

    .search-filters {
        flex-wrap: wrap;
    }

    .results-table {
        font-size: 0.75rem;
        min-width: 1100px;
    }

    .results-table th,
    .results-table td {
        padding: 0.5rem 0.4rem;
    }

    .badge {
        padding: 0.2rem 0.5rem;
        font-size: 0.65rem;
    }
}

@media (max-width: 480px) {
    .search-section {
        flex-direction: column;
        width: 100%;
    }

    .search-input {
        width: 100%;
        min-width: unset;
    }

    .btn-search {
        width: 100%;
    }

    .filter-select {
        flex: 1;
        min-width: 0;
    }

    .filter-label {
        display: none;
    }
}
