/* Nova Drive CSS Theme - Premium Light-Navy Dashboard (App Feel) */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
    --primary: #0F2C4C; /* Deep Navy Blue */
    --accent: #3D99FF; /* Electric Blue */
    --bg-base: #F8FAFC; /* Slate/Gray-white background */
    --bg-card: #FFFFFF; /* White card */
    --bg-input: #FFFFFF;
    --white: #FFFFFF;
    --border-color: #E2E8F0; /* Soft gray border */
    
    --primary-hover: #081d33;
    --primary-glow: rgba(61, 153, 255, 0.15);
    
    --accent-hover: #2480E6;
    --danger: #EF4444;
    --danger-hover: #DC2626;
    --danger-glow: rgba(239, 68, 68, 0.15);
    
    --warning: #F59E0B;
    --success: #10B981;
    
    --text-primary: #1E293B; /* Dark slate text */
    --text-secondary: #64748B; /* Muted gray text */
    --text-muted: #94A3B8;
    
    --font-main: 'Plus Jakarta Sans', sans-serif;
    --font-title: 'Outfit', sans-serif;
    
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    
    --shadow-sm: 0 2px 8px rgba(15, 44, 76, 0.03);
    --shadow-md: 0 8px 24px rgba(15, 44, 76, 0.05);
    --shadow-lg: 0 16px 40px rgba(15, 44, 76, 0.08);
    
    --glass-blur: 12px;
}

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

body {
    font-family: var(--font-main);
    background-color: var(--bg-base);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    -webkit-tap-highlight-color: transparent;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Utilities */
.desktop-only {
    display: block;
}
.mobile-only {
    display: none !important;
}

/* Login Page CSS */
.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    background: linear-gradient(135deg, var(--primary) 0%, #1A3E66 100%);
}

.login-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 420px;
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    animation: fadeIn var(--transition-normal);
}

.brand-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 54px;
    height: 54px;
    border-radius: 12px;
    background: var(--accent);
    margin-bottom: 12px;
    color: white;
    font-size: 26px;
    font-weight: 800;
    font-family: var(--font-title);
    box-shadow: 0 4px 10px rgba(61, 153, 255, 0.3);
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    font-family: var(--font-title);
    color: var(--primary);
    letter-spacing: 0.5px;
}

.brand-subtitle {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 4px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group {
    margin-bottom: 20px;
    position: relative;
    text-align: left;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
}

.form-input {
    width: 100%;
    background-color: var(--bg-input);
    border: 1px solid #CBD5E1;
    border-radius: var(--radius-md);
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 14px;
    transition: var(--transition-fast);
}

.form-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--primary-glow);
}

.btn {
    width: 100%;
    background: var(--primary);
    border: none;
    border-radius: var(--radius-md);
    padding: 12px;
    color: white;
    font-family: var(--font-main);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn:active {
    transform: translateY(0);
}

.btn-secondary {
    background: #E2E8F0;
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: #CBD5E1;
    box-shadow: none;
    transform: none;
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: var(--danger-hover);
    box-shadow: 0 4px 12px var(--danger-glow);
}

.error-banner {
    background: rgba(239, 68, 68, 0.08);
    border: 1px solid rgba(239, 68, 68, 0.2);
    color: var(--danger);
    padding: 12px;
    border-radius: var(--radius-md);
    font-size: 13px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
}

/* Layout & Navigation */
.app-container {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.header {
    background-color: var(--primary);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(15, 44, 76, 0.12);
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-section .logo-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background-color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 800;
    font-size: 18px;
    font-family: var(--font-title);
    box-shadow: 0 3px 6px rgba(61, 153, 255, 0.3);
}

.logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.logo-title {
    font-weight: 800;
    color: white;
    font-size: 18px;
    font-family: var(--font-title);
    letter-spacing: 0.5px;
}

.logo-sub {
    color: rgba(255, 255, 255, 0.7);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 600;
}

.user-profile-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.user-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.15);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: white;
    display: flex;
    align-items: center;
    gap: 6px;
}

