/* ===== LAYOUT CONTAINER STYLES ===== */
.fixed-header-container {
    position: relative;
    z-index: 1000;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* When fixed header is enabled */
body.has-fixed-header .fixed-header-container {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

.scrollable-content-container {
    min-height: 100vh;
}

/* When header is fixed, add top margin to content */
body.has-fixed-header .scrollable-content-container {
    margin-top: var(--header-height, 0);
}

/* ===== HERO BANNER STYLES ===== */
.hero-banner {
    padding: 13px 0;
}

.hero-banner.gradient-bg {
    background-color: #014d61;
    background-image: url('../images/bg-bg-gradient-bg.png');
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 2.5rem 1rem;
    position: relative;
    height: auto;
}

.hero-banner.back-pain-back-gradient-bg {
    background-color: #F9F9F9;
    background-image: linear-gradient(180deg, #CEE8F4 0%, #F9F9F9 100%);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 4rem 1rem;
    position: relative;
    height: auto;
}

.hero-banner.migraine-back-gradient-bg {
    background-color: #FFF8EF;
    background-image: linear-gradient(180deg, #D36639 0%, #FFF8EF 100%);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 4rem 1rem;
    position: relative;
    height: auto;
}

.hero-banner.fibromyalgia-back-gradient-bg {
    background-color: #F9F9F9;
    background-image: linear-gradient(180deg, #D27CD5 0%, #F9F9F9 100%);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 4rem 1rem;
    position: relative;
    height: auto;
}

.hero-banner.arthritis-back-gradient-bg {
    background-color: #F9F9F9;
    background-image: linear-gradient(180deg, #194DA1CC 0%, #F9F9F9 100%);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
    padding: 4rem 1rem;
    position: relative;
    height: auto;
}

.hero-banner.lyme-video-bg {
    position: relative;
    overflow: hidden;
    padding-bottom: 7%;
}

.hero-banner.lyme-video-bg .bg-video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: -1;
}

.hero-banner.lyme-video-bg .container {
    position: relative;
    z-index: 1;
    color: white;
}

.Imgavatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    /* background: #048AAE; */
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    border: 2px solid #43bda7;
    padding: 1px;
}

.avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #048aae;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.head-dropdown-toggle {
    display: flex;
    align-items: center;
    background: transparent;
    border-width: 1px;
    border-style: solid;
    border-color: rgb(212, 212, 212);
    border-image: initial;
    padding: 8px 16px;
    border-radius: 4px;
    gap: 8px;
    white-space: nowrap;
}

/* ===== DISEASE BUTTON STYLES ===== */
.disease-btn {
    border-radius: 2rem;
    border: 2px solid #048AAF;
    background: #fff;
    color: #048AAF;
    font-size: 1rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.2s, color 0.2s, border 0.2s;
}

.disease-btn.active,
.disease-btn.selected {
    background: #20b9a3 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
}

.disease-btn.active i,
.disease-btn.selected i {
    color: #fff !important;
}

.disease-btn i {
    color: #048AAF;
    transition: color 0.2s;
}

/* ===== THERAPY TAB STYLES ===== */
.therapy-tab-btn {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    min-width: 80px;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
}

.therapy-tab-btn:hover {
    background-color: rgba(32, 185, 163, 0.1);
    transform: translateY(-2px);
}

.therapy-tab-btn.active {
    background-color: rgba(32, 185, 163, 0.1);
    transform: translateY(-2px);
}

.therapy-tab-btn .text-center i {
    font-size: 2.5rem !important;
    margin-bottom: 2.15rem;
    transition: color 0.3s ease;
}

.therapy-tab-btn.active .text-center i {
    color: #20b9a3 !important;
}

.therapy-tab-btn .therapy-tab-label {
    font-size: 0.98rem;
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 8px;
}

.therapy-tab-btn.active .therapy-tab-label {
    color: #20b9a3 !important;
    font-weight: 600 !important;
}

.therapy-tab-btn.active .therapy-tab-label::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 3px;
    background-color: #20b9a3;
    border-radius: 2px;
}

#therapyTabs {
    gap: 1.7rem !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding-bottom: 10px;
}

/* Default therapy tab button styles */
.therapy-tab-btn {
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    min-width: 80px;
    cursor: pointer;
    background: transparent;
    border: none;
    outline: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: none !important;
}

.therapy-tab-btn:hover {
    background-color: rgba(32, 185, 163, 0.1);
    transform: translateY(-2px);
}

.therapy-tab-btn.active {
    background-color: rgba(32, 185, 163, 0.1);
    transform: translateY(-2px);
}

.therapy-tab-btn .text-center i {
    font-size: 2.5rem !important;
    margin-bottom: 1rem;
    transition: color 0.3s ease;
}

.therapy-tab-btn.active .text-center i {
    color: #20b9a3 !important;
}

.therapy-tab-btn .therapy-tab-label {
    font-size: 0.98rem;
    margin-top: 0.5rem;
    letter-spacing: 0.01em;
    transition: all 0.3s ease;
    position: relative;
    padding-bottom: 8px;
}

.therapy-tab-btn.active .therapy-tab-label {
    color: #20b9a3 !important;
    font-weight: 600 !important;
}

.therapy-tab-btn.active .therapy-tab-label::after {
    /* No underline border */
    display: none;
}

#therapyTitle {
    font-size: 1.6rem !important;
    padding-bottom: 10px !important;
}

