/* Chill Dock Booking System - Brand Identity UI */

/* Chill Brand CSS Variables */
:root {
    /* CHILL Brand Colors - Primary */
    --chill-ocean: #214B67;        /* Title - Ocean */
    --chill-mango: #F36F21;        /* Sub Title - Mango */
    --chill-aqua: #1EBAED;         /* Heading - Aqua */
    --chill-charcoal: #000000;     /* Body text - Charcoal */
    
    /* CHILL Brand Colors - Secondary */
    --chill-granite: #6D6E71;      /* Notes & annotations - Granite */
    --chill-sky: #ACD5F2;          /* Highlight - Sky */
    --chill-chrome: #BBBDC0;       /* Differentiator - Chrome */
    
    /* Brand Gradients */
    --primary-gradient: #1EBAED;
    --success-gradient: #1EBAED;
    --warning-gradient: #1EBAED;
    --info-gradient: #1EBAED;
    
    /* UI Variables */
    --card-shadow: 0 4px 6px -1px rgba(33, 75, 103, 0.1), 0 2px 4px -1px rgba(33, 75, 103, 0.06);
    --card-shadow-lg: 0 10px 15px -3px rgba(33, 75, 103, 0.1), 0 4px 6px -2px rgba(33, 75, 103, 0.05);
    --border-radius: 12px;
    --border-radius-lg: 16px;
    --animation-fast: 0.15s ease-out;
    --animation-normal: 0.3s ease-out;
    --animation-slow: 0.5s ease-out;
}

/* Chill Brand Typography */
body {
    font-family: 'Montserrat', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 500; /* Medium weight for body text */
    color: var(--chill-charcoal);
    line-height: 1.6; /* Base line spacing +2 to text size */
    background: #FFFFFF;
    min-height: 100vh;
}

/* Chill Brand Typography Hierarchy */
h1, .h1, .title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; /* ExtraBold */
    color: var(--chill-ocean);
    font-size: 2rem; /* 2x body copy (assuming 1rem base) */
    line-height: 1.2; /* +2 to text size spacing */
    margin-bottom: 1rem;
}

h2, .h2, .subtitle {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; /* Medium */
    color: var(--chill-mango);
    font-size: 1.5rem; /* 1.5x body copy */
    line-height: 1.25; /* +2 to text size spacing */
    margin-bottom: 0.75rem;
}

h3, h4, h5, h6, .h3, .h4, .h5, .h6, .heading {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800; /* ExtraBold */
    color: var(--chill-aqua);
    font-size: 1rem; /* Same as body copy */
    line-height: 1.2; /* +2 to text size spacing */
    margin-bottom: 0.5rem;
}

p, .body-text, .text-body {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500; /* Medium */
    color: var(--chill-charcoal);
    font-size: 1rem; /* Base body copy */
    line-height: 1.2; /* +2 to text size spacing */
    margin-bottom: 1rem;
}

/* CHILL Brand Notes & Annotations */
small, .detail, .text-muted {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 300 !important;
    color: var(--chill-granite) !important;
    line-height: 1.4;
}

.heading-charcoal {
    color: var(--chill-charcoal) !important;
}

/* Chill Brand Cards */
.card {
    border: 1px solid rgba(33, 75, 103, 0.15);
    border-radius: var(--border-radius);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--card-shadow);
    transition: all var(--animation-normal);
    overflow: hidden;
}

.card:hover {
    transform: none;
    box-shadow: var(--card-shadow);
}

.card-header {
    background: rgba(33, 75, 103, 0.05);
    border-bottom: 1px solid rgba(33, 75, 103, 0.1);
    padding: 1.5rem;
}

.card-header h1, .card-header h2, .card-header h3, .card-header h4, .card-header h5, .card-header h6 {
    color: var(--chill-ocean);
    margin-bottom: 0;
}

.card-body {
    padding: 1.5rem;
}

/* Modern Button Styles */
.btn {
    border-radius: 8px;
    font-weight: 500;
    padding: 0.75rem 1.25rem;
    border: none;
    transition: all var(--animation-fast);
    position: relative;
    overflow: hidden;
}


.btn-primary {
    background: #1EBAED;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(30, 186, 237, 0.39);
}

.btn-primary:hover {
    background: #1EBAED;
}

