/* Custom Design System variables */
:root {
    --font-main: 'Outfit', sans-serif;

    /* Light Theme Palette */
    --bg-app: #f4f6f9;
    --bg-card: #ffffff;
    --bg-sidebar: #ffffff;
    --bg-header: #ffffff;
    --bg-input: #f1f5f9;
    --bg-neutral: #f8fafc;
    --border-color: #e2e8f0;

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #94a3b8;

    --color-accent: #0284c7;
    --color-accent-hover: #0369a1;
    --color-accent-light: #e0f2fe;

    --color-success: #166534;
    --color-success-bg: #dcfce7;
    --color-danger: #991b1b;
    --color-danger-bg: #fee2e2;
    --color-warning: #9a3412;
    --color-warning-bg: #ffedd5;
    
    --alert-10min-bg: #fee2e2;
    --alert-30min-bg: #ffedd5;

    --overdue-bg: #faf5ff;
    --overdue-border: #a855f7;
    --overdue-text: #6b21a8;
    --overdue-badge-bg: #f3e8ff;
    --overdue-badge-text: #6b21a8;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.08), 0 2px 4px -2px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    
    --transition-base: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

body.dark-mode {
    /* Dark Theme Palette */
    --bg-app: #0b0f19;
    --bg-card: #131c2e;
    --bg-sidebar: #131c2e;
    --bg-header: #131c2e;
    --bg-input: #1e293b;
    --bg-neutral: #1a2333;
    --border-color: #24324d;

    --text-primary: #f8fafc;
    --text-secondary: #cbd5e1;
    --text-muted: #64748b;

    --color-accent: #38bdf8;
    --color-accent-hover: #7dd3fc;
    --color-accent-light: #0c4a6e;

    --color-success: #4ade80;
    --color-success-bg: #064e3b;
    --color-danger: #f87171;
    --color-danger-bg: #7f1d1d;
    --color-warning: #fb923c;
    --color-warning-bg: #7c2d12;
    
    --alert-10min-bg: #4c1d1d;
    --alert-30min-bg: #431407;

    --overdue-bg: #1e152f;
    --overdue-border: #c084fc;
    --overdue-text: #e9d5ff;
    --overdue-badge-bg: #3b0764;
    --overdue-badge-text: #e9d5ff;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.25), 0 4px 6px -4px rgba(0, 0, 0, 0.25);
}

/* Global Reset & Base Styling */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-app);
    color: var(--text-primary);
    font-family: var(--font-main);
    transition: var(--transition-base);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* App Header Nav bar */
.app-header {
    background-color: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-sm);
    z-index: 100;
    position: sticky;
    top: 0;
}

.header-left-group {
    display: flex;
    align-items: center;
    gap: 30px;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-accent);
}

.header-brand i {
    font-size: 1.5rem;
}

/* Navigation Tabs */
.tabs {
    display: flex;
    gap: 6px;
    background-color: var(--bg-input);
    padding: 4px;
    border-radius: var(--radius-md);
}

.tab {
    padding: 8px 16px;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tab:hover {
    color: var(--text-primary);
    background-color: var(--bg-card);
}

.active-tab {
    background-color: var(--bg-card);
    color: var(--color-accent);
    box-shadow: var(--shadow-sm);
    font-weight: 600;
}

.logout-tab:hover {
    color: #ef4444;
}

/* Header Meta info and controls */
.header-right-meta {
    display: flex;
    align-items: center;
    gap: 16px;
}

.status-indicator {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background-color: var(--color-success-bg);
    color: var(--color-success);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    font-size: 0.85rem;
}

.status-btn {
    padding: 8px 12px;
    border-radius: var(--radius-sm);
    background-color: var(--color-warning-bg);
    color: var(--color-warning);
    border: none;
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-main);
    transition: var(--transition-base);
}

.status-btn:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

/* Theme Toggle Switch */
.theme-toggle-container {
    display: flex;
    align-items: center;
}

.theme-toggle {
    display: block;
    position: relative;
    width: 44px;
    height: 24px;
}

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

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-input);
    transition: .4s;
    border-radius: 34px;
    border: 1px solid var(--border-color);
}

.slider:before {
    position: absolute;
    content: "\f185";
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background-color: var(--bg-card);
    transition: .4s;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #f59e0b;
}

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

input:checked + .slider:before {
    transform: translateX(20px);
    content: "\f186";
    color: var(--color-accent);
}