/* ===== SEARCH BUTTON STYLES ===== */
.search-btn-custom {
    background: #20b9a3;
    color: #fff;
    font-size: 1rem;
    border-radius: 10px;
    padding: 0.6rem 0;
    font-weight: 600;
    width: 220px;
    max-width: 100%;
    margin-top: 1rem;
    margin-bottom: 0.4rem;
    border: none;
    transition: background 0.2s;
}

.search-btn-custom:hover {
    background: #17a08a;
}

/* ===== CUSTOM SELECT STYLES ===== */
.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 1rem;
}

.singlecustom-select-container.has-error .singlecustom-select-trigger {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .spinner-border {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
}

.btn-loading .btn-text {
    opacity: 0.7;
}

.custom-select .selected-text {
    padding: 0.75rem 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    background-color: #fff;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 42px;
    transition: all 0.2s ease;
    width: 100%;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.95rem;
}

.custom-select .selected-text:hover {
    border-color: #20b9a3;
    background-color: #f8f9fa;
}

.custom-select .selected-text::after {
    content: '▼';
    font-size: 0.8em;
    margin-left: 0.5rem;
    transition: transform 0.2s ease;
    color: #666;
}

.custom-select.open .selected-text::after {
    transform: rotate(180deg);
}

.custom-select .options-list {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    margin-top: 0.25rem;
    max-height: 300px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    width: 100%;
    box-sizing: border-box;
}

.custom-select.open .options-list {
    display: block;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.custom-select .search-container {
    padding: 0.75rem;
    border-bottom: 1px solid #ced4da;
    position: sticky;
    top: 0;
    background: white;
    z-index: 1;
}

.custom-select .search-input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    transition: all 0.2s ease;
}

.custom-select .search-input:focus {
    outline: none;
    border-color: #20b9a3;
    box-shadow: 0 0 0 0.2rem rgba(32, 185, 163, 0.15);
}

.custom-select .option {
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #f0f0f0;
}

.custom-select .option:last-child {
    border-bottom: none;
}

.custom-select .option:hover {
    background-color: #f8f9fa;
    color: #20b9a3;
}

.custom-select .option.selected {
    background-color: #e8f5e9;
    color: #20b9a3;
    font-weight: 500;
}

.custom-select.disabled .selected-text {
    background-color: #e9ecef;
    cursor: not-allowed;
    opacity: 0.7;
}

.custom-select.has-error .selected-text {
    border-color: #dc3545;
    background-color: #fff8f8;
}

.custom-select .error-message {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: none;
    padding-left: 0.25rem;
}

.custom-select.has-error .error-message {
    display: block;
    animation: fadeIn 0.2s ease;
}

.custom-select .no-results {
    padding: 1rem;
    text-align: center;
    color: #666;
    font-style: italic;
}

.custom-select .dropdown-spinner {
    position: absolute;
    right: 1rem;
    top: 70%;
    transform: translateY(-50%);
}

/* ===== NAVBAR STYLES ===== */
.navbar {
    padding: 0.5rem 1rem;
    transition: all 0.3s ease;
}

.navbar-brand img {
    max-height: 50px;
    width: auto;
    transition: all 0.3s ease;
}

.navbar-nav {
    gap: 1rem;
}

.navbar-nav .nav-link {
    color: #333;
    font-weight: 500;
    padding: 0.5rem 1rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: #20b9a3;
}

.navbar-nav .nav-link.active {
    color: #20b9a3;
}

.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 2px;
    background-color: #20b9a3;
}

#navbarDropdownLymeGeneral.active::after {
    content: '';
    position: absolute;
    bottom: 45%;
    left: 100%;
    transform: translateX(-50%);
    width: 0px;
    height: 0px;
    background-color: transparent;
}

.nav-link {
    position: relative;
}

