/* style.css - Premium Stylesheet for RentaBIKE */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --bg-dark: #F3F4F6; /* Light silver-grey background */
    --bg-card: #FFFFFF; /* Pure white card background */
    --bg-card-light: #F9FAFB; /* Very light grey card background */
    --accent: #FFA000; /* Vibrant Orange/Yellow from mockup photo */
    --accent-hover: #F57C00;
    --text-white: #111827; /* Dark primary text */
    --text-dim: #6B7280; /* Dimmed secondary grey text */
    --text-dark: #FFFFFF; /* White text on active orange buttons */
    --border-color: rgba(0, 0, 0, 0.08);
    --border-accent: rgba(255, 160, 0, 0.2);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --font: 'Plus Jakarta Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-dark);
    color: var(--text-white);
    font-family: var(--font);
    overflow-x: hidden;
    display: flex;
    justify-content: center;
    min-height: 100vh;
}

/* App Shell container */
.app-container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    background: var(--bg-dark);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: -1px;
    text-transform: uppercase;
}

.logo span {
    color: var(--accent);
}

.btn-header {
    background: var(--bg-card-light);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 6px 12px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease-in-out;
}

.btn-header:hover {
    background: var(--accent);
    color: var(--text-dark);
    border-color: var(--accent);
}

/* Main View container */
.main-view {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding-bottom: 30px;
}

/* Uber Map Simulator Area */
.map-simulator {
    height: 250px;
    position: relative;
    background: radial-gradient(circle, #333336 10%, #121214 80%);
    overflow: hidden;
}

.map-grid {
    position: absolute;
    width: 200%;
    height: 200%;
    top: -50%;
    left: -50%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.015) 1px, transparent 1px);
    background-size: 30px 30px;
    transform: rotate(-15deg);
}

.map-pin {
    position: absolute;
    background: var(--accent);
    color: var(--text-dark);
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 9px;
    font-weight: 800;
    box-shadow: 0 4px 15px rgba(255, 87, 34, 0.4);
    animation: pulsePin 2s infinite ease-in-out;
    display: flex;
    align-items: center;
    gap: 4px;
}

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

/* Panels (Sliding card style) */
.booking-card {
    background: var(--bg-card);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    margin-top: -30px;
    position: relative;
    z-index: 10;
    padding: 30px 20px;
    border-top: 1px solid var(--border-color);
    box-shadow: 0 -15px 40px rgba(0,0,0,0.6);
    min-width: 0; /* Prevents grid blowout from children */
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 20px;
    letter-spacing: -0.5px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.section-title span {
    font-size: 12px;
    color: var(--text-dim);
}

/* Custom Date/Time pickers */
.input-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.input-box {
    background: var(--bg-card-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
}

.input-box label {
    font-size: 9px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--text-dim);
    margin-bottom: 4px;
}

.input-box input {
    background: transparent;
    border: none;
    color: var(--text-white);
    font-family: var(--font);
    font-size: 13px;
    font-weight: 600;
    outline: none;
    width: 100%;
    min-width: 0;
}

.bike-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    position: relative;
}

/* Motorcycle Carousel/Slider */
.bike-carousel {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.bike-carousel::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.bike-card {
    flex: 0 0 160px;
    background: var(--bg-card-light);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 15px;
    cursor: pointer;
    transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden; /* Ensure absolute overlays stay inside */
}

/* Lock overlay for bike cards */
.lock-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(243, 244, 246, 0.9); /* matches body background */
    backdrop-filter: blur(2px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 20px;
    z-index: 10;
    color: var(--text-dim);
    font-size: 11px;
    font-weight: 700;
    transition: opacity 0.3s ease;
    text-align: center;
    padding: 10px;
}

.bike-card:not(.locked) .lock-overlay {
    opacity: 0;
    pointer-events: none;
}

.bike-card.selected {
    border-color: var(--accent);
    background: linear-gradient(145deg, var(--bg-card-light) 0%, rgba(255, 87, 34, 0.05) 100%);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.1);
}

.bike-card.selected::after {
    content: "✓";
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--accent);
    color: var(--text-dark);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bike-img {
    width: 100%;
    height: 90px;
    object-fit: contain;
    margin: 10px 0;
}

.bike-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 4px;
}

.bike-price {
    font-size: 14px;
    font-weight: 800;
    color: var(--accent);
}

.bike-price span {
    font-size: 9px;
    color: var(--text-dim);
    font-weight: 400;
}