/* Dashboard Container Split Layout */
.dashboard-container {
    display: flex;
    flex: 1;
    gap: 24px;
    padding: 24px;
    max-width: 1600px;
    width: 100%;
    margin: 0 auto;
}

/* LEFT SIDEBAR PANEL */
.sidebar-pane {
    width: 320px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sidebar-section {
    background-color: var(--bg-sidebar);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow-md);
}

.section-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 10px;
}

/* Stats Cards Grid inside Sidebar */
.stats-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.stat-icon-wrapper {
    width: 48px;
    height: 48px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
}

.blue-icon {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.green-icon {
    background-color: var(--color-success-bg);
    color: var(--color-success);
}

.red-icon {
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
}

.stat-data {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
}

.stat-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

/* Pulsing red alarm border keyframes */
@keyframes urgent-pulse {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); border-color: rgba(239, 68, 68, 0.5); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); border-color: rgba(239, 68, 68, 0.8); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); border-color: rgba(239, 68, 68, 0.5); }
}

.alert-pulsing {
    animation: urgent-pulse 2s infinite;
}

/* Preference Options Widgets */
.preference-item {
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.pref-header {
    display: flex;
    flex-direction: column;
}

.pref-title {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.pref-desc {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pref-select {
    width: 100%;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-neutral);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.pref-select:focus {
    outline: none;
    border-color: var(--color-accent);
}

/* Custom Switch for sidebar toggle eta */
.switch-control {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 26px;
    align-self: flex-start;
}

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

.switch-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--bg-input);
    transition: .3s;
    border-radius: 34px;
    border: 1px solid var(--border-color);
}

.switch-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: var(--bg-card);
    transition: .3s;
    border-radius: 50%;
}

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

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

/* Return to base sections */
.return-section {
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.return-to-base {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
    color: #ffffff;
    font-family: var(--font-main);
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(234, 88, 12, 0.3);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.return-to-base:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(234, 88, 12, 0.4);
}

.return-to-base.returning {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
    animation: alarm-radiate 1.5s infinite;
}

@keyframes alarm-radiate {
    0% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(220, 38, 38, 0); }
    100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0); }
}

/* RIGHT MAIN PANE */
.main-pane {
    flex: 1;
    min-width: 0; /* Prevents overflow in flex items */
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.board-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.board-title-group h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
}

.board-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.board-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* High-Density Spreadsheet Header */
.board-table-header {
    background-color: var(--bg-neutral);
    border-bottom: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.board-table-header,
.card-header {
    display: grid;
    grid-template-columns: 80px 140px 1.5fr 1.1fr 1.1fr 100px;
    gap: 15px;
    align-items: center;
    padding: 14px 20px;
}

/* Cards Wrapper */
.card-container {
    display: flex;
    flex-direction: column;
}

/* Distinctive Passenger Name styling */
.customer-name-wrapper {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--text-primary);
}

.customer-name-wrapper i {
    color: var(--color-accent);
    font-size: 1.1rem;
}

.disabled-card .customer-name-wrapper {
    text-decoration: line-through;
    color: var(--text-muted) !important;
}

/* Fallback Warning Icon */
.fallback-warning-icon {
    color: #f59e0b;
    font-size: 0.75rem;
    margin-left: 6px;
    vertical-align: middle;
}

/* Individual Flight Card Row */
.card {
    background-color: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition-base);
    cursor: pointer;
}

.card:last-child {
    border-bottom: none;
}

.card:hover {
    background-color: var(--bg-neutral);
}

.card-header {
    background-color: transparent;
    border-bottom: none;
    border-radius: 0;
    padding: 14px 20px;
    font-weight: normal;
}

/* Cells formatting */
.font-monospace {
    font-family: monospace;
    font-size: 1rem;
    color: var(--text-secondary);
}

.font-bold {
    font-weight: 700;
    color: var(--text-primary);
}

.font-semibold {
    font-weight: 600;
}

/* Status Badges */
.status-badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 30px;
    font-size: 0.8rem;
    font-weight: 600;
    text-align: center;
    white-space: nowrap;
}

.badge-on-time {
    background-color: var(--color-success-bg);
    color: var(--color-success);
}

.badge-delayed {
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
}

.badge-arrived {
    background-color: var(--color-accent-light);
    color: var(--color-accent);
}

.badge-approach {
    background-color: #fef3c7;
    color: #d97706;
}