/* ===== DROPDOWN MENU STYLES ===== */
.dropdown-menu {
    display: none;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.dropdown-menu.show {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

/* ===== NOTIFICATION STYLES ===== */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 15px 20px;
    border-radius: 8px;
    z-index: 9999;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    width: auto;
    max-width: 400px;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.success {
    background-color: #e8f5e9;
    border-left: 4px solid #4caf50;
    color: #2e7d32;
}

.notification.error {
    background-color: #ffebee;
    border-left: 4px solid #f44336;
    color: #c62828;
}

/* ===== SEARCH DIRECTORY STYLES ===== */
.search-directory {
    padding: 2rem 0;
}

.search-directory .card {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.search-directory .card-body {
    padding: 2rem;
}

/* ===== SEARCH TAB STYLES ===== */
.search-tab {
    padding: 12px 16px;
    font-size: 0.95rem;
    font-weight: 500;
    color: #555;
    border: none;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    background: transparent;
}

.search-tab.active {
    color: #014d61;
    border-bottom: 2px solid #014d61;
    background: rgba(1, 77, 97, 0.05);
}

.search-tab:hover:not(.active) {
    color: #014d61;
    background: rgba(1, 77, 97, 0.02);
}

.search-tab i {
    font-size: 1.1rem;
    margin-right: 8px;
}

/* ===== FORM STYLES ===== */
.form-label {
    font-weight: 500;
    color: #333;
    margin-bottom: 0.5rem;
}

.singlecustom-select-container {
    z-index: 1;
    position: relative;
    width: 100%;
    display: block;
    margin-bottom: 1.25rem;
    overflow: visible;
}



.singlecustom-select-trigger {
    padding: 5px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box;
}

.singlecustom-select-trigger:hover {
    border-color: #20b9a3;
}

.singlecustom-select-dropdown {
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid #eee;
}

.singlecustom-select-option {
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.singlecustom-select-option:hover {
    background-color: #0489aea6;
}

.singlecustom-select-option.selected {
    background: #048aae;
    color: #fff;
}

/* ===== BUTTON STYLES ===== */
.btn-primary.bg-success {
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary.bg-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(32, 185, 163, 0.2);
}

.btn-secondary {
    padding: 10px 24px;
    font-weight: 500;
    border-radius: 8px;
    background: #f5f5f5;
    color: #333;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: #eee;
    transform: translateY(-1px);
}

/* ===== LOADING OVERLAY STYLES ===== */
.loading-overlay {
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
}

.loading-overlay .spinner-border {
    width: 3rem;
    height: 3rem;
}

/* ===== ALERT STYLES ===== */
.alert-dismissible .btn-close {
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    padding: 0px 12px 27px 10px;
}

.notification .btn-close {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    padding: 0.5rem;
    cursor: pointer;
}

/* ===== SEARCH ILLUSTRATION STYLES ===== */
#searchIllustrationContainer {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

#modalityImage {
    transition: all 0.3s ease-in-out;
}

.fade-in {
    animation: fadeIn 0.5s;
}

/* ===== TAB CONTENT STYLES ===== */
.tab-content {
    min-height: 200px;
}

/* ===== BACK TO TOP BUTTON ===== */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    /* background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%); */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 20px;
    font-weight: bold;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    z-index: 1000;
}

.back-to-top:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.4);
    color: white;
}

/* ===== LAZY LOADING STYLES ===== */
img[data-src] {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

img.loading {
    opacity: 0.5;
}

img.loaded {
    opacity: 1;
}

img.error {
    opacity: 1;
    border: 2px solid #dc3545;
}

img[data-src].loading::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ===== IMPROVED TAB NAVIGATION ===== */
#searchTabs {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border-bottom: none;
}

#searchTabs .nav-item {
    flex: 1 1 0;
    text-align: center;
}

#searchTabs .search-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: clamp(50px, 8vw, 64px);
    height: clamp(50px, 8vw, 64px);
    border: none;
    border-radius: 0;
    background: transparent;
    color: #222;
    font-size: clamp(0.9rem, 2.5vw, 1.05rem);
    font-weight: 500;
    transition: background 0.2s, color 0.2s;
    box-shadow: none;
    outline: none;
    position: relative;
    margin: 0;
    padding: 0 0 6px 0;
}

#searchTabs .search-tab i {
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    margin: 0 0 7px 0;
    display: block;
    line-height: 1;
    transition: all 0.3s ease;
}

#searchTabs .search-tab.active {
    color: #20b9a3;
    background: transparent;
    border-bottom: 3px solid #20b9a3;
    font-weight: 700;
}

#searchTabs .search-tab:hover:not(.active) {
    color: #20b9a3;
}

#searchTabs .search-tab,
#searchTabs .search-tab.active,
#searchTabs .search-tab:hover {
    border-bottom-width: 3px;
    border-bottom-style: solid;
    border-bottom-color: transparent;
}

#searchTabs .search-tab.active {
    border-bottom-color: #20b9a3;
}

/* ===== RESPONSIVE THERAPY TABS OVERRIDES ===== */

/* Force mobile-first approach */
@media (max-width: 767px) {
    #therapyTabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    #therapyTabs .therapy-tab-btn {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 60px !important;
        height: 60px !important;
        font-size: 0.9rem !important;
    }

    #therapyTabs .therapy-tab-btn i {
        font-size: 1.8rem !important;
        margin-bottom: 0.8rem !important;
    }

    #therapyTabs .therapy-tab-btn .therapy-tab-label {
        font-size: 0.8rem !important;
        font-weight: 500 !important;
        padding-bottom: 8px;
    }

    #therapyTabs .therapy-tab-btn.active .therapy-tab-label::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 3px;
        background-color: #20b9a3;
        border-radius: 2px;
    }
}

