/* ==================== */
/* Base & Layout Styles */
/* ==================== */
.directory-container {
    align-items: stretch;
    min-height: 100vh;
    background-color: #f5f5f5;
}

/* ================== */
/* Filter Components */
/* ================== */
.filter-section {
    background-color: var(--color-primary-light-100);
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    height: 100%;
}

.filter-checkbox {
    margin-bottom: 8px;
}

.filter-checkbox .form-check-label {
    font-weight: 500;
    cursor: pointer;
}

/* Offcanvas filter styling */
.offcanvas-filter .filter-section {
    box-shadow: none;
    background-color: transparent;
    padding: 0;
    height: auto;
}

.offcanvas-filter .filter-section h5 {
    margin-bottom: 1rem;
}

/* ================== */
/* Table Styling */
/* ================== */
#responsiveTableContainer {
    width: 100%;
    padding: 1rem;
}

#responsiveTable {
    width: 100% !important;
    max-width: 1400px;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

#responsiveTable thead th,
#responsiveTable tbody td {
    padding: 15px 20px !important;
}

#responsiveTable tbody td:first-child {
    padding-right: 0 !important;
}

#responsiveTable thead th {
    background-color: var(--color-primary-light-100);
    font-weight: 600;
}

/* Specialization text */
.specialization-text {
    max-width: calc(100% - 10px);
    white-space: normal;
    overflow: visible;
    text-overflow: ellipsis;
    display: inline-block;
    min-width: 200px;
}

/* When in responsive child row, show full text */
.dtr-data .specialization-text {
    max-width: none;
    white-space: normal;
}

/* Form styling */
select.form-select {
    height: 38px;
    line-height: initial !important;
}

/* ================== */
/* Responsive styles */
/* ================== */
@media (min-width: 768px) {
    .mobile-filter-tab {
        display: none;
    }
}

@media (max-width: 767.98px) {
    .desktop-filter {
        display: none !important;
    }
}

@media (min-width: 993px) {
    #responsiveTable {
        border-radius: 16px;
    }
}

@media (max-width: 576px) {
    .specialization-text {
        max-width: 200px;
    }
}

@media (min-width: 577px) and (max-width: 768px) {
    .specialization-text {
        min-width: 300px;
    }
}

@media (min-width: 769px) and (max-width: 992px) {
    .specialization-text {
        max-width: 400px;
    }
}

@media (min-width: 993px) {
    .specialization-text {
        max-width: 500px;
    }
}
