body {
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    background-color: var(--background-light);
    color: var(--text-primary);
}

/* Enhanced navbar styling */
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 10px rgba(107, 114, 128, 0.15);
    transition: transform 0.3s ease;
    padding: 0.75rem 0;
    min-height: 80px;
}

.navbar-brand {
    font-size: 1.4rem;
    margin-bottom: 0.25rem !important;
    color: var(--primary-color) !important;
}

.location-dropdown .btn {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--neutral-cool);
    background: transparent;
    color: var(--text-secondary);
    position: relative;
    z-index: 1050;
    /* Higher than navbar-collapse */
}

.location-dropdown .btn:hover {
    background: var(--neutral-cool);
    border-color: var(--primary-color);
}

.location-dropdown .dropdown-menu {
    z-index: 1060;
    /* Highest z-index */
}

/* Desktop Navigation */
.navbar-nav .nav-link {
    color: var(--primary-color) !important;
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--buttons-hover) !important;
}

.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    font-weight: 600;
}

/* Hamburger Menu Styling */
.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    background: transparent;
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1051;
    /* Add custom properties for dynamic colors */
    --toggler-color: var(--primary-color);
    --toggler-hover-color: var(--buttons-hover);
}

.navbar-toggler-icon {
    /* Use a more flexible approach */
    width: 1.5em;
    height: 1.5em;
    background: none;
    position: relative;
}

/* Create hamburger lines using pseudo-elements */
.navbar-toggler-icon::before,
.navbar-toggler-icon::after,
.navbar-toggler-icon {
    background-color: var(--toggler-color);
}

.navbar-toggler-icon::before {
    content: "";
    position: absolute;
    top: 0.25em;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--toggler-color);
    transition: all 0.3s ease;
}

.navbar-toggler-icon::after {
    content: "";
    position: absolute;
    bottom: 0.25em;
    left: 0;
    right: 0;
    height: 2px;
    background-color: var(--toggler-color);
    transition: all 0.3s ease;
}

/* Middle line */
.navbar-toggler-icon {
    background-color: var(--toggler-color);
    height: 2px;
    margin: 0.65em 0;
    transition: all 0.3s ease;
}

/* Hover effects */
.navbar-toggler:hover .navbar-toggler-icon,
.navbar-toggler:hover .navbar-toggler-icon::before,
.navbar-toggler:hover .navbar-toggler-icon::after {
    background-color: var(--toggler-hover-color);
}