/* Call to Action Button */
.btn-cta {
    display: block;
    width: 100%;
    background: var(--accent);
    color: var(--text-dark);
    border: none;
    border-radius: 18px;
    padding: 16px;
    font-size: 15px;
    font-weight: 800;
    text-transform: uppercase;
    cursor: pointer;
    transition: 0.2s ease-in-out;
    text-align: center;
    margin-top: 15px;
    box-shadow: 0 5px 20px rgba(255, 87, 34, 0.2);
}

.btn-cta:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: 0 8px 25px rgba(255, 87, 34, 0.3);
}

/* Extras checkbox styles */
.extra-item {
    background: var(--bg-card-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.2s;
}

.extra-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.extra-info {
    display: flex;
    flex-direction: column;
}

.extra-title {
    font-size: 13px;
    font-weight: 700;
}

.extra-price {
    font-size: 11px;
    color: var(--accent);
    font-weight: 600;
}

.extra-checkbox {
    width: 22px;
    height: 22px;
    accent-color: var(--accent);
}

/* Simple text input form */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 10px;
    font-weight: 800;
    color: var(--text-dim);
    text-transform: uppercase;
    margin-bottom: 6px;
    margin-left: 4px;
}

.form-input {
    width: 100%;
    padding: 15px;
    background: var(--bg-card-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    color: var(--text-white);
    font-family: var(--font);
    font-size: 14px;
    font-weight: 600;
    outline: none;
}

.form-input:focus {
    border-color: var(--accent);
}

/* QR view */
.qr-container {
    text-align: center;
    background: var(--bg-card-light);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    padding: 30px;
    margin: 20px 0;
}

.qr-box {
    background: white;
    width: 150px;
    height: 150px;
    margin: 0 auto 20px;
    padding: 10px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Admin / Staff styles */
.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.admin-table th, .admin-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    font-size: 12px;
}

.admin-table th {
    color: var(--text-dim);
    text-transform: uppercase;
    font-size: 9px;
    letter-spacing: 0.5px;
}

.badge {
    background: rgba(255,255,255,0.05);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
}

.badge.success {
    background: rgba(37,211,102,0.15);
    color: #25D366;
}

.badge.warning {
    background: rgba(255,200,0,0.15);
    color: #FFC800;
}

.badge.danger {
    background: rgba(230,46,45,0.15);
    color: #E62E2D;
}

.badge.primary {
    background: rgba(210, 255, 0, 0.15);
    color: var(--accent);
}

/* Modal styles */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
}

.modal-content {
    background: var(--bg-card);
    width: 100%;
    max-width: 400px;
    border-radius: 30px;
    padding: 25px;
    border: 1px solid var(--border-color);
}

/* RESPONSIVE MEDIA QUERIES FOR DESKTOP VIEWS */
@media (min-width: 768px) {
    /* Main View - Overlapping Vertical Flow */
    #view-renter {
        display: block;
        padding: 0 20px;
        min-width: 0;
    }

    .map-simulator {
        height: 450px;
        border-radius: 24px;
        border: 1px solid var(--border-color);
        width: 100%;
    }

    .booking-card {
        margin: -80px auto 0; /* Centered and overlapping the map */
        max-width: 760px; /* Elegant desktop size */
        border-radius: 24px;
        border: 1px solid var(--border-color);
        box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
        min-width: 0; 
        z-index: 15;
        position: relative;
    }

    /* Owner Columns */
    .owner-dashboard-columns {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 20px;
        align-items: start;
    }

    /* Owner Stats Grid - 4 Columns */
    #owner-dashboard .stat-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }

    /* Padding adjustments */
    .main-view {
        padding: 0 10px 40px;
    }
}

/* Mobile responsive adjustments for inputs */
@media (max-width: 480px) {
    .input-grid {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   INFO SECTION & TABS (RESPONSIVE & PREMIUM STYLING)
   ========================================================================== */
.info-section {
    padding: 30px 20px;
    margin-top: 30px;
    border-top: 1px solid var(--border-color);
}

.info-tabs {
    display: flex;
    background: var(--bg-card-light);
    padding: 5px;
    border-radius: 12px;
    margin-bottom: 25px;
    border: 1px solid var(--border-color);
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar for clean UI */
}

.info-tabs::-webkit-scrollbar {
    display: none; /* Hide scrollbar for Chrome, Safari, and Opera */
}

.info-tab-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    background: transparent;
    color: var(--text-dim);
    transition: all 0.3s ease;
    white-space: nowrap; /* Prevent wrapping and cutoffs */
}

.info-tab-btn.active {
    background: var(--accent) !important;
    color: var(--text-dark) !important;
}

/* Benefits & FAQ Grid */
.info-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.info-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 20px;
    border-radius: 18px;
    display: flex;
    gap: 16px;
    align-items: flex-start;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.info-card:hover {
    transform: translateY(-3px);
    border-color: var(--accent);
    box-shadow: 0 10px 25px rgba(255, 87, 34, 0.08);
}

.info-card-icon {
    background: rgba(255, 87, 34, 0.12);
    padding: 12px;
    border-radius: 50%;
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-content h4 {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--text-white);
}

.info-card-content p {
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.6;
}

/* Timeline */
.timeline-container {
    position: relative;
    padding-left: 30px;
    border-left: 2px solid var(--accent);
    display: grid;
    gap: 25px;
    margin-left: 15px;
    margin-top: 15px;
}

.timeline-item {
    position: relative;
}

.timeline-dot {
    position: absolute;
    left: -39px;
    top: 4px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg-dark);
}