/* Large Desktop - Horizontal layout */
@media (min-width: 1200px) {
    #therapyTabs {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 1rem !important;
    }

    #therapyTabs .therapy-tab-btn {
        min-height: 80px;
        height: 80px;
        font-size: 1.1rem;
        flex: 1;
    }

    #therapyTabs .therapy-tab-btn i {
        font-size: 2.8rem !important;
    }
}

/* Desktop - Horizontal layout */
@media (min-width: 992px) and (max-width: 1199px) {
    #therapyTabs {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 0.8rem !important;
    }

    #therapyTabs .therapy-tab-btn {
        min-height: 70px;
        height: 70px;
        font-size: 1rem;
        flex: 1;
    }

    #therapyTabs .therapy-tab-btn i {
        font-size: 2.4rem !important;
    }
}

/* Tablet Landscape - Horizontal layout */
@media (min-width: 768px) and (max-width: 991px) {
    #therapyTabs {
        display: flex !important;
        flex-direction: row !important;
        justify-content: space-between !important;
        gap: 0.6rem !important;
    }

    #therapyTabs .therapy-tab-btn {
        min-height: 65px;
        height: 65px;
        font-size: 0.95rem;
        flex: 1;
    }

    #therapyTabs .therapy-tab-btn i {
        font-size: 2.2rem !important;
    }
}

/* Mobile Landscape - Grid layout 2x3 */
@media (min-width: 481px) and (max-width: 767px) {
    #therapyTabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    #therapyTabs .therapy-tab-btn {
        min-height: 60px;
        height: 60px;
        font-size: 0.9rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #therapyTabs .therapy-tab-btn i {
        font-size: 1.8rem !important;
        margin-bottom: 0.6rem;
    }
}

/* Mobile Portrait - Grid layout 2x3 */
@media (max-width: 480px) {
    #therapyTabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
    }

    #therapyTabs .therapy-tab-btn {
        min-height: 55px;
        height: 55px;
        font-size: 0.85rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #therapyTabs .therapy-tab-btn i {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem;
    }
}

/* Landscape Orientation - Compact grid */
@media (orientation: landscape) and (max-height: 500px) {
    #therapyTabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 0.3rem !important;
    }

    #therapyTabs .therapy-tab-btn {
        min-height: 45px;
        height: 45px;
        font-size: 0.8rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #therapyTabs .therapy-tab-btn i {
        font-size: 1.4rem !important;
        margin-bottom: 0.4rem;
    }
}

/* Very Small Screens - Compact grid */
@media (max-width: 320px) {
    #therapyTabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 0.3rem !important;
    }

    #therapyTabs .therapy-tab-btn {
        min-height: 50px;
        height: 50px;
        font-size: 0.8rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #therapyTabs .therapy-tab-btn i {
        font-size: 1.4rem !important;
        margin-bottom: 0.4rem;
    }
}

/* ===== CARD LAYOUT POLISH ===== */
.search-directory .card {
    border-radius: 20px;
    overflow: visible;
    box-shadow: 0 6px 32px rgba(0, 0, 0, 0.10);
    background: #fff;
}

.search-directory .row.g-0 {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

#searchIllustrationContainer {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#modalityImage {
    height: auto;
    box-shadow: 0 2px 12px rgba(32, 185, 163, 0.10);
}

.search-directory .col-md-8 {
    display: flex;
    align-items: center;
    background: #fff;
    overflow: visible;
}

.search-directory .card-body {
    width: 100%;
    padding: 2.5rem 2rem;
}

/* ===== ERROR MESSAGE STYLES ===== */
.error-message {
    position: fixed;
    bottom: 20px;
    top: 6%;
    height: fit-content;
    left: 50%;
    transform: translateX(-50%);
    background-color: #dc3545;
    color: white;
    padding: 1rem 2rem;
    border-radius: 0.375rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    z-index: 9999;
    display: none;
}

.error-message.show {
    display: block;
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from {
        transform: translate(-50%, 100%);
        opacity: 0;
    }
    to {
        transform: translate(-50%, 0);
        opacity: 1;
    }
}

/* ===== RESPONSIVE STYLES ===== */

/* Large Desktop (1200px and up) */
@media (min-width: 1200px) {
    .hero-banner h1 {
        font-size: 2.5rem !important;
    }
}