#user-role-badge {
    font-size: 9px;
    opacity: 0.9;
    text-transform: uppercase;
    background: var(--accent);
    padding: 2px 6px;
    border-radius: 4px;
    margin-left: 4px;
    color: white;
    font-weight: 700;
}

.logout-link {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 4px;
}

.logout-link:hover {
    color: var(--accent);
}

/* Header Navigation Bar */
.header-nav {
    display: flex;
    gap: 8px;
    align-items: center;
}

.header-nav .tab-btn {
    color: rgba(255, 255, 255, 0.7);
    padding: 8px 16px;
    font-size: 14px;
}

.header-nav .tab-btn:hover {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.header-nav .tab-btn.active {
    color: white;
    background: var(--accent);
    box-shadow: 0 4px 10px rgba(61, 153, 255, 0.25);
}

.main-content {
    flex: 1;
    padding: 24px;
    max-width: 1400px;
    width: 100%;
    margin: 0 auto;
    animation: fadeIn var(--transition-normal);
}

/* Tabs Navigation */
.tabs-navigation {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 12px;
}

.tab-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border-radius: var(--radius-sm);
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-main);
}

.tab-btn:hover {
    color: var(--primary);
    background: #F1F5F9;
}

.tab-btn.active {
    color: white;
    background: var(--accent);
    box-shadow: 0 4px 10px rgba(61, 153, 255, 0.25);
}

/* Dashboard Cards/Widgets */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: #CBD5E1;
}

.stat-icon {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.pickups {
    background: rgba(61, 153, 255, 0.1);
    color: var(--accent);
}

.stat-icon.drops {
    background: rgba(15, 44, 76, 0.08);
    color: var(--primary);
}

.stat-icon.bookings {
    background: rgba(16, 185, 129, 0.1);
    color: var(--success);
}

.stat-icon.drivers {
    background: rgba(245, 158, 11, 0.1);
    color: var(--warning);
}

.stat-info {
    flex: 1;
}

.stat-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-title);
}

/* Today's Schedule Panels */
.schedule-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 24px;
    margin-bottom: 30px;
}

.panel {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}

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

.panel-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-title);
    display: flex;
    align-items: center;
    gap: 8px;
}

.panel-badge {
    background: #F1F5F9;
    color: var(--text-secondary);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}

.schedule-list {
    max-height: 380px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-right: 5px;
}

.schedule-list::-webkit-scrollbar {
    width: 6px;
}

.schedule-list::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 3px;
}

.schedule-item {
    background: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: var(--transition-fast);
}

.schedule-item:hover {
    border-color: var(--accent);
    background: #FFFFFF;
    box-shadow: var(--shadow-sm);
}

.item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.item-main {
    font-weight: 700;
    font-size: 14px;
    color: var(--primary);
}

.item-sub {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 500;
}

.item-time {
    background: #EFF6FF;
    color: var(--accent);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    border: 1px solid rgba(61, 153, 255, 0.15);
}

.item-place {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-primary);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.no-data {
    text-align: center;
    padding: 30px;
    color: var(--text-muted);
    font-size: 13px;
}

/* Booking entry forms and filters */
.control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 20px;
}

.search-filter-container {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
    max-width: 850px;
}

.filter-input {
    background-color: var(--bg-card);
    border: 1px solid #CBD5E1;
    color: var(--text-primary);
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    min-width: 140px;
    font-family: var(--font-main);
    transition: var(--transition-fast);
}

.filter-input:focus {
    outline: none;
    border-color: var(--accent);
}

/* Bookings Table */
.table-container {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    margin-bottom: 35px;
}

.scrollable-table {
    overflow-x: auto;
    max-height: 600px;
}

.bookings-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 13px;
}

.bookings-table th {
    background-color: #F1F5F9;
    color: var(--text-secondary);
    font-weight: 700;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    white-space: nowrap;
    position: sticky;
    top: 0;
    z-index: 10;
}

.bookings-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-primary);
    white-space: nowrap;
}

.bookings-table tr:hover td {
    background-color: #F8FAFC;
}