.btn-success {
    background: #28a745;
    border-color: #28a745;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(40, 167, 69, 0.39);
}

.btn-success:hover {
    background: #218838;
    border-color: #218838;
}

.btn-danger {
    background: #e87070;
    border-color: #e87070;
    color: white;
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    box-shadow: 0 4px 14px 0 rgba(232, 112, 112, 0.39);
}

.btn-danger:hover {
    background: #d95c5c;
    border-color: #d95c5c;
}

.btn-outline-primary {
    border: 2px solid var(--bs-primary);
    background: transparent;
    transition: all var(--animation-normal);
}

.btn-outline-primary:hover {
    background: #1EBAED;
    border-color: transparent;
}

/* Enhanced Table Design */
.table {
    border-radius: var(--border-radius);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.02);
}

.table thead th {
    background: rgba(255, 255, 255, 0.05);
    border: none;
    padding: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
}

.table tbody tr {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: all var(--animation-fast);
}

.table tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.table td {
    padding: 1rem;
    vertical-align: middle;
}

/* Form Controls - Light Theme */
.form-control, .form-select {
    border: 2px solid rgba(33, 75, 103, 0.2);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--chill-charcoal);
    padding: 0.75rem 1rem;
    transition: border-color var(--animation-normal), box-shadow var(--animation-normal);
    min-height: 48px;
    height: auto;
    line-height: 1.5;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

.form-control:focus, .form-select:focus {
    border-color: var(--chill-aqua);
    box-shadow: 0 0 0 0.2rem rgba(30, 186, 237, 0.2);
    background: rgba(255, 255, 255, 1);
    outline: none;
}

/* Specific styling for date input to ensure proper text alignment */
#booking_date {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    vertical-align: middle;
    text-align: left;
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    padding-left: 1rem;
    padding-right: 1rem;
    box-sizing: border-box;
    cursor: pointer;
}

#booking_date::placeholder {
    opacity: 0.6;
    color: rgba(255, 255, 255, 0.6);
}

/* Consistent input height */
input[type="text"],
input[type="email"],
input[type="password"],
input[type="date"],
input[type="number"],
input[type="search"],
textarea.form-control {
    min-height: 48px;
    padding: 0.75rem 1rem;
    line-height: 1.5;
    box-sizing: border-box;
}

/* Select arrow — consistent Chill brand chevron */
select.form-control,
select.form-select {
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23214B67' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.85rem center;
    background-size: 16px;
    padding-right: 2.5rem;
    cursor: pointer;
}

/* Date input calendar icon colour */
input[type="date"]::-webkit-calendar-picker-indicator {
    opacity: 0.55;
    cursor: pointer;
    filter: invert(22%) sepia(42%) saturate(510%) hue-rotate(167deg) brightness(85%) contrast(90%);
}

/* Responsive adjustments for smaller screens */
@media (max-width: 768px) {
    .form-control, .form-select {
        min-height: 44px;
        padding: 0.625rem 0.875rem;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    #booking_date {
        min-height: 44px;
        padding: 0.625rem 0.875rem;
    }
}

.form-label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--bs-gray-300);
}

/* Chill Brand Navigation */
.navbar {
    background: #214B67 !important;
    border-bottom: 1px solid rgba(30, 186, 237, 0.25) !important;
    padding: 0 !important;
    min-height: 60px;
}

.navbar > .container,
.navbar > .container-fluid {
    align-items: center !important;
}

.navbar-collapse,
.navbar-toggler {
    align-self: center !important;
    margin: 0.5rem 0;
}

.navbar-brand {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 1.4rem;
    color: #ffffff !important;
    transition: all var(--animation-fast);
    display: flex;
    align-items: center;
    padding: 0 !important;
    margin: 0 0 0 0.5rem !important;
    align-self: center;
}

.navbar-brand:hover {
    transform: scale(1.03);
    color: #1EBAED !important;
}

.navbar-brand img {
    height: 60px;
    margin-right: 0.5rem;
    display: block;
    margin-top: 0;
    vertical-align: top;
}

/* Dark glass nav links */
.navbar-dark .navbar-nav .nav-link,
.navbar .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.78) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    white-space: nowrap;
}

