/* ===== 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;
}

/* ===== 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 .text-center i {
    font-size: 2.5rem !important;
    margin-bottom: 2.15rem;
}

.therapy-tab-btn .therapy-tab-label {
    font-size: 0.98rem;
    margin-top: 0.08rem;
    letter-spacing: 0.01em;
}

.therapy-tab-btn.active .therapy-tab-label,
.therapy-tab-btn .therapy-tab-label.fw-bold {
    font-weight: 600 !important;
}

#therapyTabs {
    gap: 1.7rem !important;
}

#therapyTitle {
    font-size: 1.4rem !important;
    padding-bottom: 30px !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: inline-block;
    margin-bottom: 1.25rem;
}

.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: 64px;
    height: 64px;
    border: none;
    border-radius: 0;
    background: transparent;
    color: #222;
    font-size: 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: 35px;
    margin: 0 0 7px 0;
    display: block;
    line-height: 1;
}

#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;
}

/* ===== CARD LAYOUT POLISH ===== */
.search-directory .card {
    border-radius: 20px;
    overflow: hidden;
    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;
}

.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 ===== */
@media (max-width: 991px) {
    #therapyTitle {
        font-size: 1.1rem !important;
    }
    .therapy-tab-btn .text-center i {
        font-size: 1.2rem !important;
    }
    .therapy-tab-btn .therapy-tab-label {
        font-size: 0.92rem;
    }
    .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: 180px;
    }
}

@media (max-width: 768px) {
    #therapyIllustration {
        height: 140px !important;
    }
    .p-4 {
        padding: 0.8rem !important;
    }
    #therapyTitle {
        font-size: 1rem !important;
    }
    .therapy-tab-btn .text-center i {
        font-size: 1rem !important;
    }
    .therapy-tab-btn .therapy-tab-label {
        font-size: 0.88rem;
    }
    .search-btn-custom {
        font-size: 0.92rem;
        padding: 0.45rem 0;
        width: 100%;
    }
    .search-directory .card-body {
        padding: 1rem 0.5rem;
    }
    .search-tab {
        padding: 10px;
        font-size: 0.9rem;
    }
    .search-tab i {
        margin-right: 4px;
    }
    .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;
    }
    #searchTabs .search-tab {
        font-size: 0.95rem;
        min-height: 48px;
        height: 48px;
    }
    #searchTabs .search-tab i {
        font-size: 1.3rem;
    }
    .custom-select .selected-text {
        padding: 0.5rem 0.75rem;
        min-height: 38px;
    }
    .custom-select .option {
        padding: 0.5rem 0.75rem;
    }
}

@media (max-width: 576px) {
    .search-directory {
        padding: 1rem 0;
    }
    .search-directory .card-body {
        padding: 1rem;
    }
    .form-label {
        font-size: 0.9rem;
    }
    .singlecustom-select-trigger {
        padding: 3px;
        font-size: 0.9rem;
    }
    .navbar-brand img {
        max-height: 40px;
    }
    .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;
    }
    #searchTabs .search-tab {
        font-size: 0.9rem;
        min-height: 40px;
        height: 40px;
    }
    #searchTabs .search-tab i {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .dashboard-title {
        font-size: 1.75rem;
    }
    .dashboard-card {
        padding: 0;
    }
}

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

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

.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: 300px;
    overflow: hidden;
}

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

.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;
}

.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;
}