/* Status Badges */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 11.5px;
    font-weight: 700;
    text-transform: uppercase;
}

.badge.received, .badge.cleared, .badge.clear {
    background: #ECFDF5;
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge.pending, .badge.not-received, .badge.not {
    background: #FEF2F2;
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge.online {
    background: #EFF6FF;
    color: var(--accent);
    border: 1px solid rgba(61, 153, 255, 0.2);
}

.badge.cash {
    background: #FFFBEB;
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

/* Modal Overlay & Forms */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(15, 44, 76, 0.4);
    backdrop-filter: blur(4px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-fast);
}

.modal-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 25px;
    box-shadow: var(--shadow-lg);
    transform: scale(0.95);
    transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-content {
    transform: scale(1);
}

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

.modal-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--primary);
    font-family: var(--font-title);
}

.close-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition-fast);
}

.close-btn:hover {
    color: var(--primary);
}

/* Grid Layout for Form Columns */
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}

.form-grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

/* Staff/Driver Manager styles */
.driver-list-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}

.driver-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 18px 20px 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: auto;
    min-height: 250px;
    box-shadow: var(--shadow-sm);
    transition: var(--transition-fast);
}

.driver-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.driver-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding-bottom: 8px;
    border-bottom: 1px solid #F1F5F9;
}

.drv-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.drv-id {
    font-size: 11px;
    font-weight: 700;
    color: var(--accent);
    background: #EFF6FF;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(61, 153, 255, 0.15);
}

.driver-details {
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-grow: 1;
}

.driver-details p {
    margin: 0;
    line-height: 1.4;
}

.driver-card-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}