.navbar-dark .navbar-nav .nav-link:hover,
.navbar .navbar-nav .nav-link:hover {
    color: #1EBAED !important;
    background: rgba(30, 186, 237, 0.10) !important;
}

.navbar-dark .navbar-nav .nav-link.active,
.navbar .navbar-nav .nav-link.active {
    color: #1EBAED !important;
    background: rgba(30, 186, 237, 0.12) !important;
}

/* Navigation badges */
.navbar .badge {
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    font-size: 0.7rem;
    background: #1EBAED !important;
    color: #ffffff !important;
    border: 1px solid rgba(30, 186, 237, 0.6);
}

.navbar .dropdown-toggle::after {
    margin-left: 0.5rem;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0.9rem !important;
    border-radius: 8px;
    transition: all var(--animation-fast);
    margin: 0 0.15rem;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Navbar toggler for dark bg */
.navbar-dark .navbar-toggler {
    border-color: rgba(255, 255, 255, 0.3);
}
.navbar-dark .navbar-toggler-icon {
    filter: none;
}

/* Modern Badges */
.badge {
    padding: 0.5rem 0.75rem;
    border-radius: 20px;
    font-weight: 500;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.badge.bg-success {
    background: #1EBAED !important;
}

.badge.bg-warning {
    background: var(--warning-gradient) !important;
}

/* Progress Indicators */
.progress-step {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
}

.progress-step .step-number {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content-center;
    font-weight: 700;
    transition: all var(--animation-normal);
}

.progress-step.active .step-number {
    background: #1EBAED;
    color: white;
    box-shadow: 0 4px 14px 0 rgba(30, 186, 237, 0.39);
}

.progress-step.completed .step-number {
    background: #1EBAED;
    color: white;
}

.progress-step.inactive .step-number {
    background: white;
    color: #1EBAED;
    border: 2px solid #1EBAED;
}

/* Enhanced Animations */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 30px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.animate-slide-up {
    animation: slideInUp 0.6s ease-out;
}

.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* Dashboard Enhancements */
.welcome-card {
    background: #1EBAED;
    color: white;
    border: none;
}

.welcome-card .card-body {
    padding: 2rem;
}

.stats-card {
    text-align: center;
    transition: all var(--animation-normal);
}

.stats-card:hover {
    transform: translateY(-5px) scale(1.02);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1EBAED;
}

/* Status Indicators */
.status-indicator {
    display: inline-flex;
    align-items: center;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-pending {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.status-confirmed {
    background: rgba(25, 135, 84, 0.2);
    color: #28a745;
    border: 1px solid rgba(25, 135, 84, 0.3);
}

.status-arrived {
    background: rgba(30, 186, 237, 0.15);
    color: #1EBAED;
    border: 1px solid rgba(30, 186, 237, 0.35);
}

.status-completed {
    background: rgba(108, 117, 125, 0.2);
    color: #6c757d;
    border: 1px solid rgba(108, 117, 125, 0.3);
}

.status-cancelled {
    background: rgba(220, 53, 69, 0.2);
    color: #dc3545;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.status-rejected {
    background: rgba(217, 119, 6, 0.15);
    color: #d97706;
    border: 1px solid rgba(217, 119, 6, 0.3);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .card-body {
        padding: 1rem;
    }
    
    .btn {
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }
    
    .table-responsive {
        border-radius: var(--border-radius);
    }
    
    .stats-number {
        font-size: 2rem;
    }
    
    /* Login Page Mobile Fixes */
    .container-fluid.vh-100 {
        min-height: 100vh !important;
        padding: 1rem !important;
    }
    
    .row.g-0.rounded-4.overflow-hidden.shadow-lg {
        flex-direction: column !important;
        min-height: auto !important;
    }
    
    /* Hide branding section on mobile */
    .col-md-6:first-child {
        display: none !important;
    }
    
    /* Make login form full width on mobile */
    .col-md-6:last-child {
        width: 100% !important;
        max-width: 100% !important;
        flex: 0 0 100% !important;
        background: rgba(255, 255, 255, 0.95) !important;
        backdrop-filter: none !important;
    }
    
    /* Adjust login form padding */
    .col-md-6 .w-100.p-5 {
        padding: 2rem 1.5rem !important;
    }
    
    /* Improve form elements spacing */
    .mb-3 {
        margin-bottom: 1.5rem !important;
    }
    
    .mb-4 {
        margin-bottom: 2rem !important;
    }
    
    /* Better button sizing */
    .btn.w-100 {
        padding: 1rem !important;
        font-size: 1rem !important;
    }
    
    /* Improve text sizing */
    .heading {
        font-size: 1.75rem !important;
    }
    
    .body-text {
        font-size: 1rem !important;
    }
    
    /* Fix input groups */
    .input-group {
        flex-wrap: nowrap !important;
    }
    
    .input-group-text {
        min-width: 50px !important;
        justify-content: center !important;
    }
    
    /* Ensure proper form control sizing */
    .form-control {
        min-height: 50px !important;
        font-size: 16px !important; /* Prevents zoom on iOS */
    }
    
    /* Footer Mobile */
    footer {
        margin-top: 1rem !important;
        padding: 0.5rem 0 !important;
    }
}

/* Loading States */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    animation: loading 1.5s infinite;
}

@keyframes loading {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Chill Brand Dropdowns */
.dropdown-menu {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    border: 1px solid var(--chill-ocean);
    border-radius: var(--border-radius);
    box-shadow: var(--card-shadow-lg);
    padding: 0.5rem;
}

.dropdown-item {
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    color: var(--chill-charcoal);
}

.dropdown-item:hover {
    background: rgba(30, 186, 237, 0.1);
    color: var(--chill-ocean);
}

/* Status badges with Chill branding */
.badge.bg-secondary {
    background: var(--chill-ocean) !important;
    color: white;
}

.badge.bg-info {
    background: var(--chill-aqua) !important;
    color: white;
}

/* Form labels with Chill branding */
.form-label {
    font-family: 'Montserrat', sans-serif;
    font-weight: 600;
    color: var(--chill-ocean);
}

/* Welcome card enhancement */
.welcome-card {
    background: var(--primary-gradient);
    color: white;
    border: none;
}

.welcome-card h1, .welcome-card h2, .welcome-card h3, .welcome-card h4, .welcome-card h5, .welcome-card h6 {
    color: white !important;
}

.welcome-card p, .welcome-card .body-text {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Footer */
footer .detail {
    color: rgba(255, 255, 255, 0.85) !important;
    font-weight: 300 !important;
    font-size: 0.8rem;
}

/* Ensure all card body text uses Chill Charcoal color */
.card-body,
.card-body p,
.card-body li,
.card-body .list-unstyled li,
.card-body ul li,
.card-body ol li {
    color: var(--chill-charcoal) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Override any Bootstrap text utilities in cards */
.card-body .text-muted {
    color: var(--chill-granite) !important;
    font-weight: 300;
    opacity: 1;
}

/* Ensure list items in feature cards use proper Chill colors */
.list-unstyled li {
    color: var(--chill-charcoal) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
}

/* Chill Brand Button Styles - Ultra High Specificity */
.btn.btn-chill-outline.btn-sm,
.btn.btn-chill-outline,
a.btn.btn-chill-outline.btn-sm,
a.btn.btn-chill-outline {
    background: transparent !important;
    border: 2px solid var(--chill-aqua) !important;
    color: var(--chill-aqua) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    transition: all var(--animation-normal) !important;
    font-size: 1rem !important;
    box-shadow: none !important;
    min-width: 120px !important;
}

.btn.btn-chill-outline.btn-sm:hover,
.btn.btn-chill-outline:hover,
a.btn.btn-chill-outline.btn-sm:hover,
a.btn.btn-chill-outline:hover {
    background: var(--chill-aqua) !important;
    color: white !important;
    border-color: var(--chill-aqua) !important;
}

.btn.btn-chill-solid.btn-sm,
.btn.btn-chill-solid,
a.btn.btn-chill-solid.btn-sm,
a.btn.btn-chill-solid {
    background: var(--chill-aqua) !important;
    border: 2px solid var(--chill-aqua) !important;
    color: white !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    padding: 0.75rem 1.5rem !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 1rem !important;
    min-width: 120px !important;
}

.btn.btn-chill-solid.btn-sm:hover,
.btn.btn-chill-solid:hover,
a.btn.btn-chill-solid.btn-sm:hover,
a.btn.btn-chill-solid:hover {
    background: transparent !important;
    border-color: var(--chill-aqua) !important;
    color: var(--chill-aqua) !important;
}

/* Override focus states for Chill buttons */
.btn.btn-chill-outline:focus,
.btn.btn-chill-solid:focus,
a.btn.btn-chill-outline:focus,
a.btn.btn-chill-solid:focus {
    box-shadow: 0 0 0 0.2rem rgba(30, 186, 237, 0.25) !important;
    outline: none !important;
}

/* Button icon styling */
.btn.btn-chill-outline i,
.btn.btn-chill-solid i,
a.btn.btn-chill-outline i,
a.btn.btn-chill-solid i {
    margin-right: 0.5rem !important;
}

/* Compact action buttons for tables (Complete / Cancel) */
.btn-action-complete {
    background: var(--chill-ocean) !important;
    border: 1.5px solid var(--chill-ocean) !important;
    color: #fff !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    padding: 0.45rem 0.9rem !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
}
.btn-action-complete:hover {
    background: transparent !important;
    color: var(--chill-ocean) !important;
    border-color: var(--chill-ocean) !important;
}
.btn-action-complete:focus {
    box-shadow: 0 0 0 0.2rem rgba(33, 75, 103, 0.25) !important;
    outline: none !important;
}

.btn-action-cancel {
    background: transparent !important;
    border: 1.5px solid var(--chill-mango) !important;
    color: var(--chill-mango) !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
    font-size: 0.82rem !important;
    padding: 0.45rem 0.9rem !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
    box-shadow: none !important;
    line-height: 1.4 !important;
}
.btn-action-cancel:hover {
    background: var(--chill-mango) !important;
    color: #fff !important;
    border-color: var(--chill-mango) !important;
}
.btn-action-cancel:focus {
    box-shadow: 0 0 0 0.2rem rgba(243, 111, 33, 0.25) !important;
    outline: none !important;
}

/* Chill Feature Card Icons - Clean custom class approach */
.chill-icon {
    color: #F36F21 !important;
    stroke: #F36F21 !important;
}

/* Bootstrap Primary Button Override - Create Account Button (stays outlined) */
.btn-outline-primary {
    background: transparent !important;
    border: 2px solid #1EBAED !important;
    border-color: #1EBAED !important;
    color: #1EBAED !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus,
.btn-outline-primary:active {
    background: #1EBAED !important;
    border: 2px solid #1EBAED !important;
    border-color: #1EBAED !important;
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(30, 186, 237, 0.39) !important;
}

/* Bootstrap Primary Button Override - Sign In Button (solid) */
.btn-primary {
    background: #1EBAED !important;
    border: 2px solid #1EBAED !important;
    border-color: #1EBAED !important;
    color: white !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 600 !important;
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: #1EBAED !important;
    border: 2px solid #1EBAED !important;
    border-color: #1EBAED !important;
    color: white !important;
    box-shadow: 0 4px 14px 0 rgba(30, 186, 237, 0.39) !important;
}

.btn-primary:not(:disabled):not(.disabled):active,
.btn-primary:not(:disabled):not(.disabled).active {
    background: #1EBAED !important;
    border-color: #1EBAED !important;
    color: white !important;
}

/* Force map-pin icon color in circular backgrounds */
[data-feather="map-pin"] {
    color: white !important;
    stroke: white !important;
}

/* Force plus icon color in circular backgrounds */
[data-feather="plus"] {
    color: white !important;
    stroke: white !important;
}

/* Dropdown Menu Styling - White Background - Ultra High Specificity */
.navbar .dropdown-menu,
.nav-item .dropdown-menu,
.dropdown-menu,
ul.dropdown-menu {
    background-color: white !important;
    background: white !important;
    border: 1px solid rgba(0, 0, 0, 0.15) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
}

.navbar .dropdown-item,
.nav-item .dropdown-item,
.dropdown-item,
ul.dropdown-menu .dropdown-item {
    color: var(--chill-charcoal) !important;
    background-color: transparent !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
    padding: 0.75rem 1rem !important;
}

.navbar .dropdown-item:hover,
.nav-item .dropdown-item:hover,
.dropdown-item:hover,
ul.dropdown-menu .dropdown-item:hover,
.navbar .dropdown-item:focus,
.nav-item .dropdown-item:focus,
.dropdown-item:focus,
ul.dropdown-menu .dropdown-item:focus {
    background-color: var(--chill-aqua) !important;
    color: white !important;
}

.dropdown-item i {
    color: var(--chill-mango) !important;
}

.dropdown-item:hover i,
.dropdown-item:focus i {
    color: white !important;
}

/* ABSOLUTE DROPDOWN FIX - NUCLEAR OPTION */
* .dropdown-menu,
body .dropdown-menu,
html .dropdown-menu,
.navbar .dropdown-menu,
.nav-item .dropdown-menu,
ul.dropdown-menu,
.dropdown .dropdown-menu {
    background-color: #ffffff !important;
    background: #ffffff !important;
    color: #000000 !important;
    border: 1px solid #dee2e6 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    border-radius: 0.375rem !important;
}

* .dropdown-item,
body .dropdown-item,
html .dropdown-item,
.navbar .dropdown-item,
.nav-item .dropdown-item,
ul.dropdown-menu .dropdown-item,
.dropdown .dropdown-item {
    color: #000000 !important;
    background-color: transparent !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 500 !important;
    padding: 0.25rem 1rem !important;
}

* .dropdown-item:hover,
* .dropdown-item:focus,
body .dropdown-item:hover,
body .dropdown-item:focus,
html .dropdown-item:hover,
html .dropdown-item:focus,
.navbar .dropdown-item:hover,
.navbar .dropdown-item:focus,
.nav-item .dropdown-item:hover,
.nav-item .dropdown-item:focus {
    background-color: #1EBAED !important;
    color: #ffffff !important;
}
    fill: none !important;
}

/* Ensure SVG elements inside chill icons also follow the style */
.chill-icon svg {
    stroke: #F36F21 !important;
    fill: none !important;
}

.dropdown-item {
    border-radius: 6px;
    padding: 0.75rem 1rem;
    transition: all var(--animation-fast);
    margin-bottom: 0.25rem;
}

.dropdown-item:hover {
    background: #1EBAED !important;
    color: #ffffff !important;
    transform: translateX(5px);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    transition: all var(--animation-fast);
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Enhanced Alerts */
.alert {
    border: none;
    border-radius: var(--border-radius);
    padding: 1rem 1.5rem;
    border-left: 4px solid;
    backdrop-filter: blur(10px);
}

.alert-success {
    background: rgba(25, 135, 84, 0.1);
    border-left-color: #28a745;
    color: #28a745;
}

.alert-danger {
    background: rgba(220, 53, 69, 0.1);
    border-left-color: #dc3545;
    color: #dc3545;
}

.alert-warning {
    background: rgba(255, 193, 7, 0.1);
    border-left-color: #ffc107;
    color: #ffc107;
}

.alert-info {
    background: rgba(13, 202, 240, 0.1);
    border-left-color: #0dcaf0;
    color: #0dcaf0;
}

/* Fix text alignment issues */
.progress-step span,
.progress-step .step-number,
.d-flex.align-items-center span {
    vertical-align: middle;
    line-height: 1.2;
}

.step-number {
    text-align: center !important;
}

/* Ensure proper alignment for all flexbox text elements */
.d-flex.align-items-center {
    align-items: center !important;
}

.d-flex.align-items-center > * {
    align-self: center;
}

/* Sidebar z-index fix - ensure sidebar appears in front */
.sidebar,
.offcanvas,
.offcanvas-start {
    z-index: 1200 !important;
}

.offcanvas-backdrop {
    z-index: 1190 !important;
}

/* Custom navbar expand at 1040px (overrides Bootstrap xl's 1200px) */
@media (min-width: 1040px) and (max-width: 1199.98px) {
    .navbar-expand-xl {
        flex-wrap: nowrap;
        justify-content: flex-start;
    }
    .navbar-expand-xl .navbar-toggler {
        display: none;
    }
    .navbar-expand-xl .navbar-collapse {
        display: flex !important;
        flex-basis: auto;
    }
    .navbar-expand-xl .navbar-nav {
        flex-direction: row;
    }
    .navbar-expand-xl .navbar-nav .dropdown-menu {
        position: absolute;
    }
}

.navbar-toggler {
    z-index: 1210 !important;
    position: relative;
}

/* Ensure sidebar content appears in front */
.offcanvas-body,
.sidebar .nav-link,
.offcanvas .nav-link {
    z-index: 1205 !important;
    position: relative;
}

/* Dropdown menu z-index fix */
.dropdown-menu {
    z-index: 1300 !important;
    position: absolute !important;
}

.dropdown {
    z-index: 1250 !important;
    position: relative !important;
}

.btn-group {
    z-index: 1250 !important;
    position: relative !important;
}

/* Navbar dropdown specific fix - dark glass theme */
.navbar .dropdown-menu {
    z-index: 9999 !important;
    position: absolute !important;
    background: rgba(20, 55, 80, 0.97) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(30, 186, 237, 0.20) !important;
    border-radius: 10px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
    padding: 0.4rem !important;
}

.navbar .dropdown-menu .dropdown-item {
    color: rgba(255, 255, 255, 0.80) !important;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.875rem;
    border-radius: 6px;
    padding: 0.55rem 0.9rem !important;
}

.navbar .dropdown-menu .dropdown-item:hover,
.navbar .dropdown-menu .dropdown-item:focus {
    background: rgba(30, 186, 237, 0.12) !important;
    color: #1EBAED !important;
}

.navbar .dropdown-menu .dropdown-divider {
    border-color: rgba(255, 255, 255, 0.12) !important;
}

/* Force all dropdown menus to highest z-index */
.dropdown-menu,
.dropdown-menu.show {
    z-index: 9999 !important;
    position: absolute !important;
}

/* Admin dropdown specific fix */
.navbar-nav .dropdown-menu {
    z-index: 10000 !important;
    position: absolute !important;
}

/* Ensure left-side nav (with Settings dropdown) stacks above right-side nav items */
.navbar-nav.me-auto {
    position: relative;
    z-index: 1001;
}

.navbar-nav.pe-3 {
    position: relative;
    z-index: 1000;
}

/* Calendar and main content should have lower z-index */
.calendar-container,
.main-content,
.card:not(.temp-card-overflow) {
    z-index: 1 !important;
    position: relative;
}

/* Override Bootstrap dropdown positioning */
.dropdown-toggle::after {
    z-index: 10001 !important;
}

/* Ensure navbar stays below dropdowns */
.navbar {
    z-index: 100 !important;
}

/* Force dropdown to appear above everything */
body .dropdown-menu {
    z-index: 99999 !important;
    position: absolute !important;
    will-change: transform !important;
}

/* Ensure dropdown parent has relative positioning */
.navbar-nav .dropdown {
    position: relative !important;
}

/* Custom Select Dropdown */
.custom-select-wrapper {
    position: relative;
}

.card:has(.custom-select-wrapper) {
    overflow: visible !important;
    z-index: 50;
    position: relative !important;
}

.card:has(.custom-select-wrapper) .card-body {
    overflow: visible !important;
}

.card.temp-card-overflow {
    overflow: visible !important;
    position: relative !important;
}

.custom-select-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 1rem;
    background: white;
    border: 1px solid #d1d5db;
    border-radius: 0.5rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #214B67;
    transition: border-color 0.2s;
}

.custom-select-trigger:hover {
    border-color: #1EBAED;
}

.custom-select-trigger.open {
    border-color: #1EBAED;
    border-radius: 0.5rem 0.5rem 0 0;
}

.custom-select-options {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid #1EBAED;
    border-top: none;
    border-radius: 0 0 0.5rem 0.5rem;
    z-index: 9999;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.custom-select-options.open {
    display: block;
}

.custom-select-option {
    padding: 0.6rem 1rem;
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.95rem;
    color: #214B67;
    transition: background-color 0.15s;
}

.custom-select-option:hover {
    background-color: #f0f9fd;
}

.custom-select-option.selected {
    background-color: #e8f7fc;
    font-weight: 600;
}

/* Secondary button - solid grey, no hover effect */
.btn-secondary,
.btn-secondary:hover,
.btn-secondary:focus,
.btn-secondary:active {
    background-color: #6c757d !important;
    border-color: #6c757d !important;
    color: white !important;
    box-shadow: none !important;
}