.timeline-item h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 6px;
    color: var(--accent);
}

.timeline-item p {
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.5;
}

/* FAQ Accordion */
.faq-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    border-color: rgba(255, 255, 255, 0.15);
}

.faq-header {
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 13.5px;
    user-select: none;
}

.faq-answer {
    display: none;
    padding: 0 20px 16px 20px;
    font-size: 12.5px;
    color: var(--text-dim);
    line-height: 1.5;
    border-top: 1px solid rgba(255, 255, 255, 0.03);
    padding-top: 12px;
}

/* Media Queries for Desktop layout */
@media (min-width: 768px) {
    .info-section {
        grid-column: 1 / -1; /* Spans across 2 columns under map/booking grid */
        padding: 40px 0;
    }
    
    .info-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .faq-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .timeline-container {
        grid-template-columns: repeat(4, 1fr);
        border-left: none;
        border-top: 2px solid var(--accent);
        padding-left: 0;
        padding-top: 25px;
        margin-left: 0;
        gap: 20px;
    }
    
    .timeline-dot {
        left: 0;
        top: -34px;
    }
}

/* ==========================================================================
   HAMBURGER MENU & DRAWER SIDEBAR
   ========================================================================== */
.btn-hamburger {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-white);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-radius: 50%;
    transition: background-color 0.2s ease;
}

.btn-hamburger:hover {
    background: rgba(0, 0, 0, 0.05);
}

.drawer {
    position: fixed;
    top: 0;
    right: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-card);
    z-index: 1000;
    box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.drawer.open {
    right: 0;
}

.drawer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.btn-close-drawer {
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-dim);
    display: flex;
    padding: 4px;
}

.drawer-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.drawer-item {
    background: transparent;
    border: none;
    color: var(--text-white);
    padding: 12px 16px;
    border-radius: 10px;
    text-align: left;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: background-color 0.2s;
}

.drawer-item:hover {
    background: var(--bg-card-light);
    color: var(--accent);
}

.drawer-divider {
    border: none;
    border-top: 1px solid var(--border-color);
    margin: 10px 0;
}

.drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.drawer-overlay.show {
    opacity: 1;
    pointer-events: auto;
}

/* ==========================================================================
   MOMONDO STYLE LOGIN MODAL
   ========================================================================== */
.momondo-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 18, 20, 0.65);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 20px;
}

.momondo-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.momondo-modal-content {
    background: #FFFFFF;
    width: 100%;
    max-width: 480px;
    border-radius: 28px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    position: relative;
    transform: translateY(20px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.momondo-modal.show .momondo-modal-content {
    transform: translateY(0);
}

.momondo-btn-close {
    position: absolute;
    top: 25px;
    right: 25px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #111827;
    padding: 4px;
    display: flex;
}

.momondo-title {
    font-size: 28px;
    font-weight: 800;
    line-height: 1.25;
    color: #111827;
    margin-bottom: 12px;
    letter-spacing: -0.8px;
}

.momondo-subtitle {
    font-size: 13.5px;
    color: #4B5563;
    line-height: 1.5;
    margin-bottom: 28px;
}

/* Social Buttons */
.momondo-social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #E5E7EB;
    background: transparent;
    padding: 12px 20px;
    border-radius: 12px;
    font-weight: 700;
    font-size: 14px;
    color: #111827;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s;
}

.momondo-social-btn:hover {
    background: #F9FAFB;
    border-color: #D1D5DB;
}

.momondo-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #9CA3AF;
    font-size: 13px;
    font-weight: 600;
    margin: 20px 0;
}

.momondo-divider::before, .momondo-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1.5px solid #F3F4F6;
}

.momondo-divider:not(:empty)::before {
    margin-right: 15px;
}

.momondo-divider:not(:empty)::after {
    margin-left: 15px;
}

