/* ═══════════════════════════════════════════════════════════
   ServisGo CompanyAdmin Panel — Premium Dark Theme v2
   ═══════════════════════════════════════════════════════════ */

:root {
    --bg-primary:    #0b1520;
    --bg-secondary:  #10192a;
    --bg-card:       #162033;
    --bg-hover:      #1d2d45;
    --bg-input:      #0e1c2f;
    --text-primary:  #e6edf5;
    --text-secondary:#8fa8c2;
    --text-muted:    #4e6885;
    --accent:        #00b4d8;
    --accent-2:      #0096c7;
    --accent-hover:  #48cae4;
    --accent-glow:   rgba(0,180,216,0.18);
    --success:       #10b981;
    --warning:       #f59e0b;
    --danger:        #ef4444;
    --border:        rgba(255,255,255,0.065);
    --shadow:        0 8px 40px rgba(0,0,0,0.35);
    --shadow-sm:     0 2px 12px rgba(0,0,0,0.25);
    --radius:        14px;
    --radius-sm:     8px;
    --sidebar-width: 268px;
    --transition:    all 0.25s cubic-bezier(0.4,0,0.2,1);
}

/* ── Reset ── */
*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }
html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: 3px; }

/* ══════════════════════════════════
   LOGIN PAGE
══════════════════════════════════ */
.login-page {
    display: flex; align-items: center; justify-content: center;
    min-height: 100vh; position: relative; overflow: hidden;
    background: radial-gradient(ellipse 80% 60% at 20% 20%, rgba(0,180,216,0.08) 0%, transparent 60%),
                radial-gradient(ellipse 60% 80% at 80% 80%, rgba(16,185,129,0.06) 0%, transparent 60%),
                var(--bg-primary);
}

/* Animated orbs */
.login-bg-orbs { position: absolute; inset: 0; pointer-events: none; }
.orb {
    position: absolute; border-radius: 50%;
    filter: blur(60px); opacity: 0.35;
    animation: orbFloat 8s ease-in-out infinite;
}
.orb-1 { width:300px; height:300px; background:rgba(0,180,216,0.3); top:-80px; left:-80px; animation-delay:0s; }
.orb-2 { width:250px; height:250px; background:rgba(16,185,129,0.2); bottom:-60px; right:10%; animation-delay:3s; }
.orb-3 { width:180px; height:180px; background:rgba(124,92,255,0.2); top:40%; right:-50px; animation-delay:6s; }
@keyframes orbFloat {
    0%,100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.05); }
}

.login-container {
    background: rgba(22,32,51,0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 24px;
    padding: 52px 44px;
    width: 100%; max-width: 440px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,180,216,0.05);
    animation: fadeUp 0.6s ease;
    position: relative; z-index: 1;
}
@keyframes fadeUp { from { opacity:0; transform:translateY(24px); } to { opacity:1; transform:translateY(0); } }