.badge-unknown {
    background-color: var(--bg-input);
    color: var(--text-secondary);
}

.badge-overdue {
    background-color: var(--overdue-badge-bg);
    color: var(--overdue-badge-text);
}

/* Pickup Cell Controls */
.pickup-control-cell {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.save-status-indicator {
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--color-success);
    opacity: 0;
    transition: opacity 0.3s ease;
    white-space: nowrap;
}

/* Picked Up Switch Toggle (Standard compatibility) */
.toggle {
    width: 44px;
    height: 24px;
    background-color: var(--bg-input);
    border-radius: 20px;
    position: relative;
    cursor: pointer;
    border: 1px solid var(--border-color);
}

.toggle:before {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    background-color: var(--bg-card);
    border-radius: 50%;
    top: 2px;
    left: 2px;
    transition: 0.3s;
}

.toggle.active {
    background-color: #22c55e;
}

.toggle.active:before {
    transform: translateX(20px);
}

/* Disabled Row Appearance */
.disabled-card {
    opacity: 0.65;
    background-color: var(--bg-neutral) !important;
}

.disabled-card .font-bold,
.disabled-card .font-semibold,
.disabled-card .col-customer {
    text-decoration: line-through;
    color: var(--text-muted);
}

.disabled-card:hover {
    opacity: 0.85;
}

/* Urgency Color indicators from Javascript class injection */
.card.pale-red {
    background-color: var(--alert-10min-bg) !important;
    border-left: 5px solid #ef4444 !important;
}

.card.pale-orange {
    background-color: var(--alert-30min-bg) !important;
    border-left: 5px solid #f97316 !important;
}

.card.overdue-card {
    background-color: var(--overdue-bg) !important;
    border-left: 5px solid var(--overdue-border) !important;
}

.card.overdue-card .font-bold,
.card.overdue-card .customer-name-wrapper span {
    color: var(--overdue-text);
}

.move-down {
    transform: translateY(3px);
}

/* Collapsible Action Sub-Pane */
.card-content {
    background-color: var(--bg-neutral);
    border-top: 1px solid var(--border-color);
    padding: 20px;
    animation: slide-down 0.25s ease-out;
}

@keyframes slide-down {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

.details-layout {
    display: flex;
    gap: 30px;
}

.details-metadata {
    flex: 1.2;
    border-right: 1px solid var(--border-color);
    padding-right: 30px;
}

.details-actions {
    flex: 1;
}

.details-section-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Meta Data Key-Values Grid */
.metadata-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.metadata-row {
    display: flex;
    flex-direction: column;
}

.meta-label {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-muted);
    text-transform: uppercase;
}

.meta-value {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.copy-btn {
    cursor: pointer;
    color: var(--text-muted);
    transition: var(--transition-base);
}

.copy-btn:hover {
    color: var(--color-accent);
}

/* Action Controls section */
.action-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--border-color);
}

.action-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.action-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Touch Friendly Passengers Counter Control */
.counter-box {
    display: flex;
    align-items: center;
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.btn-counter {
    background: transparent;
    border: none;
    color: var(--text-primary);
    width: 32px;
    height: 32px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-base);
}

.btn-counter:hover {
    background-color: var(--bg-input);
}

.counter-display {
    width: 44px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-family: var(--font-main);
    font-weight: 700;
    background: transparent;
    color: var(--text-primary);
}

/* Language Switcher Tabs */
.radio-selector {
    display: flex;
    background-color: var(--bg-input);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
}

.radio-tab {
    position: relative;
    cursor: pointer;
}

.radio-tab input {
    position: absolute;
    opacity: 0;
}

.radio-tab-label {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-radius: var(--radius-sm);
    transition: var(--transition-base);
}

.radio-tab input:checked + .radio-tab-label {
    background-color: var(--bg-card);
    color: var(--color-accent);
    box-shadow: var(--shadow-sm);
}

/* Mood selector options */
.mood-selector {
    display: flex;
    gap: 8px;
}

.mood-option {
    cursor: pointer;
}

.mood-option input {
    position: absolute;
    opacity: 0;
}

.mood-icon-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-card);
    color: var(--text-muted);
    font-size: 1rem;
    transition: var(--transition-base);
}

.mood-icon-box span {
    font-size: 0.65rem;
    font-weight: 600;
    margin-top: 2px;
}

.mood-option:hover .mood-icon-box {
    border-color: var(--text-secondary);
    color: var(--text-secondary);
}