.delete-btn {
    background: transparent;
    border: none;
    color: var(--text-secondary);
    font-size: 11.5px;
    cursor: pointer;
    font-weight: 600;
    padding: 5px 8px;
    border-radius: 4px;
    transition: var(--transition-fast);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.delete-btn:hover {
    color: var(--danger);
    background: #FEF2F2;
}

/* Floating Action Button */
.fab {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    background: var(--accent);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    border: none;
    box-shadow: 0 4px 12px rgba(61, 153, 255, 0.35);
    cursor: pointer;
    transition: var(--transition-fast);
    z-index: 99;
}

.fab:hover {
    transform: scale(1.05) rotate(90deg);
    background: var(--accent-hover);
}

/* ==========================================================================
   MOBILE & RESPONSIVE BREAKPOINT (<= 768px)
   ========================================================================== */
@media (max-width: 768px) {
    /* Hide/Show utilities */
    .desktop-only {
        display: none !important;
    }
    .mobile-only {
        display: block !important;
    }
    
    /* Spacing fixes */
    body {
        padding-bottom: 74px; /* Space for sticky bottom navigation */
    }
    
    .main-content {
        padding: 16px 16px 30px 16px;
    }
    
    .header {
        padding: 12px 16px;
    }
    
    .logo-section .logo-text {
        font-size: 15px;
    }
    
    .user-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    #user-role-badge {
        display: none; /* Hide role on header to save space on small screens */
    }
    
    /* Stats Layout */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
        margin-bottom: 16px;
    }
    
    .stat-card {
        padding: 12px 14px;
        gap: 10px;
    }
    
    .stat-icon {
        width: 38px;
        height: 38px;
        font-size: 16px;
        border-radius: 8px;
    }
    
    .stat-title {
        font-size: 9px;
    }
    
    .stat-value {
        font-size: 18px;
    }
    
    /* Schedule Panels */
    .schedule-grid {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 16px;
    }
    
    .panel {
        padding: 15px;
    }
    
    .panel-title {
        font-size: 14px;
    }
    
    .panel-badge {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* Filters section */
    .control-bar {
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .search-filter-container {
        flex-direction: column;
        width: 100%;
        gap: 6px;
    }
    
    .filter-input {
        width: 100%;
        padding: 8px 12px;
        font-size: 13px;
        min-width: unset;
    }
    
    .control-bar > .btn {
        width: 100%; /* Add Booking button becomes full width */
    }
    
    /* Bottom Navigation Bar (Matching Nova bottom-nav styling) */
    .mobile-nav-bar.mobile-only {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 64px;
        background-color: var(--white);
        display: flex !important;
        justify-content: space-around;
        align-items: center;
        z-index: 1000;
        border-top: 1px solid #F1F5F9;
        box-shadow: 0 -4px 16px rgba(15, 44, 76, 0.05);
        padding-bottom: env(safe-area-inset-bottom); /* iOS support */
    }
    
    .mobile-nav-item {
        background: transparent;
        border: none;
        color: var(--primary); /* Deep Navy Blue */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        font-size: 10px;
        font-weight: 600;
        cursor: pointer;
        transition: color 0.2s ease;
        flex: 1;
        width: auto;
        height: 100%;
        font-family: var(--font-main);
        padding-top: 6px;
        text-decoration: none;
    }
    
    .mobile-nav-item i {
        font-size: 20px;
        margin-bottom: 1px;
    }
    
    .mobile-nav-item.active {
        color: var(--accent);
    }
    
    /* Mobile Booking Cards view */
    .mobile-bookings-list {
        display: flex;
        flex-direction: column;
        gap: 12px;
    }
    
    .booking-mobile-card {
        background: var(--bg-card);
        border: 1px solid var(--border-color);
        border-radius: var(--radius-md);
        padding: 16px;
        display: flex;
        flex-direction: column;
        gap: 10px;
        box-shadow: var(--shadow-sm);
    }
    
    .card-header-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 8px;
    }
    
    .card-title {
        font-weight: 700;
        font-size: 14px;
        color: var(--primary);
        font-family: var(--font-title);
    }
    
    .card-meta {
        font-size: 11px;
        color: var(--text-secondary);
    }
    
    .card-route-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        font-size: 12px;
    }
    
    .card-route-node {
        display: flex;
        flex-direction: column;
        gap: 2px;
    }
    
    .route-label {
        font-size: 9px;
        font-weight: 700;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.3px;
    }
    
    .route-value {
        font-weight: 600;
        color: var(--text-primary);
    }
    
    .card-footer-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-top: 4px;
    }
    
    .card-toggle-btn {
        background: transparent;
        border: none;
        color: var(--accent);
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 4px;
        font-family: var(--font-main);
    }
    
    .card-details-drawer {
        display: none;
        padding-top: 12px;
        border-top: 1px dashed var(--border-color);
        font-size: 12px;
        animation: fadeIn 0.25s ease-out;
    }
    
    .card-details-drawer.active {
        display: block;
    }
    
    .drawer-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 6px 12px;
        margin-bottom: 6px;
    }
    
    .drawer-item {
        display: flex;
        justify-content: space-between;
        border-bottom: 1px solid rgba(0, 0, 0, 0.02);
        padding-bottom: 4px;
    }
    
    .drawer-label {
        color: var(--text-secondary);
    }
    
    .drawer-val {
        font-weight: 600;
        color: var(--primary);
    }
    
    /* Bottom Sheet Modal Styles on Mobile */
    .modal-overlay {
        align-items: flex-end;
    }
    
    .modal-content {
        width: 100%;
        max-width: 100%;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        padding: 20px 16px 40px 16px;
        max-height: 85vh;
        transform: translateY(100%);
        transition: transform var(--transition-normal);
        border-bottom: none;
        box-shadow: 0 -10px 40px rgba(15, 44, 76, 0.1);
    }
    
    .modal-overlay.active .modal-content {
        transform: translateY(0);
    }
    
    .form-grid, .form-grid-3 {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }
    
    .form-group {
        margin-bottom: 10px;
    }
    
    .form-input {
        padding: 10px 14px;
        font-size: 13px;
    }
    
    .modal-header {
        margin-bottom: 15px;
        padding-bottom: 10px;
    }
    
    .modal-title {
        font-size: 16px;
    }
    
    /* FAB adjustments */
    .fab {
        bottom: 80px; /* Above the bottom navigation */
        right: 16px;
        width: 50px;
        height: 50px;
        font-size: 18px;
    }
}