.login-brand { text-align: center; margin-bottom: 30px; }
.brand-icon {
    width: 68px; height: 68px;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    border-radius: 18px;
    display: flex; align-items: center; justify-content: center;
    font-size: 32px; color: white;
    margin: 0 auto 16px;
    box-shadow: 0 8px 28px var(--accent-glow), 0 0 0 8px rgba(0,180,216,0.08);
}
.brand-icon.small {
    width: 42px; height: 42px; font-size: 20px; border-radius: 12px; flex-shrink: 0;
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    display: flex; align-items: center; justify-content: center; color: white;
    box-shadow: 0 4px 14px var(--accent-glow);
}
.login-brand h1 {
    font-size: 32px; font-weight: 800;
    background: linear-gradient(135deg, #ffffff 40%, var(--accent));
    -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
    letter-spacing: -0.5px;
}
.login-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 14px;
    background: rgba(0, 180, 216, 0.1);
    border: 1px solid rgba(0, 180, 216, 0.25);
    border-radius: 20px;
    color: #38bdf8;
    font-size: 12px; font-weight: 600;
    margin-top: 10px;
    letter-spacing: 0.2px;
}
.login-badge i { font-size: 14px; color: #00b4d8; }

.login-trust-badge {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    margin-top: 24px; padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    color: #64748b; font-size: 11.5px; font-weight: 500;
}
.trust-item { display: inline-flex; align-items: center; gap: 5px; color: #94a3b8; }
.trust-item i { color: #00b4d8; font-size: 13px; }
.trust-dot { color: #475569; }

/* Login form inputs */
.input-group { position: relative; margin-bottom: 14px; }
.input-group > i {
    position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
    color: var(--text-muted); font-size: 18px; pointer-events: none;
    transition: color 0.2s;
}
.input-group:focus-within > i { color: var(--accent); }
.input-group input {
    width: 100%; padding: 14px 44px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 14px; font-family: inherit; transition: var(--transition);
    outline: none;
}
.input-group input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.input-group input::placeholder { color: var(--text-muted); }
.input-group.has-error input { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(239,68,68,0.12); }

.password-toggle {
    position: absolute; right: 14px; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer;
    font-size: 18px; padding: 4px; transition: color 0.2s;
}
.password-toggle:hover { color: var(--text-primary); }

.field-error { color: var(--danger); font-size: 11.5px; margin-top: 5px; display: flex; align-items: center; gap: 4px; }

/* Login error box */
.login-error-box {
    display: flex; align-items: flex-start; gap: 10px;
    background: rgba(239,68,68,0.08); border: 1px solid rgba(239,68,68,0.25);
    border-radius: var(--radius-sm); padding: 12px 14px;
    margin-top: 12px; color: #fca5a5; font-size: 13px; line-height: 1.5;
}
.login-error-box i { font-size: 18px; flex-shrink: 0; margin-top: 1px; color: var(--danger); }

.login-footer { text-align: center; color: var(--text-muted); font-size: 12px; margin-top: 28px; }

/* ── Buttons ── */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 600; font-family: inherit;
    cursor: pointer; border: none; transition: var(--transition);
    text-decoration: none; white-space: nowrap;
}
.btn-primary {
    background: linear-gradient(135deg, var(--accent), var(--accent-2));
    color: white;
    box-shadow: 0 4px 20px var(--accent-glow);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 28px var(--accent-glow); }
.btn-primary:disabled { opacity: 0.65; transform: none; cursor: not-allowed; }
.btn-full { width: 100%; justify-content: center; padding: 15px; font-size: 15px; }
.btn-outline {
    background: transparent; border: 1px solid var(--border);
    color: var(--text-primary);
}
.btn-outline:hover { background: var(--bg-hover); border-color: var(--accent); color: var(--accent); }
.btn-danger { background: rgba(239,68,68,0.1); color: var(--danger); border: 1px solid rgba(239,68,68,0.2); }
.btn-danger:hover { background: rgba(239,68,68,0.2); }
.btn-sm { padding: 6px 12px; font-size: 13px; }

/* ══════════════════════════════════
   APP LAYOUT
══════════════════════════════════ */
.app { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
    width: var(--sidebar-width);
    background: var(--bg-secondary);
    border-right: 1px solid var(--border);
    display: flex; flex-direction: column;
    position: fixed; top: 0; left: 0; bottom: 0;
    z-index: 100; overflow-y: auto;
    background: linear-gradient(180deg, var(--bg-secondary) 0%, #0d1f35 100%);
}

/* Sidebar Brand */
.sidebar-brand {
    display: flex; align-items: center; gap: 12px;
    padding: 24px 18px 20px;
    border-bottom: 1px solid var(--border);
}
.brand-text { overflow: hidden; }
.company-name-row {
    display: flex; align-items: center; gap: 7px;
    overflow: hidden;
}
.company-name-row span:first-child {
    font-size: 15px; font-weight: 700; color: var(--text-primary);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.verified-pill {
    display: inline-flex; align-items: center; gap: 3px;
    padding: 2px 7px;
    background: rgba(16, 185, 129, 0.12);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 12px;
    color: #10b981;
    font-size: 10px; font-weight: 700;
    letter-spacing: 0.3px;
    flex-shrink: 0;
}
.verified-pill i { font-size: 11px; }
.brand-role {
    font-size: 11px; color: var(--accent); font-weight: 500;
    margin-top: 3px; display: flex; align-items: center; gap: 4px;
}

/* Nav */
.sidebar-nav { flex: 1; padding: 14px 10px; display: flex; flex-direction: column; gap: 3px; }
.nav-item {
    display: flex; align-items: center; gap: 11px;
    padding: 11px 14px; border-radius: 10px;
    color: var(--text-secondary); text-decoration: none;
    font-size: 13.5px; font-weight: 500; transition: var(--transition);
    cursor: pointer; border: 1px solid transparent; background: none; width: 100%;
}
.nav-item:hover { color: var(--text-primary); background: var(--bg-hover); }
.nav-item.active {
    color: #f8fafc !important;
    background: linear-gradient(90deg, rgba(0,180,216,0.18) 0%, rgba(0,180,216,0.03) 100%) !important;
    border: 1px solid rgba(0,180,216,0.22) !important;
    border-left: 3.5px solid #00b4d8 !important;
    box-shadow: 0 4px 14px rgba(0,180,216,0.08), inset 0 0 12px rgba(0,180,216,0.04) !important;
    font-weight: 600;
}
.nav-item.active i {
    color: #38bdf8 !important;
    filter: drop-shadow(0 0 6px rgba(0,180,216,0.5));
}
.nav-item i { font-size: 19px; flex-shrink: 0; }

.nav-group { display: flex; flex-direction: column; }
.nav-group-toggle { cursor: pointer !important; }
.nav-sub-items { overflow: hidden; }
.nav-sub { color: var(--text-muted); font-size: 13px !important; border-left: 2px solid transparent !important; }
.nav-sub:hover { color: var(--text-primary); }
.nav-sub.active {
    background: rgba(0,180,216,0.12) !important;
    color: var(--accent) !important;
    border-left: 2px solid var(--accent) !important;
}

/* Sidebar Footer & Status Card */
.sidebar-footer { padding: 14px 10px; border-top: 1px solid var(--border); }
.sidebar-status-card {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 11px 13px;
    margin-bottom: 12px;
    transition: var(--transition);
}
.sidebar-status-card:hover {
    border-color: rgba(0, 180, 216, 0.28);
    background: rgba(15, 23, 42, 0.9);
}
.status-indicator-row {
    display: flex; align-items: center; gap: 8px;
    margin-bottom: 5px;
}
.status-pulse-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    animation: statusPulse 2s infinite;
}
@keyframes statusPulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(16, 185, 129, 0); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.status-system-text {
    font-size: 11.5px; font-weight: 600; color: #f1f5f9; flex: 1;
}
.status-uptime-badge {
    font-size: 10px; font-weight: 700; color: #10b981;
    background: rgba(16, 185, 129, 0.12);
    padding: 1px 6px; border-radius: 6px;
}
.status-license-row {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: #94a3b8;
}
.status-license-row i { color: #00b4d8; font-size: 13px; }

.btn-logout {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 12px 14px; border: 1px solid rgba(239,68,68,0.15);
    background: rgba(239,68,68,0.06); color: var(--danger);
    border-radius: 10px; font-size: 13.5px; font-family: inherit;
    cursor: pointer; transition: var(--transition); font-weight: 500;
}
.btn-logout:hover { background: rgba(239,68,68,0.14); border-color: rgba(239,68,68,0.35); }

/* ── Main Content ── */
.main-content { flex: 1; margin-left: var(--sidebar-width); display: flex; flex-direction: column; }
.top-bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 32px; border-bottom: 1px solid var(--border);
    background: rgba(11,21,32,0.8); backdrop-filter: blur(16px);
    position: sticky; top: 0; z-index: 50;
}
.top-bar-left { display: flex; align-items: baseline; gap: 12px; }
.top-bar h2 { font-size: 21px; font-weight: 700; letter-spacing: -0.3px; }
.page-breadcrumb { font-size: 13px; color: var(--text-muted); }

/* Top Bar Right: Clock & Profile */
.top-bar-right { display: flex; align-items: center; gap: 14px; }
.live-clock-capsule {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 7px 14px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    color: #cbd5e1; font-size: 12.5px; font-weight: 500;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.2px;
}
.live-clock-capsule i { color: #00b4d8; font-size: 15px; }

/* Profile Dropdown Wrap */
.profile-dropdown-wrap { position: relative; }
.profile-capsule-btn {
    display: flex; align-items: center; gap: 10px;
    padding: 6px 14px 6px 8px;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 24px;
    color: var(--text-primary);
    cursor: pointer; transition: var(--transition);
}
.profile-capsule-btn:hover {
    border-color: rgba(0, 180, 216, 0.35);
    background: rgba(15, 23, 42, 1);
}
.profile-avatar {
    width: 32px; height: 32px; border-radius: 50%;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    display: flex; align-items: center; justify-content: center;
    color: white; font-size: 16px;
    box-shadow: 0 2px 8px rgba(0, 180, 216, 0.3);
}
.profile-info-text { display: flex; flex-direction: column; text-align: left; line-height: 1.2; }
.profile-name { font-size: 13px; font-weight: 600; color: #f8fafc; }
.profile-role { font-size: 10px; color: var(--accent); font-weight: 500; }
.profile-chevron { font-size: 16px; color: #64748b; transition: transform 0.2s; }
.profile-dropdown-wrap.open .profile-chevron { transform: rotate(180deg); }

/* Dropdown Menu */
.profile-dropdown-menu {
    position: absolute; right: 0; top: calc(100% + 8px);
    width: 240px;
    background: rgba(15, 23, 42, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 8px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.5), 0 0 0 1px rgba(0,180,216,0.08);
    display: none; flex-direction: column; gap: 2px;
    z-index: 1000; animation: fadeUp 0.2s ease;
}
.profile-dropdown-wrap.open .profile-dropdown-menu { display: flex; }
.dropdown-user-header { padding: 10px 12px 8px; }
.duh-name { font-size: 13.5px; font-weight: 700; color: #f8fafc; }
.duh-email { font-size: 11.5px; color: #94a3b8; margin-top: 2px; }
.duh-badge {
    display: inline-flex; align-items: center; gap: 4px;
    font-size: 10.5px; color: #00b4d8; font-weight: 600;
    margin-top: 6px; padding: 2px 8px;
    background: rgba(0, 180, 216, 0.1); border-radius: 10px;
}
.dropdown-divider { height: 1px; background: rgba(255,255,255,0.07); margin: 6px 0; }
.dropdown-item {
    display: flex; align-items: center; gap: 9px;
    padding: 9px 12px; border-radius: 8px;
    color: #cbd5e1; font-size: 12.5px; text-decoration: none;
    transition: var(--transition);
}
.dropdown-item:hover { background: rgba(255,255,255,0.06); color: #ffffff; }
.dropdown-item i { font-size: 15px; color: #94a3b8; }
.dropdown-item:hover i { color: var(--accent); }
.dropdown-item.text-danger { color: #f87171; }
.dropdown-item.text-danger:hover { background: rgba(239,68,68,0.12); color: #fca5a5; }
.dropdown-item.text-danger i { color: #f87171; }

.content-area { padding: 32px; flex: 1; animation: fadeUp 0.3s ease; }

/* ══════════════════════════════════
   DASHBOARD
══════════════════════════════════ */
.welcome-banner {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, rgba(0,180,216,0.1), rgba(0,150,199,0.05));
    border: 1px solid rgba(0,180,216,0.15);
    border-radius: var(--radius); padding: 24px 28px;
    margin-bottom: 28px;
}
.welcome-banner h3 { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.welcome-banner p { color: var(--text-secondary); font-size: 14px; }
.welcome-date { color: var(--text-muted); font-size: 13px; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 20px; margin-bottom: 32px; }
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 24px;
    transition: var(--transition); position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-hover));
}
.stat-card:nth-child(2)::before { background: linear-gradient(90deg, var(--success), #34d399); }
.stat-card:nth-child(3)::before { background: linear-gradient(90deg, #a78bfa, #7c5cff); }
.stat-card:nth-child(4)::before { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(255,255,255,0.1); }
.stat-card .stat-icon {
    width: 46px; height: 46px; background: var(--accent-glow);
    border-radius: 11px; display: flex; align-items: center; justify-content: center;
    font-size: 22px; color: var(--accent); margin-bottom: 18px;
}
.stat-card:nth-child(2) .stat-icon { background: rgba(16,185,129,0.12); color: var(--success); }
.stat-card:nth-child(3) .stat-icon { background: rgba(167,139,250,0.12); color: #a78bfa; }
.stat-card:nth-child(4) .stat-icon { background: rgba(245,158,11,0.12); color: var(--warning); }
.stat-card .stat-value { font-size: 34px; font-weight: 800; margin-bottom: 4px; letter-spacing: -1px; }
.stat-max { font-size: 18px; font-weight: 400; color: var(--text-muted); margin-left: 2px; }
.stat-card .stat-label { font-size: 13px; color: var(--text-secondary); font-weight: 500; }
.stat-card .stat-sub { font-size: 11.5px; color: var(--text-muted); margin-top: 6px; }

.progress-bar { background: var(--bg-input); border-radius: 8px; height: 6px; overflow: hidden; margin-top: 10px; }
.progress-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--accent), var(--accent-hover)); transition: width 0.7s ease; }
.progress-fill.warning { background: linear-gradient(90deg, var(--warning), #fbbf24); }
.progress-fill.danger { background: linear-gradient(90deg, var(--danger), #f87171); }

/* Quick actions */
.section-sub-title { font-size: 14px; font-weight: 600; color: var(--text-secondary); margin-bottom: 14px; display: flex; align-items: center; gap: 6px; }
.quick-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 12px; }
.quick-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 18px 14px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    cursor: pointer; transition: var(--transition); font-family: inherit;
    color: var(--text-secondary); font-size: 13px; font-weight: 500;
}
.quick-card i { font-size: 24px; color: var(--accent); }
.quick-card:hover { background: var(--bg-hover); border-color: var(--accent); color: var(--text-primary); transform: translateY(-2px); }

/* ══════════════════════════════════
   SECTION / TABLE
══════════════════════════════════ */
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.section-header h3 { font-size: 18px; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.count-badge {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 24px; height: 24px; padding: 0 7px;
    background: var(--accent-glow); color: var(--accent);
    border-radius: 12px; font-size: 12px; font-weight: 700;
}

.data-table-wrapper { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left; padding: 14px 20px;
    font-size: 11px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.6px; color: var(--text-muted);
    background: rgba(255,255,255,0.02); border-bottom: 1px solid var(--border);
}
.data-table td { padding: 14px 20px; font-size: 13.5px; border-bottom: 1px solid var(--border); color: var(--text-secondary); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(255,255,255,0.018); }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 20px; font-size: 11.5px; font-weight: 600; }
.badge-active { background: rgba(16,185,129,0.12); color: var(--success); }
.badge-inactive { background: rgba(239,68,68,0.1); color: var(--danger); }
.badge-live { background: rgba(0,180,216,0.12); color: var(--accent); }
.badge-company { background: rgba(124,92,255,0.12); color: #a78bfa; }
.badge-individual { background: rgba(16,185,129,0.1); color: var(--success); }
.badge-plate { background: rgba(245,158,11,0.1); color: var(--warning); font-family: 'Courier New', monospace; font-weight: 700; letter-spacing: 0.5px; }

/* Actions */
.actions-cell { display: flex; gap: 6px; }
.action-btn {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); border-radius: 7px; background: transparent;
    color: var(--text-secondary); cursor: pointer; font-size: 16px; transition: var(--transition);
}
.action-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-glow); }
.action-btn.delete:hover { border-color: var(--danger); color: var(--danger); background: rgba(239,68,68,0.08); }

/* Empty state */
.empty-state { text-align: center; padding: 64px 20px; color: var(--text-muted); }
.empty-state i { font-size: 52px; margin-bottom: 16px; opacity: 0.4; display: block; }
.empty-state p { font-size: 15px; }

/* Loading */
.loading-spinner { display: flex; align-items: center; justify-content: center; padding: 60px; }
.spinner { width: 38px; height: 38px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════
   MODAL
══════════════════════════════════ */
.modal-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.65);
    backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center;
    z-index: 1000; animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity:0; } to { opacity:1; } }
.modal {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); width: 100%; max-width: 540px; max-height: 92vh;
    overflow-y: auto; box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    animation: modalUp 0.3s ease;
}
@keyframes modalUp { from { opacity:0; transform:scale(0.95) translateY(12px); } to { opacity:1; transform:scale(1) translateY(0); } }
.modal-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 20px 24px; border-bottom: 1px solid var(--border);
}
.modal-header h3 { font-size: 16px; font-weight: 700; }
.modal-close {
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    border: none; background: transparent; color: var(--text-muted);
    cursor: pointer; border-radius: 7px; font-size: 20px; transition: var(--transition);
}
.modal-close:hover { background: var(--bg-hover); color: var(--text-primary); }
.modal-body { padding: 24px; }

/* Form elements */
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-secondary); margin-bottom: 7px; text-transform: uppercase; letter-spacing: 0.4px; }
.form-input {
    width: 100%; padding: 12px 14px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 14px; font-family: inherit; transition: var(--transition); outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-input::placeholder { color: var(--text-muted); }
.form-group select {
    width: 100%; padding: 12px 14px;
    background: var(--bg-input); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary);
    font-size: 14px; font-family: inherit; outline: none; cursor: pointer; transition: var(--transition);
}
.form-group select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-group .field-error { color: var(--danger); font-size: 11.5px; margin-top: 5px; }
.form-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 24px; }

/* ══════════════════════════════════
   TOASTS
══════════════════════════════════ */
.toast-container { position: fixed; top: 24px; right: 24px; z-index: 2000; display: flex; flex-direction: column; gap: 8px; }
.toast {
    padding: 13px 18px; border-radius: var(--radius-sm); font-size: 13.5px; font-weight: 500;
    animation: slideIn 0.3s ease, fadeOut 0.3s ease 2.7s forwards;
    min-width: 280px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 8px;
}
@keyframes slideIn { from { opacity:0; transform:translateX(30px); } to { opacity:1; transform:translateX(0); } }
@keyframes fadeOut { from { opacity:1; } to { opacity:0; } }
.toast-success { background: linear-gradient(135deg, #065f46, #047857); color: #a7f3d0; border: 1px solid rgba(167,243,208,0.2); }
.toast-error { background: linear-gradient(135deg, #7f1d1d, #991b1b); color: #fca5a5; border: 1px solid rgba(252,165,165,0.2); }
.toast-info { background: linear-gradient(135deg, #0c4a6e, #075985); color: #7dd3fc; border: 1px solid rgba(125,211,252,0.2); }

/* ══════════════════════════════════
   QUICK ACTIONS / EXTRAS
══════════════════════════════════ */
.quick-actions { animation: fadeUp 0.4s ease 0.1s both; }

/* ══════════════════════════════════
   RESPONSIVE
══════════════════════════════════ */
@media (max-width: 768px) {
    .sidebar { width: 68px; }
    .brand-text, .nav-item span, .btn-logout span { display: none; }
    .sidebar-brand { justify-content: center; padding: 20px 0; }
    .nav-item { justify-content: center; padding: 14px; }
    .btn-logout { justify-content: center; }
    .main-content { margin-left: 68px; }
    .content-area { padding: 16px; }
    .welcome-banner { flex-direction: column; gap: 8px; }
    .welcome-date { display: none; }
}
.pagination-btn { padding:6px 12px; background:var(--bg-card); border:1px solid var(--border); border-radius:8px; color:var(--text-secondary); font-size:13px; cursor:pointer; transition:all 0.2s; font-family:inherit; }
.pagination-btn:hover:not(:disabled) { background:var(--accent); color:#fff; border-color:var(--accent); }
.pagination-btn.active { background:var(--accent); color:#fff; border-color:var(--accent); font-weight:600; }
.pagination-btn:disabled { opacity:0.35; cursor:not-allowed; }

/* ══════════════════════════════════
   BULK IMPORT & FILTER BARS & WIZARD
══════════════════════════════════ */
.filter-bar {
    display: flex; gap: 12px; align-items: center; justify-content: space-between;
    margin-bottom: 20px; flex-wrap: wrap; background: var(--bg-card);
    padding: 14px 18px; border-radius: var(--radius); border: 1px solid var(--border);
}
.filter-group { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.filter-btn {
    padding: 6px 14px; border-radius: 20px; font-size: 12.5px; font-weight: 500;
    background: var(--bg-primary); border: 1px solid var(--border);
    color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.filter-btn:hover { border-color: var(--accent); color: var(--text-primary); }
.filter-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

.search-input-wrap {
    position: relative; min-width: 240px;
}
.search-input-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-muted); font-size: 15px; }
.search-input-wrap input {
    width: 100%; padding: 8px 12px 8px 34px; background: var(--bg-primary);
    border: 1px solid var(--border); border-radius: 20px; color: var(--text-primary);
    font-size: 13px; outline: none; transition: var(--transition);
}
.search-input-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.upload-dropzone {
    border: 2px dashed var(--border); border-radius: var(--radius);
    padding: 36px 24px; text-align: center; background: var(--bg-card);
    cursor: pointer; transition: var(--transition); margin-bottom: 20px;
}
.upload-dropzone:hover { border-color: var(--accent); background: rgba(99,102,241,0.04); }
.dropzone-icon { font-size: 44px; color: var(--accent); margin-bottom: 12px; }
.dropzone-title { font-size: 16px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.dropzone-sub { font-size: 13px; color: var(--text-muted); }

.csv-textarea {
    width: 100%; min-height: 140px; padding: 12px 14px; font-family: monospace;
    font-size: 12.5px; background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); color: var(--text-primary); outline: none;
    resize: vertical; margin-top: 8px;
}
.csv-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }

.format-guide-card {
    background: var(--bg-primary); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 16px; font-size: 12.5px;
}
.format-guide-card pre { background: var(--bg-card); padding: 8px 12px; border-radius: 6px; margin-top: 8px; overflow-x: auto; color: #a5b4fc; }

.badge-assigned { background: rgba(16,185,129,0.15); color: #10b981; border: 1px solid rgba(16,185,129,0.3); }
.badge-unassigned { background: rgba(245,158,11,0.15); color: #f59e0b; border: 1px solid rgba(245,158,11,0.3); }
.badge-shift { background: rgba(99,102,241,0.15); color: #818cf8; border: 1px solid rgba(99,102,241,0.3); }

/* App Onboarding Status Badges */
.badge-app-active { background: rgba(16,185,129,0.15); color: #34d399; border: 1px solid rgba(52,211,153,0.35); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; }
.badge-app-pending { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid rgba(251,191,36,0.3); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; }

/* Passenger KPI Cards Grid */
.passenger-kpi-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 14px; margin-bottom: 20px;
}
.passenger-kpi-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius-sm); padding: 14px 18px;
    display: flex; align-items: center; gap: 14px; transition: var(--transition);
}
.passenger-kpi-card:hover { border-color: var(--border-hover); transform: translateY(-1px); }
.passenger-kpi-icon {
    width: 42px; height: 42px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.passenger-kpi-icon.total { background: rgba(99,102,241,0.12); color: #818cf8; }
.passenger-kpi-icon.active { background: rgba(16,185,129,0.12); color: #34d399; }
.passenger-kpi-icon.pending { background: rgba(245,158,11,0.12); color: #fbbf24; }
.passenger-kpi-icon.assigned { background: rgba(6,182,212,0.12); color: #22d3ee; }
.passenger-kpi-info h4 { font-size: 11px; font-weight: 600; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; letter-spacing: 0.4px; }
.passenger-kpi-info .val { font-size: 20px; font-weight: 700; color: var(--text-primary); }

/* Wizard Styles */
.wizard-steps {
    display: flex; justify-content: space-between; position: relative; margin-bottom: 24px;
}
.wizard-steps::before {
    content: ''; position: absolute; top: 16px; left: 40px; right: 40px; height: 2px;
    background: var(--border); z-index: 1;
}
.wizard-step {
    position: relative; z-index: 2; display: flex; flex-direction: column;
    align-items: center; gap: 6px; flex: 1; text-align: center;
}
.step-number {
    width: 32px; height: 32px; border-radius: 50%; background: var(--bg-card);
    border: 2px solid var(--border); display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600; color: var(--text-muted); transition: var(--transition);
}
.wizard-step.active .step-number { border-color: var(--accent); background: var(--accent); color: #fff; box-shadow: 0 0 12px var(--accent-glow); }
.wizard-step.completed .step-number { border-color: var(--accent); background: var(--accent); color: #fff; }
.step-title { font-size: 12px; font-weight: 500; color: var(--text-muted); }
.wizard-step.active .step-title { color: var(--text-primary); font-weight: 600; }

.passenger-select-table {
    max-height: 220px; overflow-y: auto; border: 1px solid var(--border);
    border-radius: var(--radius-sm); margin-top: 10px;
}

/* Route Schedule & Calendar Styles */
.badge-schedule { background: rgba(167, 139, 250, 0.15); color: #c4b5fd; border: 1px solid rgba(196, 181, 253, 0.3); font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }

.calendar-preset-bar {
    display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px;
}
.preset-btn {
    padding: 6px 12px; font-size: 12px; font-weight: 600;
    border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg-primary); color: var(--text-secondary);
    cursor: pointer; transition: var(--transition); display: inline-flex; align-items: center; gap: 6px;
}
.preset-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--bg-card); }
.preset-btn.active { border-color: var(--accent); background: var(--accent-glow); color: var(--accent); }

.calendar-header-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px; padding: 8px 12px; background: var(--bg-primary);
    border-radius: var(--radius-sm); border: 1px solid var(--border);
}
.calendar-header-nav h4 { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin: 0; }
.calendar-nav-btn {
    width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
    border-radius: 6px; border: 1px solid var(--border); background: var(--bg-card);
    color: var(--text-secondary); cursor: pointer; transition: var(--transition);
}
.calendar-nav-btn:hover { border-color: var(--accent); color: var(--accent); }

.calendar-month-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; margin-bottom: 14px;
}
.calendar-weekday-header {
    text-align: center; font-size: 10.5px; font-weight: 700; color: var(--text-muted);
    padding-bottom: 4px; text-transform: uppercase;
}
.calendar-day-box {
    aspect-ratio: 1; border-radius: 8px; border: 1px solid var(--border);
    background: var(--bg-card); display: flex; flex-direction: column;
    align-items: center; justify-content: center; font-size: 12px; font-weight: 600;
    color: var(--text-secondary); cursor: pointer; transition: var(--transition);
    user-select: none; position: relative; min-height: 38px;
}
.calendar-day-box:hover:not(.empty) { border-color: var(--accent); transform: scale(1.04); }
.calendar-day-box.selected {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: #ffffff; border-color: #818cf8;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.35); font-weight: 700;
}
.calendar-day-box.selected::after {
    content: '✓'; font-size: 8px; position: absolute; bottom: 2px; color: #a5b4fc;
}
.calendar-day-box.empty { background: transparent; border-color: transparent; cursor: default; }
.calendar-day-box.today { border: 2px solid var(--accent); }
.calendar-day-box.weekend { background: rgba(255, 255, 255, 0.02); }

/* ── Corporate License & Quota Styles ── */
.license-overview-card {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.95));
    border: 1px solid rgba(99, 102, 241, 0.25);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}
.license-overview-card::before {
    content: '';
    position: absolute;
    top: 0; right: 0; width: 240px; height: 100%;
    background: radial-gradient(circle at top right, rgba(99, 102, 241, 0.15), transparent 70%);
    pointer-events: none;
}
.quota-progress-box {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 16px;
}
.quota-progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--text-primary);
    font-weight: 600;
}
.quota-bar-track {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
}
.quota-bar-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.5s ease;
}
.quota-bar-fill.blue { background: linear-gradient(90deg, #3b82f6, #60a5fa); }
.quota-bar-fill.emerald { background: linear-gradient(90deg, #10b981, #34d399); }
.quota-bar-fill.amber { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.feature-pill-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 14px 16px;
    transition: var(--transition);
}
.feature-pill-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    transform: translateY(-2px);
}
.feature-pill-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}
.feature-pill-icon.enabled { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.feature-pill-icon.disabled { background: rgba(148, 163, 184, 0.1); color: #64748b; }

/* ── Glowing Global License Warning Banner ── */
.license-alert-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 12px 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    font-size: 13.5px;
    animation: alertPulse 2.5s infinite;
}
.license-alert-banner.warning {
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.15), rgba(217, 119, 6, 0.25));
    border: 1px solid rgba(245, 158, 11, 0.4);
    color: #fef3c7;
}
.license-alert-banner.danger {
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.18), rgba(185, 28, 28, 0.3));
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #fee2e2;
}
@keyframes alertPulse {
    0%, 100% { box-shadow: 0 0 0 rgba(245, 158, 11, 0); }
    50% { box-shadow: 0 0 16px rgba(245, 158, 11, 0.3); }
}


/* ═══════════════════════════════════════════
   EXECUTIVE BANNER, CONTROLS & SEARCH STYLES
   ═══════════════════════════════════════════ */

.table-header-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    background: rgba(30, 41, 59, 0.35);
    padding: 12px 16px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.filter-tabs-bar {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-tab-btn {
    padding: 8px 14px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.filter-tab-btn:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.15);
}

.filter-tab-btn.active {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
    border-color: rgba(99, 102, 241, 0.45);
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.15);
}

/* ── Passenger Report Custom Styles ── */
.report-occ-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}
.report-mini-track {
    width: 60px;
    height: 6px;
    background: rgba(255,255,255,0.08);
    border-radius: 4px;
    overflow: hidden;
}
.report-mini-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}
.report-badge-boarded {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
}
.report-badge-absent {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 12px;
}