/* Tablet Landscape (768px to 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-banner h1 {
        font-size: 1.5rem !important;
        line-height: 1.2;
    }

    .search-directory .row {
        flex-direction: row !important;
    }

    .search-directory .col-md-4 {
        border-radius: 2rem 2rem 0 0 !important;
        order: 1;
    }

    .search-directory .col-md-8 {
        border-radius: 0 0 2rem 2rem !important;
        order: 2;
    }

    /* Fix dropdown overlapping issues on tablet */
    .search-directory .card {
        overflow: visible !important;
    }

    .search-directory .bg-white {
        overflow: visible !important;
    }

    .search-directory .row {
        overflow: visible !important;
    }

    .singlecustom-select-container {
        margin-bottom: 1.5rem;
        position: relative;
    }

    .singlecustom-select-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        max-height: 300px;
        overflow-y: auto;
    }

    /* Ensure proper stacking context */
    .therapy-tab-content {
        position: relative;
        z-index: 1;
    }

    .therapy-tab-content .singlecustom-select-container {
        z-index: 2;
    }

    .therapy-tab-content .singlecustom-select-dropdown {
        z-index: 1000;
    }

    #therapyTitle {
        font-size: 1.4rem !important;
        text-align: center;
    }

    /* Therapy tabs for tablet landscape */
    #therapyTabs .therapy-tab-btn {
        min-height: 65px;
        height: 65px;
        font-size: 1rem;
    }

    #therapyTabs .therapy-tab-btn i {
        font-size: 2.2rem !important;
        margin-bottom: 0.7rem;
    }

    #therapyTabs .therapy-tab-btn .therapy-tab-label {
        font-size: 0.95rem;
        font-weight: 500;
    }

    .search-btn-custom {
        font-size: 0.95rem;
        padding: 0.5rem 0;
        width: 100%;
    }

    .navbar-collapse {
        background: white;
        padding: 1rem;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
        margin-top: 1rem;
    }

    .navbar-nav {
        gap: 0.5rem;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        border-radius: 4px;
    }

    .navbar-nav .nav-link:hover {
        background-color: rgba(32, 185, 163, 0.1);
    }

    .navbar-nav .nav-link.active::after {
        display: none;
    }

    .navbar-nav .nav-link.active {
        background-color: rgba(32, 185, 163, 0.1);
    }

    .search-directory .card-body {
        padding: 1.5rem 1rem;
    }

    #modalityImage {
        max-height: 200px;
    }
}

/* Mobile Landscape (481px to 767px) */
@media (min-width: 481px) and (max-width: 767px) {
    .hero-banner h1 {
        font-size: 0.8rem !important;
        margin-bottom: 1rem;
    }

    .hero-banner {
        padding: 1.5rem 0.5rem !important;
    }

    .search-directory {
        padding: 1rem 0;
    }

    .search-directory .col-10 {
        padding: 0 0.5rem;
    }

    /* Fix dropdown overlapping issues on mobile landscape */
    .search-directory .card {
        overflow: visible !important;
    }

    .search-directory .bg-white {
        overflow: visible !important;
    }

    .search-directory .row {
        overflow: visible !important;
    }

    .singlecustom-select-container {
        margin-bottom: 1.5rem;
        position: relative;
    }

    .singlecustom-select-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        max-height: 300px;
        overflow-y: auto;
    }

    /* Ensure proper stacking context */
    .therapy-tab-content {
        position: relative;
        z-index: 1;
    }

    .therapy-tab-content .singlecustom-select-container {
        z-index: 2;
    }

    .therapy-tab-content .singlecustom-select-dropdown {
        z-index: 1000;
    }

    #therapyIllustration {
        height: 160px !important;
    }

    .p-4 {
        padding: 0.8rem !important;
    }

    #therapyTitle {
        font-size: 1.2rem !important;
        text-align: center;
    }

    /* Therapy tabs for mobile landscape - 2 rows of 3 */
    #therapyTabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }

    #therapyTabs .therapy-tab-btn {
        font-size: 0.9rem;
        min-height: 60px;
        height: 60px;
        padding: 0.4rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #therapyTabs .therapy-tab-btn i {
        font-size: 1.8rem !important;
        margin-bottom: 0.6rem;
    }

    #therapyTabs .therapy-tab-btn .therapy-tab-label {
        font-size: 0.8rem;
        font-weight: 500;
    }

    .search-btn-custom {
        font-size: 0.92rem;
        padding: 0.45rem 0;
        width: 100%;
    }

    .search-directory .card-body {
        padding: 1rem 0.5rem;
    }

    .btn-primary.bg-success,
    .btn-secondary {
        width: 100%;
        margin-bottom: 0.5rem;
    }

    .d-flex.gap-2 {
        flex-direction: column;
    }

    .search-directory .row.g-0 {
        flex-direction: column;
    }

    .custom-select .selected-text {
        padding: 0.5rem 0.75rem;
        min-height: 38px;
    }

    .custom-select .option {
        padding: 0.5rem 0.75rem;
    }

    .navbar-brand img {
        max-height: 40px;
    }
}