/* ==========================================================================
   CUSTOM TIME & PLACE PICKER STYLES (PREMIUM UI ENHANCEMENTS)
   ========================================================================== */

/* Searchable Select Dropdown Styles */
.search-select-container {
    position: relative;
    width: 100%;
}

.search-select-input {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3e%3cpath fill='none' stroke='%23343a40' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m2 5 6 6 6-6'/%3e%3c/svg%3e") !important;
    background-repeat: no-repeat !important;
    background-position: right 14px center !important;
    background-size: 12px 12px !important;
    padding-right: 36px !important;
}

.search-select-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--white);
    border: 1px solid #CBD5E1;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(15, 44, 76, 0.12);
    z-index: 1000;
    margin-top: 6px;
    padding: 10px;
    box-sizing: border-box;
}

.search-select-search-field {
    width: 100%;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
    outline: none;
    margin-bottom: 8px;
    box-sizing: border-box;
    background: var(--white);
    color: var(--text-dark);
}
.search-select-search-field:focus {
    border-color: var(--accent);
}

.search-select-options-list {
    max-height: 200px;
    overflow-y: auto;
    text-align: left;
}

.search-select-option {
    padding: 8px 12px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s;
}
.search-select-option:hover {
    background-color: #F1F5F9;
    color: var(--primary);
}
.search-select-option.selected {
    background-color: #EFF6FF;
    color: var(--accent);
    font-weight: 600;
}

/* Custom Modal System */
.picker-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(15, 44, 76, 0.4);
    backdrop-filter: blur(4px);
    z-index: 11000;
    display: none;
    opacity: 0;
    transition: opacity 0.2s ease;
}
.picker-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -45%);
    background-color: var(--white);
    border-radius: 24px;
    padding: 24px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 15px 40px rgba(15, 44, 76, 0.2);
    z-index: 11001;
    display: none;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    text-align: center;
}
.picker-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #F1F5F9;
    padding-bottom: 12px;
}
.picker-modal-title {
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 18px;
    color: var(--text-dark);
    margin: 0;
}
.btn-close-modal {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

/* Circular Clock Styles */
.clock-display {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    font-family: var(--font-title);
}
.clock-time-val {
    background-color: #F1F5F9;
    padding: 4px 12px;
    border-radius: 8px;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}
.clock-time-val.active {
    background-color: #FEF3C7;
    color: #D97706;
    font-weight: 800;
}
.clock-ampm-val {
    color: var(--text-dark);
}
.clock-face-container {
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background-color: #F1F5F9;
    position: relative;
    margin: 0 auto 24px auto;
    border: 1px solid #E2E8F0;
}
.clock-center-dot {
    position: absolute;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #FFB020;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.clock-hand {
    position: absolute;
    height: 80px;
    width: 2px;
    background-color: #FFB020;
    bottom: 50%;
    left: 50%;
    transform-origin: bottom center;
    z-index: 8;
    transform: rotate(0deg);
}
.clock-number {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    top: calc(50% - 17px);
    left: calc(50% - 17px);
    z-index: 9;
    transform: rotate(calc(var(--angle) * 30deg)) translate(0, -82px) rotate(calc(var(--angle) * -30deg));
    transition: background-color 0.2s, color 0.2s;
}
.clock-number.active {
    background-color: #FFC107;
    color: #000000;
    box-shadow: 0 2px 8px rgba(255, 193, 7, 0.4);
}
.clock-ampm-selector {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 24px;
}
.ampm-btn {
    background: none;
    border: 1px solid #CBD5E1;
    padding: 8px 24px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s;
}
.ampm-btn.active {
    background-color: #FEF3C7;
    color: #D97706;
    border-color: #FCD34D;
}
.btn-modal-action {
    display: block;
    width: 100%;
    background-color: #1E293B;
    color: var(--white);
    border: none;
    border-radius: 12px;
    padding: 12px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: background-color 0.2s;
}
.btn-modal-action:hover {
    background-color: var(--accent);
}