.navbar-toggler:focus {
    box-shadow: none;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%234a90b8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%233a7ca8' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Alternative: Add hover effect for better UX */
.navbar-toggler:hover .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='%239d87c4' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* Mobile Navbar Collapse - ONLY when expanded */
.navbar-collapse {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    border-radius: 0 0 12px 12px;
    margin-top: 1rem;
    padding: 1rem;
    box-shadow: 0 4px 12px rgba(107, 114, 128, 0.15);
    width: 100%;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 1040;
    /* Lower than location dropdown */
}

/* DESKTOP STYLES */
@media (min-width: 992px) {
    body {
        padding-top: 120px !important;
    }

    .navbar {
        /* min-height: 120px; */
        padding: 1rem 0;
    }

    .navbar-nav.mx-auto {
        margin: 1rem 0 !important;
    }

    .navbar-nav .nav-item {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

    /* Hide mobile elements on desktop */
    .navbar-toggler {
        display: none !important;
    }

    .navbar-collapse.d-lg-none {
        display: none !important;
    }
}

/* MOBILE STYLES - CLEAN VERSION */
@media (max-width: 991.98px) {
    .navbar {
        min-height: 90px;
        padding: 0.75rem 0;
        position: relative;
    }

    .navbar .container {
        position: relative;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(107, 114, 128, 0.1);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .hero-section {
        padding: 80px 0;
        margin-top: 0px !important;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    /* CRITICAL: Let Bootstrap handle the collapse - DON'T override */
    /* Remove any display: block !important rules */
}

/* Extra small screens */
@media (max-width: 480px) {
    body {
        padding-top: 0px !important;
    }

    .navbar {
        min-height: 85px;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }
}

/* Desktop styles (unchanged) */
@media (min-width: 992px) {
    .navbar {
        /* min-height: 120px; */
        /* Original desktop height */
        padding: 1rem 0;
    }

    .navbar-nav.mx-auto {
        margin: 1rem 0 !important;
    }

    .navbar-nav .nav-item {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }
}

/* Mobile Navigation Links */
@media (max-width: 991.98px) {
    body {
        padding-top: 0px !important;
    }

    .navbar-nav {
        text-align: center;
    }

    .navbar-nav .nav-link {
        padding: 0.75rem 1rem;
        font-size: 1.1rem;
        border-bottom: 1px solid rgba(107, 114, 128, 0.1);
    }

    .navbar-nav .nav-item:last-child .nav-link {
        border-bottom: none;
    }

    .location-dropdown {
        text-align: center;
    }

    .d-flex.flex-column {
        /* gap: 0.5rem; */
    }
}

/* Simplified Mobile Responsiveness */
@media (max-width: 991.98px) {
    body {
        padding-top: 0px !important;
    }

    .navbar {
        /* min-height: 70px; */
        /* Much smaller navbar height */
        padding: 0.5rem 0;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    .hero-section {
        padding: 80px 0;
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    body {
        padding-top: 0px !important;
    }

    .navbar {
        /* min-height: 65px; */
    }

    .navbar-brand {
        font-size: 1rem;
    }

    .hero-section {
        padding: 60px 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }
}

/* Desktop styles remain the same */
@media (min-width: 992px) {
    .navbar-nav .nav-link {
        font-weight: 500;
        color: var(--text-primary) !important;
        padding: 0.5rem 1rem;
        transition: color 0.3s ease;
    }

    .navbar-nav .nav-link:hover {
        color: var(--primary-color) !important;
    }
}

/* Location dropdown styling */
.location-dropdown .btn {
    font-size: 0.85rem;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--neutral-cool);
    background: transparent;
    color: var(--text-secondary);
}

.location-dropdown .btn:hover {
    background: var(--neutral-cool);
    border-color: var(--primary-color);
}

.navbar-nav .nav-link {
    font-weight: 500;
    color: var(--text-primary) !important;
    padding: 0.5rem 1rem;
    transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
}

/* Mobile responsiveness - CRITICAL FIX */
@media (max-width: 768px) {
    body {
        padding-top: 0px !important;
    }

    .navbar {
        /* min-height: 120px; */
        /* Accommodate two-row layout */
        /* padding: 1rem 0; */
    }

    .hero-section {
        padding: 60px 0;
        /* Reduced padding to compensate */
    }

    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }

    .navbar-nav.mx-auto {
        margin: 1rem 0 !important;
    }

    .navbar-nav .nav-item {
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

    .navbar-brand {
        font-size: 1.2rem;
    }
}

/* Extra small screens */
@media (max-width: 480px) {
    body {
        padding-top: 0px !important;
    }

    .navbar {
        /* min-height: 140px; */
    }

    .hero-section {
        padding: 40px 0;
    }

    .hero-section h1 {
        font-size: 1.75rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}

.navbar.hidden {
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* Appointment Tab Navigation - Override blue color to black */
#appointmentTabs .nav-link {
    color: #000000 !important;
}

#appointmentTabs .nav-link:hover {
    color: #333333 !important;
}

#appointmentTabs .nav-link.active {
    color: #000000 !important;
    background-color: #f8f9fa;
    border-color: #dee2e6;
}

/*
.card .appointment-card-future .card-body {
    background: linear-gradient(135deg, rgb(240 240 253) 0%, rgb(234 244 252) 50%, rgb(233 248 251) 100%); 
}
.card .appointment-card-past .card-body {
    background: linear-gradient(135deg, rgb(233 248 243) 0%, rgb(243 247 239) 50%, rgb(253 246 236) 100%); 
}
.card .appointment-card-canceled .card-body {
    background: linear-gradient(135deg, rgb(228, 229, 228) 0%, rgb(239, 241, 237) 50%, rgb(242, 242, 242) 100%); 
}
    */

a{
    color: var(--brand-primary);
}    

.cursor-pointer{
    cursor: pointer;
}
.alert-danger {
    background: linear-gradient(
        135deg,
        #ffeaea 0%,
        #ffe0e0 50%,
        #ffd6d6 100%
    ) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.15) !important;
    color: #721c24 !important;
}

/* Custom button styles using CSS variables */
.btn-brand-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
    color: white;
}

/* Alert gradient styles */
.alert-info {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(23, 162, 184, 0.08) !important;
    color: #0369a1 !important;
}

.alert-info .bi {
    color: #0284c7 !important;
}

.location-dropdown .dropdown-toggle {
    border: none;
    background: transparent;
    color: var(--primary-color);
    font-weight: 500;
}

.btn-login {
    background: var(--primary-color);
    /* border: none; */
    border-radius: 8px;
    /* padding: 8px 20px; */
    font-weight: 500;
    color: white;
}

.btn-login:hover {
    background: #4b5563;
    transform: translateY(-1px);
}

.btn-primary {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-primary:hover {
    background: var(--brand-primary);
    border-color: var(--brand-primary);
    opacity: 0.9;
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.btn-outline-primary:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.hero-section {
    background: linear-gradient(
        135deg,
        var(--brand-primary) 0%,
        var(--brand-secondary) 100%
    );
    color: white;
    padding: 40px 0;
    text-align: center;
    /* margin-top: 100px; */
}

.hero-section h1 {
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.hero-section p {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.treatment-nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e9ecef;
    z-index: 1060;
    transition: all 0.3s ease;
    padding: 0;
}

.treatment-nav .container {
    padding: 0;
}

.treatment-nav .nav {
    padding: 0 15px;
    white-space: nowrap;
}

.treatment-nav .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .treatment-nav {
        padding: 8px 0;
    }

    .treatment-nav .container {
        padding: 0;
        max-width: 100%;
    }

    .treatment-nav .nav {
        padding: 0 10px;
        justify-content: flex-start !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .treatment-nav .nav::-webkit-scrollbar {
        display: none;
    }

    .treatment-nav .nav-link {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin-right: 8px;
        border-radius: 20px;
        min-width: fit-content;
        flex-shrink: 0;
    }

    .treatment-nav.sticky.enhanced .nav-link {
        padding: 8px 16px;
        margin: 0 4px;
        font-size: 0.85rem;
    }

    /* Add padding to the last nav item to ensure it's not cut off */
    .treatment-nav .nav-item:last-child .nav-link {
        margin-right: 15px;
    }
}

/* Additional mobile optimization for very small screens */
@media (max-width: 480px) {
    .treatment-nav .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-right: 6px;
    }

    .treatment-nav.sticky.enhanced .nav-link {
        padding: 6px 12px;
        margin: 0 3px;
        font-size: 0.8rem;
    }
}

/* Keep only the JavaScript-controlled sticky behavior */
.treatment-nav.sticky {
    position: sticky;
    top: 0px;
    z-index: 1020;
    background: var(--background-primary, white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.treatment-nav.sticky .nav-link {
    pointer-events: auto;
    position: relative;
    z-index: 1;
}

.treatment-nav.sticky.enhanced {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(107, 114, 128, 0.2);
}

.treatment-nav.sticky.enhanced .nav-link {
    padding: 12px 18px;
    margin: 0 5px;
    border-radius: 8px;
}

.treatment-card {
    border: none;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(107, 114, 128, 0.12);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
    background: linear-gradient(
        145deg,
        #ffffff 0%,
        rgba(249, 250, 251, 0.8) 100%
    );
}

.treatment-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(107, 114, 128, 0.2);
}

.treatment-card .card-title {
    color: var(--text-primary);
}

.treatment-card .card-text {
    color: var(--text-secondary);
}

.treatment-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

/* Subtle neutral backgrounds that complement any brand */
#cryotherapy {
    background: linear-gradient(
        135deg,
        rgba(148, 163, 184, 0.06) 0%,
        rgba(255, 255, 255, 0.95) 100%
    );
}

#red-light-therapy {
    background: linear-gradient(
        135deg,
        rgba(156, 163, 175, 0.06) 0%,
        rgba(255, 255, 255, 0.95) 100%
    );
}

#aesthetic-treatments {
    background: linear-gradient(
        135deg,
        rgba(168, 162, 158, 0.06) 0%,
        rgba(255, 255, 255, 0.95) 100%
    );
}

.treatment-section {
    padding: 20px 0 0px 0;
    /* 10px top, 20px bottom */
    min-height: 100px;
}

.treatment-section h2 {
    color: var(--text-primary);
}

/* Modal styling with neutral tones */
.modal-content {
    border: none;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(107, 114, 128, 0.15);
}

.modal-header {
    /* background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-secondary) 100%); */
    background: var(--brand-primary);
    border-bottom: 1px solid rgba(107, 114, 128, 0.15);
    border-radius: 12px 12px 0 0;
}

.modal-title {
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.form-control {
    color: var(--text-primary);
    border-color: rgba(107, 114, 128, 0.3);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(107, 114, 128, 0.25);
}

.form-label {
    color: var(--text-primary);
}

/* Ensure brand colors can easily override these neutrals */
.brand-override {
    /* This class can be used to easily override with brand colors */
}

.treatment-nav {
    background: rgba(255, 255, 255, 0.9);
    border-bottom: 1px solid #e9ecef;
    z-index: 1020;
    transition: all 0.3s ease;
    padding: 0;
}

.treatment-nav .container {
    padding: 0;
}

.treatment-nav .nav {
    padding: 0 15px;
    white-space: nowrap;
}

.treatment-nav .nav-link {
    color: var(--primary-color);
    font-weight: 500;
    padding: 15px 20px;
    border-radius: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .treatment-nav {
        padding: 8px 0;
    }

    .treatment-nav .container {
        padding: 0;
        max-width: 100%;
    }

    .treatment-nav .nav {
        padding: 0 10px;
        justify-content: flex-start !important;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }

    .treatment-nav .nav::-webkit-scrollbar {
        display: none;
    }

    .treatment-nav .nav-link {
        padding: 8px 16px;
        font-size: 0.85rem;
        margin-right: 8px;
        border-radius: 20px;
        min-width: fit-content;
        flex-shrink: 0;
    }

    .treatment-nav.sticky.enhanced .nav-link {
        padding: 8px 16px;
        margin: 0 4px;
        /* border-radius: 20px; */
        font-size: 0.85rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }

    /* Add padding to the last nav item to ensure it's not cut off */
    .treatment-nav .nav-item:last-child .nav-link {
        margin-right: 15px;
    }
}

/* Additional mobile optimization for very small screens */
@media (max-width: 480px) {
    .treatment-nav .nav-link {
        padding: 6px 12px;
        font-size: 0.8rem;
        margin-right: 6px;
    }

    .treatment-nav.sticky.enhanced .nav-link {
        padding: 6px 12px;
        margin: 0 3px;
        font-size: 0.8rem;
    }
}

.treatment-nav .nav-link:hover,
.treatment-nav .nav-link.active {
    color: white;
    background: var(--primary-color);
}

.treatment-section {
    padding: 20px 0 0px 0;
    min-height: 100px;
}

.treatment-card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease;
    margin-bottom: 30px;
}

.treatment-card:hover {
    transform: translateY(-5px);
}

.treatment-card .card-body {
    padding: 30px;
}

.treatment-icon {
    font-size: 3rem;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.price {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary-color);
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2rem;
    }

    .treatment-nav .nav-link {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .navbar-brand {
        font-size: 1.1rem;
    }
}

/* Footer Styling */
footer {
    background-color: var(--section-accent) !important;
}

footer h5,
footer h6 {
    color: var(--text-primary);
    font-weight: 600;
}

footer .text-muted {
    color: var(--text-secondary) !important;
}

/* Footer Quick Links Styling */
footer .list-unstyled li a {
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
    padding: 0.25rem 0;
    display: inline-block;
}

footer .list-unstyled li a:hover {
    color: var(--buttons-hover) !important;
    transform: translateX(5px);
}

/* Footer Bottom Links */
footer .row:last-child a {
    color: var(--text-secondary) !important;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer .row:last-child a:hover {
    color: var(--primary-color) !important;
}

.auth-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-link:hover {
    color: var(--buttons-hover);
    text-decoration: underline;
}

/* Footer HR styling */
footer hr {
    border-color: var(--neutral-cool);
    opacity: 0.5;
}

/* Cart Styling */
.cart-item {
    transition: all 0.3s ease;
}

.cart-item:hover {
    background-color: var(--background-light, #f8f9fa);
    border-radius: 8px;
    padding: 10px;
    margin: -10px;
}

.cart-summary {
    animation: slideIn 0.3s ease;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.treatment-nav {
    position: sticky;
    top: 0px;
    z-index: 1020;
    background: var(--background-primary, white);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.add-to-cart-btn {
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Fixed cart and scrollable navigation */
.cart-summary-fixed {
    flex-shrink: 0;
    margin-right: 15px;
    z-index: 1021;
}

.nav-scroll-container {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-right: 15px;
    /* Add padding to ensure last item is visible */
}

.nav-scroll-container::-webkit-scrollbar {
    display: none;
}

.nav-scroll-container .nav {
    padding: 0;
    margin: 0;
    padding-right: 20px;
    /* Extra padding for the last item */
}

.nav-scroll-container .nav-item {
    flex-shrink: 0;
}

.nav-scroll-container .nav-link {
    white-space: nowrap;
    margin-right: 8px;
}

.nav-scroll-container .nav-item:last-child .nav-link {
    margin-right: 0;
    /* Remove margin from last item */
}

/* Mobile specific adjustments */
@media (max-width: 768px) {
    .cart-summary-fixed {
        margin-right: 10px;
    }

    .cart-summary-fixed .btn {
        font-size: 0.8rem;
        padding: 4px 8px;
    }

    .nav-scroll-container {
        padding-right: 10px;
    }

    .nav-scroll-container .nav {
        padding-right: 15px;
    }

    .nav-scroll-container .nav-link {
        padding: 8px 12px;
        font-size: 0.85rem;
        margin-right: 6px;
    }
}

/* Add this CSS in the <style> section */
/* Keep the same CSS */
.blink-attention {
    animation: blinkAttentionRed 2s ease-in-out;
}

@keyframes blinkAttentionRed {
    0%,
    100% {
        background-color: transparent;
        border: none;
        padding: 15px;
    }

    25%,
    75% {
        background-color: rgba(40, 167, 69, 0.2);
        border: 0px solid #28a745;
        border-radius: 8px;
        padding: 15px;
    }

    50% {
        background-color: rgba(40, 167, 69, 0.4);
        border: 0px solid #28a745;
        border-radius: 8px;
        padding: 15px;
    }
}

/*schedule*/

.schedule-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.treatment-summary {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(107, 114, 128, 0.1);
    margin-bottom: 2rem;
}

.treatment-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--neutral-cool);
}

.treatment-item:last-child {
    border-bottom: none;
}

.treatment-details h6 {
    margin: 0;
    color: var(--text-primary);
    font-weight: 600;
}

.treatment-details p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.treatment-price {
    color: var(--primary-color);
    font-weight: 600;
}

.deposit-needed {
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 500;
}

.date-selector {
    margin: 1.5rem 0;
}

.date-btn {
    margin: 5px;
    padding: 10px 15px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.date-btn:hover {
    background-color: #f8f9fa;
    border-color: var(--primary-color);
}

.date-btn.active {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.calendar-section {
    background: var(--card-background);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(107, 114, 128, 0.1);
    margin-bottom: 2rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.calendar-nav {
    background: none;
    border: none;
    color: var(--primary-color);
    font-size: 1.2rem;
    padding: 0.5rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.calendar-nav:hover {
    background: var(--neutral-cool);
    color: var(--buttons-hover);
}

.calendar-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}

.calendar-day-header {
    text-align: center;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.5rem 0;
    font-size: 0.85rem;
}

.calendar-day {
    height: 40px;
    width: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    border: none;
    background: transparent;
    font-size: 0.9rem;
}

/* Available dates - black color */
.calendar-day.available {
    color: #000000;
    font-weight: bold;
    background-color: #f8f9fa;
    border: 2px solid #dee2e6;
    cursor: pointer;
}

.calendar-day.available:hover {
    background-color: #e9ecef;
    border-color: #adb5bd;
    transform: scale(1.05);
}

/* Unavailable dates - gray color */
.calendar-day.unavailable {
    color: #999999;
    cursor: not-allowed;
    opacity: 0.6;
}

/* Today's date */
.calendar-day.today {
    background-color: #e3f2fd;
    border: 2px solid #2196f3;
    font-weight: bold;
}

/* Selected date - green and bold */
.calendar-day.selected {
    background-color: #4caf50;
    color: white;
    font-weight: bold;
    border: 2px solid #45a049;
}

.calendar-day.selected:hover {
    background-color: #45a049;
    transform: scale(1.05);
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.4rem;
    justify-items: center;
}

@media (max-width: 768px) {
    .schedule-container {
        padding: 1rem 0.5rem;
    }

    .treatment-summary,
    .calendar-section,
    .time-slots-section {
        padding: 1rem;
    }

    .calendar-grid {
        gap: 0.25rem;
    }

    .calendar-day {
        height: 35px;
        width: 35px;
        font-size: 0.85rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
}

.time-slots-header {
    margin-bottom: 1.5rem;
}

.time-slots-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.time-slots-subtitle {
    color: var(--text-muted);
    margin: 0;
}

.no-slots-message {
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    font-weight: 500;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.no-slots-message.loading {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #22c55e;
    color: #15803d;
    animation: pulse-loading 2s infinite;
}

.no-slots-message.no-slots {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
    color: #dc2626;
}

.no-slots-message.default {
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    border: 2px solid #64748b;
    color: #475569;
}

@keyframes pulse-loading {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(34, 197, 94, 0.2);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 4px 16px rgba(34, 197, 94, 0.3);
    }
}

.time-slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 0.75rem;
}

.time-slot {
    background: var(--section-accent);
    border: 2px solid var(--neutral-cool);
    border-radius: 8px;
    padding: 0.75rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
}

.time-slot:hover {
    border-color: var(--primary-color);
    background: var(--neutral-cool);
}

.time-slot.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

@media (max-width: 768px) {
    .schedule-container {
        padding: 1rem 0.5rem;
    }

    .treatment-summary,
    .calendar-section,
    .time-slots-section {
        padding: 1rem;
    }

    .calendar-grid {
        gap: 0.25rem;
    }

    .time-slots-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 0.5rem;
    }
}

/*auth pages*/

.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(
        135deg,
        var(--cool-soft-gradient-1) 0%,
        var(--cool-soft-gradient-2) 100%
    );
    padding: 2rem 0;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    padding: 3rem;
    width: 100%;
    max-width: 450px;
    margin: 1rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    color: var(--primary-color);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-secondary);
    margin-bottom: 0;
}

.form-floating {
    margin-bottom: 1.5rem;
}

.form-floating > .form-control {
    border: 2px solid var(--neutral-cool);
    border-radius: 12px;
    padding: 1rem 0.75rem;
    height: auto;
    background: rgba(255, 255, 255, 0.8);
}

.form-floating > .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 184, 0.25);
    background: rgba(255, 255, 255, 1);
}

.form-floating > label {
    color: var(--text-secondary);
    padding: 1rem 0.75rem;
}

.btn-auth {
    background: linear-gradient(
        135deg,
        var(--primary-color) 0%,
        var(--buttons-hover) 100%
    );
    border: none;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    color: white;
    width: 100%;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 184, 0.3);
    color: white;
}

.btn-outline-auth {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    background: transparent;
    border-radius: 12px;
    padding: 0.875rem 2rem;
    font-weight: 600;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-outline-auth:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(74, 144, 184, 0.3);
}

.divider {
    text-align: center;
    margin: 1.5rem 0;
    position: relative;
}

.divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--neutral-cool);
}