/* Mobile Portrait (320px to 480px) */
@media (max-width: 480px) {
    .hero-banner h1 {
        font-size: 0.4rem !important;
        margin-bottom: 1rem;
        line-height: 1.3;
    }

    .hero-banner {
        padding: 1rem 0.25rem !important;
    }

    .search-directory {
        padding: 1rem 0;
    }

    .search-directory .col-10 {
        padding: 0 0.25rem;
    }

    .search-directory .card {
        margin: 0 0.25rem;
    }

    .search-directory .card-body {
        padding: 1rem;
    }

    /* Fix dropdown overlapping issues on mobile */
    .search-directory .card {
        overflow: visible !important;
    }

    .search-directory .bg-white {
        overflow: visible !important;
    }

    .search-directory .row {
        overflow: visible !important;
    }

    /* Add proper spacing between form elements */
    .singlecustom-select-container {
        margin-bottom: 2rem;
        position: relative;
    }

    .singlecustom-select-dropdown {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        z-index: 1000;
        max-height: 250px;
        overflow-y: auto;
    }

    /* Ensure proper stacking context */
    .therapy-tab-content {
        position: relative;
        z-index: 1;
    }

    .therapy-tab-content .singlecustom-select-container {
        z-index: 2;
    }

    .therapy-tab-content .singlecustom-select-dropdown {
        z-index: 1000;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .singlecustom-select-trigger {
        padding: 3px;
        font-size: 0.9rem;
    }

    .navbar-brand img {
        max-height: 35px;
    }

    .navbar {
        padding: 0.5rem;
    }

    .navbar-collapse {
        margin-top: 0.5rem;
        padding: 0.75rem;
    }

    .navbar-nav .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.95rem;
    }

    .custom-select .selected-text {
        padding: 0.375rem 0.5rem;
        min-height: 34px;
        font-size: 0.875rem;
    }

    .custom-select .option {
        padding: 0.375rem 0.5rem;
        font-size: 0.875rem;
    }

    #therapyTitle {
        font-size: 1.1rem !important;
        text-align: center;
    }

    /* Therapy tabs for mobile portrait - 2 rows of 3 */
    #therapyTabs {
        display: grid !important;
        grid-template-columns: repeat(3, 1fr) !important;
        grid-template-rows: repeat(2, 1fr) !important;
        gap: 0.4rem !important;
    }

    #therapyTabs .therapy-tab-btn {
        font-size: 0.85rem;
        min-height: 55px;
        height: 55px;
        padding: 0.3rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #therapyTabs .therapy-tab-btn i {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem;
    }

    #therapyTabs .therapy-tab-btn .therapy-tab-label {
        font-size: 0.75rem;
        font-weight: 500;
        padding-bottom: 8px;
    }

    #therapyTabs .therapy-tab-btn.active .therapy-tab-label::after {
        content: '';
        position: absolute;
        bottom: -8px;
        left: 50%;
        transform: translateX(-50%);
        width: 80%;
        height: 3px;
        background-color: #20b9a3;
        border-radius: 2px;
    }

    .search-btn-custom {
        font-size: 0.9rem;
        padding: 0.4rem 0;
        width: 100%;
    }
}

/* Landscape Orientation Specific Styles */
@media (orientation: landscape) and (max-height: 500px) {
    .hero-banner {
        padding: 0.5rem 0 !important;
    }

    .hero-banner h1 {
        font-size: 0.2rem !important;
        margin-bottom: 0.5rem;
    }

    .search-directory {
        padding: 0.5rem 0;
    }

    .search-directory .card-body {
        padding: 0.5rem;
    }

    #therapyTabs .therapy-tab-btn {
        min-height: 45px;
        height: 45px;
        padding: 0.2rem;
    }

    #therapyTabs .therapy-tab-btn i {
        font-size: 1.4rem !important;
        margin-bottom: 0.4rem;
    }

    #therapyTabs .therapy-tab-btn .therapy-tab-label {
        font-size: 0.7rem;
    }

    .singlecustom-select-container {
        margin-bottom: 1rem;
    }

    .navbar {
        padding: 0.25rem;
    }

    .navbar-brand img {
        max-height: 30px;
    }
}

/* Very small screens (320px and below) */
@media (max-width: 320px) {
    .hero-banner h1 {
        font-size: 0.1rem !important;
    }

    .search-directory .col-10 {
        padding: 0 0.1rem;
    }

    .search-directory .card {
        margin: 0 0.1rem;
    }

    #therapyTabs .therapy-tab-btn {
        min-height: 50px;
        height: 50px;
        padding: 0.2rem;
    }

    #therapyTabs .therapy-tab-btn i {
        font-size: 1.4rem !important;
    }

    #therapyTabs .therapy-tab-btn .therapy-tab-label {
        font-size: 0.7rem;
    }

    .navbar-brand img {
        max-height: 30px;
    }

    .navbar-nav .nav-link {
        padding: 0.4rem 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 1200px) {
    .dashboard-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== SINGLE CUSTOM SELECT STYLES ===== */
.singlecustom-select-container {
    position: relative;
    z-index: 1;
    overflow: visible;
}

.singlecustom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 8px;
    margin-top: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    max-height: 330px;
    overflow-y: auto;
}

/* Standard dropdown positioning for all devices */
.singlecustom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    z-index: 1000;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    margin-top: 4px;
    display: none;
}

.singlecustom-select-dropdown.active {
    display: block;
}