.mood-option input:checked + .mood-icon-box {
    color: #ffffff;
    box-shadow: var(--shadow-sm);
}

.mood-option.happy input:checked + .mood-icon-box {
    background-color: #22c55e;
    border-color: #22c55e;
}

.mood-option.neutral input:checked + .mood-icon-box {
    background-color: #f59e0b;
    border-color: #f59e0b;
}

.mood-option.grumpy input:checked + .mood-icon-box {
    background-color: #ef4444;
    border-color: #ef4444;
}

/* Admin Dashboard Table overrides */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
    margin-bottom: 30px;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

th, td {
    padding: 12px 18px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

th {
    background-color: var(--bg-neutral);
    color: var(--text-secondary);
    font-weight: 600;
}

tr:last-child td {
    border-bottom: none;
}

/* General Container for forms, fallback screens */
.container {
    max-width: 600px;
    margin: 60px auto;
    padding: 30px;
    background-color: var(--bg-card);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border-color);
}

.container h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 24px;
    color: var(--text-primary);
}

/* Form Styles */
.input-group, .form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 18px;
}

.input-group label, .form-group label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.input-group input, .form-group input, .form-group select {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-color);
    background-color: var(--bg-neutral);
    color: var(--text-primary);
    font-family: var(--font-main);
    font-size: 0.95rem;
    transition: var(--transition-base);
}

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

.btn, button[type="submit"] {
    display: block;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: var(--radius-sm);
    background-color: var(--color-accent);
    color: #ffffff;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    font-family: var(--font-main);
    transition: var(--transition-base);
    text-align: center;
    box-shadow: 0 4px 6px rgba(2, 132, 199, 0.2);
}

.btn:hover, button[type="submit"]:hover {
    background-color: var(--color-accent-hover);
    transform: translateY(-1px);
}

/* Alert notices styling */
.alert {
    padding: 12px;
    border-radius: var(--radius-sm);
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: 15px;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-info {
    background-color: var(--color-success-bg);
    color: var(--color-success);
    border-color: rgba(34, 197, 94, 0.2);
}

/* RESPONSIVE LAYOUT OPTIMIZATIONS (TABLET / MOBILE) */
@media (max-width: 1024px) {
    .dashboard-container {
        flex-direction: column;
        padding: 16px;
    }

    .sidebar-pane {
        width: 100%;
    }

    .stats-grid {
        flex-direction: row;
    }

    .stat-card {
        flex: 1;
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .app-header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 16px;
    }

    .header-left-group {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .header-brand {
        align-self: flex-start;
    }

    .tabs {
        width: 100%;
    }

    .tab {
        flex: 1;
        justify-content: center;
        padding: 8px 10px;
    }

    .header-right-meta {
        width: 100%;
        justify-content: space-between;
    }

    .stats-grid {
        flex-direction: column;
    }

    .board-table-header {
        display: none;
    }

    .card-header {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        padding: 16px;
    }

    .col-time, .col-flight, .col-customer, .col-eta, .col-status, .col-pickup {
        width: 100% !important;
    }

    .col-pickup {
        margin-top: 10px;
    }

    .pickup-control-cell {
        justify-content: space-between;
    }

    .details-layout {
        flex-direction: column;
        gap: 20px;
    }

    .details-metadata {
        border-right: none;
        padding-right: 0;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 20px;
    }
}

/* ==========================================
   OPERATOR VIEW STYLES
   ========================================== */
.operator-table-wrapper {
    width: 100%;
    overflow-x: auto;
}

.operator-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    box-shadow: none;
    border-radius: 0;
    background-color: transparent;
}

.operator-table th, 
.operator-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--border-color);
    text-align: left;
}

.operator-table th {
    background-color: var(--bg-neutral);
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
}

.operator-row-picked {
    background-color: rgba(2, 132, 199, 0.03);
    transition: var(--transition-base);
}

.operator-row-picked:hover {
    background-color: rgba(2, 132, 199, 0.06);
}

body.dark-mode .operator-row-picked {
    background-color: rgba(56, 189, 248, 0.02);
}

body.dark-mode .operator-row-picked:hover {
    background-color: rgba(56, 189, 248, 0.05);
}

.operator-pax-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background-color: var(--bg-input);
    color: var(--text-primary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
}

.empty-operator-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    color: var(--text-muted);
    text-align: center;
    gap: 15px;
}