.divider span {
    background: rgba(255, 255, 255, 0.95);
    padding: 0 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.social-login {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.btn-social {
    flex: 1;
    padding: 0.75rem;
    border: 2px solid var(--neutral-cool);
    background: white;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}

.btn-social:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.btn-google {
    color: #db4437;
}

.btn-facebook {
    color: #4267b2;
}

.btn-apple {
    color: #000;
}

.auth-switch {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--neutral-cool);
}

.auth-switch a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-switch a:hover {
    color: var(--buttons-hover);
    text-decoration: underline;
}

.forgot-password {
    text-align: right;
    margin-bottom: 1.5rem;
}

.forgot-password a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
}

.forgot-password a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-check {
    margin-bottom: 1.5rem;
}

.form-check-input:checked {
    background-color: var(--primary-color, #0d6efd);
    border-color: var(--primary-color, #0d6efd);
}

.form-check-input:focus {
    border-color: var(--primary-color, #0d6efd);
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.form-switch .form-check-input {
    width: 2em;
    margin-left: -2.5em;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='rgba%2855, 63, 71, 0.75%29'/%3e%3c/svg%3e");
    background-position: left center;
    border-radius: 2em;
    transition: background-position .15s ease-in-out;
}

.form-switch .form-check-input:checked {
    background-position: right center;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='%23fff'/%3e%3c/svg%3e");
}

.form-check-label small {
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

@media (max-width: 768px) {
    .auth-card {
        padding: 2rem 1.5rem;
        margin: 0.5rem;
    }
}

.btn-accent:hover {
    background-color: var(--buttons-hover);
    border-color: var(--buttons-hover);
    color: white;
}

/* Lightbox Modal Styles */
.gallery-thumbnail {
    cursor: pointer;
}

.lightbox-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.9) !important;
    z-index: 9999 !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
}

.lightbox-modal.show {
    display: flex !important;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 20px;
    width: 50px;
    height: 50px;
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    font-size: 18px;
    width: 45px;
    height: 45px;
    cursor: pointer;
    border-radius: 50%;
    z-index: 10000;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(220, 53, 69, 1);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
    transform: scale(1.1);
}

.lightbox-close:active {
    transform: scale(0.95);
}

.lightbox-info {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 14px;
    background: rgba(0, 0, 0, 0.7);
    padding: 12px 20px;
    border-radius: 25px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    white-space: nowrap;
}

@media (max-width: 768px) {
    .lightbox-nav {
        font-size: 16px;
        width: 40px;
        height: 40px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 16px;
        width: 35px;
        height: 35px;
    }

    .lightbox-info {
        bottom: 10px;
        font-size: 12px;
        padding: 8px 16px;
    }
}

/* Table header gradient styles */
/* Replace the existing .table th styles (lines 161-165) with this gradient version */
.table th {
    background: linear-gradient(
        135deg,
        var(--brand-primary) 0%,
        var(--brand-secondary) 100%
    ) !important;
    color: white !important;
    border: none !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.85rem !important;
    letter-spacing: 0.5px !important;
    padding: 1rem 0.75rem !important;
    position: relative !important;
}

.table th::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.1) 100%
    );
}