@media only screen and (max-width: 480px) {
  .singlecustom-select-dropdown.active {
    display: block;
    position: relative;
  }
}

.singlecustom-select-options {
    max-height: 250px;
    overflow-y: auto;
    padding: 0;
    margin: 0;
    list-style: none;
}

.singlecustom-select-option {
    padding: 10px 15px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
    color: #333;
}

.singlecustom-select-option:last-child {
    border-bottom: none;
}

.singlecustom-select-search {
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    background: white;
}

.singlecustom-select-search input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    font-size: 14px;
}

.singlecustom-select-search input:focus {
    outline: none;
    border-color: #20b9a3;
    box-shadow: 0 0 0 2px rgba(32, 185, 163, 0.1);
}

.therapy-tab-content {
    position: relative;
}

.rounded-4,
.bg-white {
    position: relative;
}

.singlecustom-select-trigger {
    background: white;
    border: 1px solid #ced4da;
    border-radius: 6px;
    padding: 10px 15px;
    cursor: pointer;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    min-height: 42px;
    transition: border-color 0.2s ease;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    position: relative;
}

.singlecustom-select-trigger:after {
    content: '';
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.singlecustom-select-dropdown.active + .singlecustom-select-trigger:after,
.singlecustom-select-trigger.active:after {
    transform: translateY(-50%) rotate(180deg);
}

.dropdown-arrow {
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.singlecustom-select-dropdown.active + .singlecustom-select-trigger .dropdown-arrow,
.singlecustom-select-trigger.active .dropdown-arrow {
    transform: rotate(180deg);
}

.single-selected-item {
    color: #333;
    font-weight: 500;
    display: flex;
    align-items: center;
    width: 100%;
    overflow: hidden;
}

.single-select-text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    vertical-align: middle;
}

.placeholder {
    color: #6c757d;
    font-style: italic;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
    vertical-align: middle;
    background-color: transparent;
}

.loading-message {
    text-align: center;
    color: #666;
    font-style: italic;
}

.dropdown-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #20b9a3;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ===== NAVBAR DROPDOWN STYLES ===== */
.navbar .dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 1000;
    min-width: 10rem;
    padding: 0.5rem 0;
    margin: 0.125rem 0 0;
    font-size: 1rem;
    color: #212529;
    text-align: left;
    list-style: none;
    background-color: #fff;
    background-clip: padding-box;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 0.375rem;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.175);
}

.navbar .dropdown-menu.show {
    display: block !important;
}

.navbar .nav-item.dropdown {
    position: relative;
}

.navbar .dropdown-toggle {
    cursor: pointer !important;
    user-select: none;
}

.navbar .dropdown-item {
    display: block;
    width: 100%;
    padding: 0.25rem 1rem;
    clear: both;
    font-weight: 400;
    color: #212529;
    text-align: inherit;
    text-decoration: none;
    white-space: nowrap;
    background-color: transparent;
    border: 0;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
}

.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus {
    color: #1e2125;
    background-color: #e9ecef;
}

.navbar .dropdown-item:active {
    color: #fff;
    text-decoration: none;
    background-color: #0d6efd;
}

.navbar .dropdown-toggle {
    cursor: pointer;
}

/* ===== CUSTOM SELECT CONTAINER STYLES ===== */
.custom-select-container {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    width: 100%;
    padding: 5px;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    background: white;
    cursor: pointer;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.custom-select-trigger:after {
    content: '';
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #333;
    margin-left: auto;
}

.custom-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #ced4da;
    border-radius: 0.25rem;
    margin-top: 2px;
    max-height: 150px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.custom-select-search {
    padding: 8px;
    position: sticky;
    top: 0;
    background: white;
}

.custom-select-search input {
    width: 100%;
    padding: 5px;
    border: 1px solid #ced4da;
    border-radius: 4px;
}

.custom-select-options {
    list-style: none;
    margin: 0;
    padding: 0;
}

.custom-select-option {
    padding: 8px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}

.custom-select-option:before {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid #ced4da;
    border-radius: 3px;
}

.custom-select-option.selected:before {
    background: #0d6efd;
    border-color: #0d6efd;
    background-size: 12px;
    background-position: center;
    background-repeat: no-repeat;
}

.custom-select-dropdown.active {
    display: block;
}

.selected-item {
    background: #CBFFF6;
    border-radius: 3px;
    padding: 2px 8px;
    margin: 2px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.selected-item .remove {
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.single-selected-item .remove {
    cursor: pointer;
    color: #666;
    font-size: 14px;
}

.d-sm-inline {
    margin-bottom: 20px;
}

/* ===== CATEGORY DROPDOWN STYLES ===== */
#categoryDropdown {
    max-width: 400px;
    margin-bottom: 1.5rem;
}

#categoryDropdown .singlecustom-select-trigger {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 1rem 1.25rem;
    font-size: 1.1rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

#categoryDropdown .singlecustom-select-trigger:hover {
    background: #e9ecef;
    border-color: #20b9a3;
}

#categoryDropdown .singlecustom-select-trigger:after {
    content: '▼';
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: auto;
    transition: transform 0.2s ease;
}