.empty-operator-state i {
    font-size: 3rem;
    opacity: 0.4;
}

.empty-operator-state p {
    font-size: 0.95rem;
    font-weight: 500;
}

/* Driver Status List */
.driver-status-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.driver-status-card {
    display: flex;
    align-items: center;
    padding: 14px;
    background-color: var(--bg-neutral);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    position: relative;
    transition: var(--transition-base);
}

.driver-status-card:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

.driver-returning-card {
    border-color: rgba(239, 68, 68, 0.3);
    background-color: rgba(239, 68, 68, 0.02);
}

body.dark-mode .driver-returning-card {
    background-color: rgba(239, 68, 68, 0.01);
}

.driver-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-input);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    margin-right: 12px;
    border: 1px solid var(--border-color);
}

.driver-returning-card .driver-avatar {
    background-color: var(--color-danger-bg);
    color: var(--color-danger);
    border-color: rgba(239, 68, 68, 0.2);
}

.driver-info {
    display: flex;
    flex-direction: column;
    flex: 1;
}

.driver-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-primary);
}

.driver-status-badge {
    font-size: 0.75rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}

.returning-base-badge {
    color: #ef4444;
}

.outbound-badge {
    color: var(--text-muted);
}

/* Pulsing Beacons for Driver Sidebar */
.pulse-beacon-red, 
.pulse-beacon-green {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    position: absolute;
    top: 15px;
    right: 15px;
}

.pulse-beacon-red {
    background-color: #ef4444;
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4);
    animation: beacon-pulse-red 1.5s infinite;
}

.pulse-beacon-green {
    background-color: #22c55e;
}

@keyframes beacon-pulse-red {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6); }
    70% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

/* Desk Summary Grid */
.desk-summary-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.desk-summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: var(--bg-neutral);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
}

.summary-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.summary-value {
    font-size: 1.2rem;
}

/* Mobile-friendly role switch toggle pill */
.role-switch-toggle-form {
    display: inline-block;
    margin-right: 15px;
}
.role-toggle-container {
    display: flex;
    align-items: center;
    background: var(--bg-input);
    padding: 3px;
    border-radius: 24px;
    border: 1px solid var(--border-color);
    gap: 2px;
}
.role-toggle-btn {
    border: none;
    background: none;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    color: var(--text-muted);
    transition: var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}
.role-toggle-btn:hover {
    color: var(--text-secondary);
}
.role-toggle-btn.active {
    color: #ffffff;
    background-color: #f97316;
    box-shadow: var(--shadow-sm);
}
/* Ensure icons have proper spacing/size */
.role-toggle-btn i {
    font-size: 1rem;
}

/* Styled Pickup Buttons */
.btn-pickup {
    border: none;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-family: var(--font-main);
    font-weight: 600;
    font-size: 0.85rem;
    cursor: pointer;
    transition: var(--transition-base);
    box-shadow: var(--shadow-sm);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-action-pickup {
    background-color: var(--color-success);
    color: #ffffff;
}

.btn-action-pickup:hover {
    background-color: #15803d; /* slightly darker green */
}

.btn-action-undo {
    background-color: #ea580c; /* warm orange */
    color: #ffffff;
}

.btn-action-undo:hover {
    background-color: #c2410c;
}

.btn-action-locked {
    background-color: var(--border-color);
    color: var(--text-muted);
    cursor: not-allowed;
    box-shadow: none;
}

/* Premium Confirmation Modal Overlay */
.confirm-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 23, 42, 0.6); /* Translucent slate background */
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    animation: fadeIn 0.2s ease-out;
}

.confirm-modal-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    padding: 24px;
    width: 90%;
    max-width: 400px;
    text-align: center;
    animation: scaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.confirm-modal-icon {
    font-size: 3rem;
    color: var(--color-accent);
    margin-bottom: 16px;
}

.confirm-modal-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.confirm-modal-card p {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 24px;
    line-height: 1.5;
}

.confirm-modal-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.modal-btn {
    border: none;
    padding: 10px 20px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition-base);
}

.modal-btn-cancel {
    background-color: var(--bg-input);
    color: var(--text-secondary);
}

.modal-btn-cancel:hover {
    background-color: var(--border-color);
}

.modal-btn-confirm {
    background-color: var(--color-accent);
    color: #ffffff;
}

.modal-btn-confirm:hover {
    background-color: var(--color-accent-hover);
}

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

@keyframes scaleUp {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}