.momondo-email-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #111827;
    color: #FFFFFF;
    border: none;
    padding: 14px;
    border-radius: 12px;
    font-size: 14.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-bottom: 24px;
}

.momondo-email-btn:hover {
    background: #1F2937;
}

.momondo-terms {
    font-size: 11.5px;
    color: #9CA3AF;
    text-align: center;
    line-height: 1.5;
}

.momondo-terms a {
    color: #4B5563;
    text-decoration: underline;
    font-weight: 600;
}

/* Switch toggle slider styling */
.switch-toggle {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 24px;
}

.switch-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 24px;
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked + .switch-slider {
    background-color: var(--accent);
}

input:checked + .switch-slider:before {
    transform: translateX(20px);
}

/* Hour picker grid */
.hour-buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    margin-bottom: 10px;
}

.hour-btn {
    background: var(--bg-card-light);
    border: 1px solid var(--border-color);
    color: var(--text-white);
    padding: 8px 4px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s ease;
}

.hour-btn:hover {
    background: var(--accent);
    color: var(--text-dark);
    border-color: var(--accent);
}

.hour-btn.selected {
    background: var(--accent);
    color: var(--text-dark);
    border-color: var(--accent);
}

/* Custom Flatpickr Brand Theme (Vibrant Orange) */
.flatpickr-calendar {
    background: var(--bg-card) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 18px !important;
    font-family: var(--font) !important;
}

.flatpickr-day.selected, 
.flatpickr-day.startRange, 
.flatpickr-day.endRange, 
.flatpickr-day.selected.inRange, 
.flatpickr-day.startRange.inRange, 
.flatpickr-day.endRange.inRange, 
.flatpickr-day.selected:focus, 
.flatpickr-day.startRange:focus, 
.flatpickr-day.endRange:focus, 
.flatpickr-day.selected:hover, 
.flatpickr-day.startRange:hover, 
.flatpickr-day.endRange:hover, 
.flatpickr-day.prevMonthDay.selected, 
.flatpickr-day.nextMonthDay.selected {
    background: var(--accent) !important;
    border-color: var(--accent) !important;
    color: var(--text-dark) !important;
}

.flatpickr-day.inRange,
.flatpickr-day.prevMonthDay.inRange,
.flatpickr-day.nextMonthDay.inRange,
.flatpickr-day.today.inRange,
.flatpickr-day.prevMonthDay.today.inRange,
.flatpickr-day.nextMonthDay.today.inRange {
    background: rgba(255, 160, 0, 0.15) !important; /* light accent tint */
    border-color: transparent !important;
}

.flatpickr-day:hover {
    background: var(--bg-card-light) !important;
}

.flatpickr-months .flatpickr-month {
    color: var(--text-white) !important;
}

.flatpickr-current-month .numInputWrapper span.arrowUp:after {
    border-bottom-color: var(--text-white) !important;
}

.flatpickr-current-month .numInputWrapper span.arrowDown:after {
    border-top-color: var(--text-white) !important;
}

.flatpickr-months .flatpickr-prev-month, 
.flatpickr-months .flatpickr-next-month {
    color: var(--text-white) !important;
    fill: var(--text-white) !important;
}

.flatpickr-day.flatpickr-disabled, 
.flatpickr-day.flatpickr-disabled:hover {
    color: rgba(0, 0, 0, 0.15) !important;
}

/* ==========================================================================
   CUSTOM ALERT SYSTEM - BRANDING APPLE 2026
   ========================================================================== */
.custom-alert-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(18, 18, 20, 0.75);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.25s ease;
    padding: 20px;
}
.custom-alert-overlay.show {
    display: flex;
    opacity: 1;
}
.custom-alert-box {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 28px;
    padding: 30px 24px;
    width: 100%;
    max-width: 380px;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
    transform: scale(0.85);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.2);
}
.custom-alert-overlay.show .custom-alert-box {
    transform: scale(1);
}
.custom-alert-icon {
    background: rgba(255, 87, 34, 0.1);
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: var(--accent);
}
.custom-alert-message {
    color: var(--text-white);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.6;
    margin-bottom: 24px;
}
.custom-alert-btn {
    background: var(--accent);
    color: var(--text-dark);
    border: none;
    padding: 13px;
    border-radius: 14px;
    font-weight: 800;
    font-size: 13px;
    cursor: pointer;
    width: 100%;
    transition: background-color 0.2s, transform 0.1s;
}
.custom-alert-btn:hover {
    opacity: 0.9;
}
.custom-alert-btn:active {
    transform: scale(0.98);
}