#categoryDropdown .singlecustom-select-dropdown.active + .singlecustom-select-trigger:after,
#categoryDropdown .singlecustom-select-trigger.active:after {
    transform: rotate(180deg);
}

#categoryDropdown .singlecustom-select-dropdown {
    border: 2px solid #20b9a3;
    border-radius: 0.75rem;
    box-shadow: 0 8px 25px rgba(32, 185, 163, 0.15);
    margin-top: 0.5rem;
}

#categoryDropdown .singlecustom-select-option {
    padding: 1rem 1.25rem;
    font-size: 1rem;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
    color: #333;
}

#categoryDropdown .singlecustom-select-option:last-child {
    border-bottom: none;
}

#categoryDropdown .singlecustom-select-option:hover {
    background: #f8f9fa;
    color: #20b9a3;
}

#categoryDropdown .singlecustom-select-option.selected {
    background: #e8f5f3;
    color: #20b9a3;
    font-weight: 600;
}

#categoryDropdown .singlecustom-select-option i {
    color: #20b9a3;
    width: 20px;
    text-align: center;
}

#categoryDropdown .singlecustom-select-search {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #f1f3f4;
}

#categoryDropdown .singlecustom-select-search input {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-size: 0.95rem;
}

#categoryDropdown .singlecustom-select-search input:focus {
    outline: none;
    border-color: #20b9a3;
    box-shadow: 0 0 0 3px rgba(32, 185, 163, 0.1);
}

/* ===== DISEASE DROPDOWN STYLES (LEFT SIDE) ===== */
#diseaseDropdown, #modalityDropdown {
    max-width: 100%;
    margin-bottom: 1rem;
}

#diseaseDropdown .singlecustom-select-trigger {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

#modalityDropdown .singlecustom-select-trigger {
    background: #ffffff;
    border: 2px solid #e9ecef;
    border-radius: 0.75rem;
    padding: 0.875rem 1rem;
    font-size: 1rem;
    font-weight: 500;
    color: #495057;
    transition: all 0.2s ease;
}

#diseaseDropdown .singlecustom-select-trigger:hover {
    background: #f8f9fa;
    border-color: #20b9a3;
}

#modalityDropdown .singlecustom-select-trigger:hover {
    background: #f8f9fa;
    border-color: #20b9a3;
}

/* #diseaseDropdown .singlecustom-select-trigger:after {
    content: '▼';
    font-size: 0.8rem;
    color: #6c757d;
    margin-left: auto;
    transition: transform 0.2s ease;
} */

#diseaseDropdown .singlecustom-select-dropdown.active + .singlecustom-select-trigger:after,
#diseaseDropdown .singlecustom-select-trigger.active:after {
    transform: rotate(180deg);
}

#modalityDropdown .singlecustom-select-dropdown.active + .singlecustom-select-trigger:after,
#modalityDropdown .singlecustom-select-trigger.active:after {
    transform: rotate(180deg);
}


#diseaseDropdown .singlecustom-select-option {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
    color: #333;
}

#modalityDropdown .singlecustom-select-option {
    padding: 0.875rem 1rem;
    font-size: 0.95rem;
    border-bottom: 1px solid #f1f3f4;
    transition: all 0.2s ease;
    color: #333;
}

#diseaseDropdown .singlecustom-select-option:last-child {
    border-bottom: none;
}

#modalityDropdown .singlecustom-select-option:last-child {
    border-bottom: none;
}

#diseaseDropdown .singlecustom-select-option:hover {
    background: #f8f9fa;
    color: #20b9a3;
}

#modalityDropdown .singlecustom-select-option:hover {
    background: #f8f9fa;
    color: #20b9a3;
}

#diseaseDropdown .singlecustom-select-option.selected {
    background: #e8f5f3;
    color: #20b9a3;
    font-weight: 600;
}

#modalityDropdown .singlecustom-select-option.selected {
    background: #e8f5f3;
    color: #20b9a3;
    font-weight: 600;
}

#diseaseDropdown .singlecustom-select-search {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f3f4;
}

#modalityDropdown .singlecustom-select-search {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid #f1f3f4;
}

#diseaseDropdown .singlecustom-select-search input {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.625rem;
    font-size: 0.9rem;
}

#modalityDropdown .singlecustom-select-search input {
    border: 1px solid #e9ecef;
    border-radius: 0.5rem;
    padding: 0.625rem;
    font-size: 0.9rem;
}

#diseaseDropdown .singlecustom-select-search input:focus {
    outline: none;
    border-color: #20b9a3;
    box-shadow: 0 0 0 3px rgba(32, 185, 163, 0.1);
}

#modalityDropdown .singlecustom-select-search input:focus {
    outline: none;
    border-color: #20b9a3;
    box-shadow: 0 0 0 3px rgba(32, 185, 163, 0.1);
}