.table thead {
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}

/* Deposit History Page Styles */

/* Deposit transaction card styles */
.deposit-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(108, 117, 125, 0.1) !important;
}

.deposit-card-success {
    background: linear-gradient(135deg, #f0f9f4 0%, #ffffff 100%) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(91, 160, 133, 0.1) !important;
}

.deposit-card-pending {
    background: linear-gradient(135deg, #fff8e1 0%, #ffffff 100%) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.1) !important;
}

.deposit-card-failed {
    background: linear-gradient(135deg, #ffeaea 0%, #ffffff 100%) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.1) !important;
}

/* Table styles */
.table td {
    border-color: #e9ecef;
}

.status-badge {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

/* Clinic selection card */
.clinic-selection-card {
    background: linear-gradient(135deg, #f0f8ff 0%, #e6f3ff 100%) !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(74, 144, 184, 0.1) !important;
}

/* Lightbox styles */
.lightbox-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
}

/* Custom pagination styles - Active page items use primary color */
.pagination .page-item.active .page-link {
    background-color: var(--primary-color) !important;
    border-color: var(--primary-color) !important;
    color: white !important;
}

.pagination .page-item.active .page-link:hover {
    background-color: var(--buttons-hover) !important;
    border-color: var(--buttons-hover) !important;
    color: white !important;
}

/* All pagination links use primary color */
.pagination .page-item .page-link {
    color: var(--primary-color) !important;
    border-color: var(--neutral-cool) !important;
}

/* Hover state for non-active pagination links */
.pagination .page-item:not(.active) .page-link:hover {
    background-color: var(--neutral-cool) !important;
    border-color: var(--primary-color) !important;
    color: var(--buttons-hover) !important;
}

/* Disabled pagination links */
.pagination .page-item.disabled .page-link {
    color: var(--text-muted) !important;
    border-color: var(--neutral-cool) !important;
}

.lightbox-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    width: 100%;
    height: auto;
    max-height: 80vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(220, 53, 69, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 0, 0, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.lightbox-prev {
    left: -60px;
}

.lightbox-next {
    right: -60px;
}

/* Mobile improvements */
@media (max-width: 768px) {
    .lightbox-content {
        max-width: 95%;
        max-height: 85%;
        padding: 0 60px;
    }

    .lightbox-nav {
        font-size: 18px;
        width: 45px;
        height: 45px;
        background: rgba(0, 0, 0, 0.9);
        border: 3px solid rgba(255, 255, 255, 0.9);
    }

    .lightbox-prev {
        left: 5px;
    }

    .lightbox-next {
        right: 5px;
    }

    .lightbox-close {
        top: 5px;
        right: 5px;
        font-size: 18px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .lightbox-content {
        padding: 0 50px;
    }

    .lightbox-nav {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .lightbox-prev {
        left: 2px;
    }

    .lightbox-next {
        right: 2px;
    }
}

/* Profile form specific styles */
.form-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 0, 0, 0.05);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.section-title {
    color: var(--brand-primary);
    font-weight: 600;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--brand-primary);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 0.2rem rgba(74, 144, 184, 0.25);
}
.loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #007bff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 8px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.loading-spinner.show {
    opacity: 1;
}

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

/* select2 */
/* Select2 Custom Styling */
.select2-container--bootstrap-5 .select2-selection {
    min-height: calc(1.5em + 0.75rem + 2px);
    padding: 0.375rem 0.75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--bootstrap-5
    .select2-selection--single
    .select2-selection__rendered {
    padding-left: 0;
    padding-right: 0;
    height: auto;
    margin-top: -2px;
}

.select2-container--bootstrap-5
    .select2-selection--single
    .select2-selection__arrow {
    height: calc(1.5em + 0.75rem);
    right: 0.75rem;
}

.select2-container--bootstrap-5 .select2-dropdown {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
}

.select2-container--bootstrap-5
    .select2-search--dropdown
    .select2-search__field {
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 0.75rem;
}

.select2-container--bootstrap-5 .select2-results__option--highlighted {
    background-color: var(--primary-color, #0d6efd);
    color: white;
}

/* Loading spinner positioning for Select2 */
.form-label .loading-spinner {
    margin-left: 0.5rem;
}

/* Progress Bar - Full Width */
.wizard-progress {
    background: transparent;
    padding: 15px 0 25px;
    position: relative;
    width: 100%;
    margin: 0;
    z-index: 1;
}

.progress-bar-container {
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 6px;
    margin-bottom: 25px;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
    width: 100%;
}

/* Wizard Steps - Full Width Layout */
.wizard-steps {
    display: flex;
    align-items: center;
    position: relative;
    justify-content: stretch;
    gap: 0;
    margin: 0;
    padding: 0;
    width: 100%;
}

.wizard-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    margin: 0;
    padding: 0;
    flex: 1;
}

/* Remove gaps with overlapping */
.wizard-step:not(:last-child) {
    margin-right: -20px;
}

/* Arrow Shape Design - Full Width */
.step-arrow {
    position: relative;
    width: 100%;
    min-width: 120px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    margin-bottom: 12px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(20px);
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        0 2px 8px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%, 20px 50%);
}

/* Add subtle border only on top and bottom */
.step-arrow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-top: 1px solid var(--gradient2);
    border-bottom: 1px solid var(--gradient2);
    clip-path: inherit;
    pointer-events: none;
}

/* First step - no left indent, add left border */
.wizard-step:first-child .step-arrow {
    clip-path: polygon(0 0, calc(100% - 20px) 0, 100% 50%, calc(100% - 20px) 100%, 0 100%);
    padding-left: 8px;
}

.wizard-step:first-child .step-arrow::before {
    border-left: 1px solid var(--gradient2);
}

/* Last step - no right arrow, add right border */
.wizard-step:last-child .step-arrow {
    clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 20px 50%);
    padding-right: 8px;
}

.wizard-step:last-child .step-arrow::before {
    border-right: 1px solid var(--gradient2);
}

/* Single step (if only one step exists) */
.wizard-step:first-child:last-child .step-arrow {
    clip-path: none;
    padding: 0;
    border-radius: 8px;
}

.wizard-step:first-child:last-child .step-arrow::before {
    border: 1px solid var(--gradient2);
    border-radius: 8px;
    clip-path: none;
}

.arrow-content {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    width: 100%;
    height: 100%;
    z-index: 2;
}

.arrow-content i {
    font-size: 18px;
    color: var(--text-muted);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-number {
    font-size: 14px;
    font-weight: 700;
    color: white;
    position: absolute;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.8);
}

.step-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-sub);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    line-height: 1.3;
    letter-spacing: 0.3px;
    margin: 0;
    padding: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Allow text wrapping on narrow screens */
@media (max-width: 768px) {
    .step-label {
        white-space: normal;
        overflow: visible;
        text-overflow: unset;
        line-height: 1.2;
        font-size: 11px;
    }
}

/* Active Step */
.wizard-step.active .step-arrow {
    background: linear-gradient(90deg, var(--brand-primary), var(--buttons-hover));
    transform: scale(1.05);
    box-shadow: 
        0 8px 24px rgba(74, 144, 184, 0.4),
        0 4px 12px rgba(74, 144, 184, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 3;
}

.wizard-step.active .step-arrow::before {
    border-color: var(--brand-primary);
}

.wizard-step.active .arrow-content i {
    color: white;
    transform: scale(1.15);
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.wizard-step.active .step-label {
    color: white;
    font-weight: 700;
    transform: translateY(-1px);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Completed Step */
.wizard-step.completed .step-arrow {
    background: linear-gradient(135deg, var(--icons-color), #4a9d7a);
    box-shadow: 
        0 6px 20px rgba(91, 160, 133, 0.4),
        0 3px 10px rgba(91, 160, 133, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.wizard-step.completed .step-arrow::before {
    border-color: var(--icons-color);
}

.wizard-step.completed .arrow-content i {
    opacity: 0;
    transform: scale(0.5) rotate(180deg);
}

.wizard-step.completed .step-number {
    opacity: 1;
    transform: scale(1);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.wizard-step.completed .step-label {
    color: var(--icons-color);
    font-weight: 600;
}

/* Hover Effects */
.wizard-step:not(.active):not(.completed) .step-arrow:hover {
    transform: scale(1.02);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.15),
        0 3px 10px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    z-index: 3;
}

.wizard-step:not(.active):not(.completed) .step-arrow:hover::before {
    border-color: var(--brand-primary);
}

.wizard-step:not(.active):not(.completed) .step-arrow:hover .arrow-content i {
    color: var(--brand-primary);
    transform: scale(1.1);
}

/* Responsive Design */
@media (max-width: 768px) {
    .wizard-step:not(:last-child) {
        margin-right: -20x;
    }
    
    .step-arrow {
        min-width: 100px;
        height: 45px;
    }
    
    .wizard-step:first-child .step-arrow {
        clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%);
    }
    
    .wizard-step:last-child .step-arrow {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 18px 50%);
    }
    
    .wizard-step:not(:first-child):not(:last-child) .step-arrow {
        clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 50%, calc(100% - 18px) 100%, 0 100%, 18px 50%);
    }
    
    .arrow-content i {
        font-size: 16px;
    }
    
    .step-number {
        font-size: 12px;
    }
    
    .step-label {
        font-size: 11px;
    }
}

@media (max-width: 640px) {
    .step-label {
        font-size: 10px;
        padding: 0 20px;
        text-align: left !important;
    }
    
    .step-arrow {
        min-width: 80px;
        height: 40px;
    }
}