:root { --dl-green:#244a3a; --dl-green-dark:#17382c; --dl-orange:#f47a48; --dl-amber:#e7b735; --dl-blue:#4f7fc6; --dl-cream:#f4f6f3; --dl-sidebar:#13231d; --dl-dark-bg:#0d151f; --dl-dark-card:#152231; --dl-dark-border:#2b3d50; --dl-dark-text:#edf3f7; }
html, body, button, input, select, textarea, .btn, .form-control, .navbar, .main-footer { font-family:"Outfit","Segoe UI",Arial,sans-serif; }
body { font-size:.9rem; font-weight:400; letter-spacing:.005em; }
.main-sidebar { background:var(--dl-sidebar); }
.brand-link { border-bottom-color: rgba(255,255,255,.12) !important; }
.driverlab-mark { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:9px; margin:0 10px 0 6px; color:#fff; background:var(--dl-orange); font-size:.75rem; font-weight:800; }
.user-avatar { display:inline-flex; align-items:center; justify-content:center; width:34px; height:34px; border-radius:50%; color:var(--dl-green); background:#e4f1e8; font-weight:800; }
.nav-sidebar .nav-link.active { background-color: var(--dl-orange) !important; }
.content-wrapper { background:var(--dl-cream); }
.card { border:1px solid #e1e8e3; border-radius:.9rem; box-shadow:0 5px 20px rgba(24,48,38,.06); overflow:hidden; }
.card-outline.card-success { border-top-color: var(--dl-green); }
.btn-success { background-color:var(--dl-green); border-color:var(--dl-green); }
.btn-success:hover { background-color:#173428; border-color:#173428; }
.module-list .list-group-item.active { color:#1f332b; background:#fff0e8; border-color:#ffd6c3; border-left:4px solid var(--dl-orange); }
.module-list .list-group-item { color:#31423b; }
.check-critical { border-left:3px solid var(--dl-orange); padding-left:.75rem; }
.skill-cell { min-width:148px; }
.table td, .table th { vertical-align:middle; }
.login-page { background:linear-gradient(135deg,#eaf2ec,#fbf6ef); }
.login-logo b { color:var(--dl-orange); }
.readonly-note { border-left:4px solid #6c757d; }

/* Halaman login, signup, dan reset */
.auth-page { min-height:100vh; margin:0; color:#edf2fa; background:radial-gradient(circle at 15% 18%,rgba(208,174,67,.08),transparent 28%),linear-gradient(135deg,#080e17,#0b1320 55%,#070d15); }
.auth-shell { min-height:100vh; display:flex; align-items:center; justify-content:center; padding:32px 18px; }
.auth-card { width:100%; max-width:550px; padding:34px; border:1px solid #253449; border-radius:16px; background:rgba(15,24,38,.96); box-shadow:0 26px 80px rgba(0,0,0,.36); }
.auth-brand { display:inline-flex; align-items:center; gap:14px; color:#fff; text-decoration:none; }
.auth-brand:hover { color:#fff; text-decoration:none; }
.auth-logo { width:42px; height:42px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #647087; border-radius:50%; color:#d8b83f; background:#111d2d; box-shadow:inset 0 0 0 3px rgba(255,255,255,.03); }
.auth-brand strong { display:block; font-size:1.15rem; letter-spacing:.06em; line-height:1; }
.auth-brand strong span { color:#dfbd45; }
.auth-brand small { display:block; margin-top:5px; color:#8996aa; font-size:.61rem; letter-spacing:.18em; }
.auth-intro { margin:38px 0 20px; }
.auth-eyebrow { display:block; margin-bottom:12px; color:#dbb940; font-size:.78rem; font-weight:800; letter-spacing:.16em; }
.auth-intro h1 { margin:0; max-width:440px; color:#fffdf8; font:700 2.15rem/1.08 "Outfit",sans-serif; letter-spacing:-.025em; }
.auth-intro p { margin:18px 0 0; color:#9ba9bb; font-size:1rem; line-height:1.65; }
.auth-tabs { display:grid; grid-template-columns:repeat(3,1fr); gap:5px; margin:0 0 24px; padding:6px; border:1px solid #233146; border-radius:10px; background:#0c1421; }
.auth-tabs a { padding:11px 8px; border-radius:6px; color:#8d9bb0; font-weight:700; text-align:center; text-decoration:none; transition:.2s ease; }
.auth-tabs a:hover { color:#f4d466; background:#172234; }
.auth-tabs a.active { color:#fff7dc; background:rgba(191,153,42,.2); box-shadow:inset 0 0 0 1px rgba(218,184,65,.08); }
.auth-form label { color:#dbe4f1; font-size:.9rem; }
.auth-form .form-control { height:52px; padding:13px 15px; border:1px solid #cbd6e7; border-radius:10px; color:#121b28; background:#f1f5fb; box-shadow:none; font-size:.95rem; }
.auth-form textarea.form-control { height:auto; }
.auth-form .form-control:focus { border-color:#ddb93c; background:#fff; box-shadow:0 0 0 3px rgba(221,185,60,.14); }
.auth-form .form-group { margin-bottom:20px; }
.auth-form .form-group small { display:block; margin-top:7px; color:#8493a8; }
.auth-form-row { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.auth-password-wrap { position:relative; }
.auth-password-wrap .form-control { padding-right:48px; }
.auth-password-wrap button { position:absolute; top:0; right:0; width:54px; height:52px; border:0; color:#5f6f82; background:transparent; font-weight:600; }
.auth-submit { width:100%; min-height:50px; margin-top:3px; padding:14px 18px; border:0; border-radius:10px; color:#111827; background:linear-gradient(100deg,#f5a20d,#d9b83c); font-weight:700; box-shadow:0 10px 28px rgba(220,168,33,.12); }
.auth-submit:hover { filter:brightness(1.06); }
.auth-links { display:flex; align-items:center; justify-content:space-between; gap:18px; margin-top:20px; }
.auth-links.single { justify-content:center; }
.auth-links a { color:#d8b63d; font-size:.91rem; font-weight:700; }
.auth-alert { margin-bottom:18px; padding:12px 14px; border-radius:8px; font-size:.92rem; }
.auth-alert.success { color:#c9f4d8; border:1px solid #285f44; background:#153426; }
.auth-alert.danger { color:#ffd6d6; border:1px solid #6c3438; background:#3a2026; }
.auth-notice { display:flex; gap:11px; margin-bottom:19px; padding:12px 13px; border-left:3px solid #d9b83c; border-radius:5px; color:#b8c3d2; background:#121e2e; font-size:.9rem; line-height:1.45; }
.auth-notice i { margin-top:3px; color:#d9b83c; }
.auth-security { margin:24px 0 0; padding-top:18px; border-top:1px solid #233146; color:#6f7f94; font-size:.78rem; text-align:center; }
.auth-security i { margin-right:5px; color:#7b8da3; }
.auth-hp { position:absolute !important; left:-10000px !important; width:1px !important; height:1px !important; overflow:hidden !important; }
.auth-theme-toggle { position:fixed; top:18px; right:18px; z-index:10; display:inline-flex; align-items:center; gap:8px; padding:9px 13px; border:1px solid #334258; border-radius:999px; color:#d8e0eb; background:#121d2c; font-size:.78rem; cursor:pointer; }
.module-content-add { background:#f7fbf8; border-color:#dbe8df !important; }
.module-content-row { background:#fff; border-color:#e1e6e3 !important; }

/* Tema terang untuk halaman autentikasi. Tema gelap aktif lewat tombol tema. */
body.auth-page:not(.dark-mode) { color:#26342f; background:linear-gradient(135deg,#eef5f0,#fbf7ef 58%,#edf3ef); }
body.auth-page:not(.dark-mode) .auth-card { border-color:#d9e1dc; background:rgba(255,255,255,.97); box-shadow:0 26px 80px rgba(35,58,47,.13); }
body.auth-page:not(.dark-mode) .auth-brand { color:#20362d; }
body.auth-page:not(.dark-mode) .auth-brand:hover { color:#20362d; }
body.auth-page:not(.dark-mode) .auth-brand strong { color:#20362d; }
body.auth-page:not(.dark-mode) .auth-brand small { color:#6e7e76; }
body.auth-page:not(.dark-mode) .auth-logo { border-color:#b9c8c0; color:#ba8524; background:#eef5f0; }
body.auth-page:not(.dark-mode) .auth-intro h1 { color:#172c23; }
body.auth-page:not(.dark-mode) .auth-intro p { color:#65736c; }
body.auth-page:not(.dark-mode) .auth-tabs { border-color:#dbe3de; background:#edf3ef; }
body.auth-page:not(.dark-mode) .auth-tabs a { color:#64746c; }
body.auth-page:not(.dark-mode) .auth-tabs a.active { color:#21392e; background:#fff3cf; }
body.auth-page:not(.dark-mode) .auth-form label { color:#273c33; }
body.auth-page:not(.dark-mode) .auth-notice { color:#4d5f56; background:#f3f7f4; }
body.auth-page:not(.dark-mode) .auth-security { border-top-color:#dfe7e2; color:#73827a; }
body.auth-page:not(.dark-mode) .auth-theme-toggle { border-color:#cdd9d2; color:#2b4137; background:#fff; }

/* Penyesuaian DriverLab di atas dark-mode AdminLTE agar seluruh teks tetap terbaca. */
body.dark-mode { color:var(--dl-dark-text); background:#0b121b; }
.dark-mode .content-wrapper { color:var(--dl-dark-text); background:var(--dl-dark-bg); }
.dark-mode .main-header { border-color:var(--dl-dark-border); background:#111c29 !important; }
.dark-mode .main-header .nav-link { color:#e5ebf2 !important; }
.dark-mode .card, .dark-mode .modal-content { color:var(--dl-dark-text); border-color:var(--dl-dark-border); background:var(--dl-dark-card); }
.dark-mode .card-header, .dark-mode .card-footer { border-color:var(--dl-dark-border); background:#192637; }
.dark-mode .table { color:#e9eef5; }
.dark-mode .table td, .dark-mode .table th { border-color:#334255; }
.dark-mode .table-hover tbody tr:hover { color:#fff; background:rgba(255,255,255,.04); }
.dark-mode .form-control, .dark-mode .custom-select { color:#f2f5f8; border-color:#46576c; background:#101a27; }
.dark-mode .form-control:focus, .dark-mode .custom-select:focus { color:#fff; border-color:#d5ae3c; background:#0d1722; }
.dark-mode .form-control[readonly] { color:#b9c4d1; background:#263345; }
.dark-mode .text-muted { color:#aeb9c6 !important; }
.dark-mode .list-group-item { color:#edf2f7; border-color:#344457; background:#172231; }
.dark-mode .module-list .list-group-item.active { color:#fff; border-color:#7e5636; background:#3b2a22; }
.dark-mode .nav-tabs { border-color:#3a495d; }
.dark-mode .nav-tabs .nav-link { color:#b9c5d2; }
.dark-mode .nav-tabs .nav-link.active { color:#fff; border-color:#46576c #46576c #172231; background:#172231; }
.dark-mode .module-content-add, .dark-mode .module-content-row { color:#edf2f7; border-color:#3a4a5e !important; background:#111c29; }
.dark-mode .alert-info { color:#d9f2ff; border-color:#2b6179; background:#153346; }
.dark-mode .dropdown-menu { color:#edf2f7; border-color:#334255; background:#172231; }
.dark-mode .dropdown-item { color:#edf2f7; }
.dark-mode .dropdown-item:hover { background:#223146; }

/* DriverLab UI v2.2.0 — sidebar ramping, dashboard lega, dan kontras konsisten. */
.main-header { min-height:62px; padding:0 .8rem; border-bottom:1px solid #e4e9e6; box-shadow:0 2px 12px rgba(25,52,41,.035); }
.main-header .nav-link { display:flex; align-items:center; min-height:42px; border-radius:9px; font-size:.86rem; font-weight:500; }
.main-header button.nav-link:hover, .main-header a.nav-link:hover { background:#edf3ef; }
.content-header { padding:22px .5rem 10px; }
.content-header h1 { color:#1e352c; font-size:1.35rem; font-weight:650; letter-spacing:-.015em; }
.content { padding-bottom:1.25rem; }
.main-sidebar { width:224px; box-shadow:8px 0 30px rgba(8,22,16,.08) !important; }
.brand-link { display:flex; align-items:center; height:62px; padding:.72rem .8rem; }
.brand-link .brand-text { font-size:1rem; letter-spacing:.01em; }
.driverlab-mark { flex:0 0 34px; margin:0 9px 0 2px; }
.sidebar { padding:0 .25rem .8rem; }
.user-panel { align-items:center; margin:.65rem .55rem .9rem !important; padding:.7rem .35rem .95rem !important; border-bottom-color:rgba(255,255,255,.1) !important; }
.user-panel .info { min-width:0; padding-left:.7rem; }
.user-panel .info a { overflow:hidden; color:#f1f6f3; font-size:.82rem; font-weight:600; text-overflow:ellipsis; white-space:nowrap; }
.user-panel .info small { margin-top:3px; color:#9eb1a8 !important; font-size:.66rem; font-weight:500; letter-spacing:.06em; text-transform:uppercase; }
.user-avatar { width:32px; height:32px; font-size:.75rem; }
.nav-sidebar .nav-header { margin:.78rem .75rem .22rem; padding:0; color:#789087; font-size:.61rem; font-weight:700; letter-spacing:.12em; }
.nav-sidebar .nav-item { margin:0; }
.nav-sidebar .nav-link { display:flex; align-items:center; min-height:42px; margin:3px 6px; padding:.62rem .72rem; border-radius:10px; color:#c8d5cf; font-size:.8rem; font-weight:500; transition:background .18s ease,color .18s ease,transform .18s ease; }
.nav-sidebar .nav-link:hover { color:#fff; background:rgba(255,255,255,.075); }
.nav-sidebar .nav-link.active { color:#fff !important; background:linear-gradient(135deg,#f47a48,#db6740) !important; box-shadow:0 8px 18px rgba(244,122,72,.2); }
.nav-sidebar .nav-link.active:hover { transform:translateY(-1px); }
.nav-sidebar .nav-icon { width:27px !important; margin:0 .58rem 0 0 !important; font-size:.92rem !important; text-align:center; }
.nav-sidebar .nav-link p { display:flex; flex:1; align-items:center; margin:0; line-height:1.25; }
.nav-sidebar .badge.right { position:static; margin-left:auto; }
.card-header { min-height:54px; padding:1rem 1.25rem; border-bottom-color:#e6ebe8; background:#fff; }
.card-title { color:#21372f; font-size:.98rem; font-weight:650; }
.card-body { padding:1.3rem 1.35rem; }
.card-footer { padding:1rem 1.35rem; border-top-color:#e6ebe8; background:#fafcfb; }
.form-group { margin-bottom:1.05rem; }
label { color:#31473e; font-size:.82rem; font-weight:600; }
.form-control, .custom-select { min-height:44px; padding:.62rem .78rem; border-color:#cfd9d3; border-radius:9px; color:#17271f; background:#fff; font-size:.88rem; }
textarea.form-control { min-height:96px; line-height:1.55; }
.form-control::placeholder { color:#87958e; opacity:1; }
.form-control:focus, .custom-select:focus { color:#17271f; border-color:#4f8a70; background:#fff; box-shadow:0 0 0 3px rgba(52,112,85,.12); }
.btn { min-height:39px; padding:.52rem .85rem; border-radius:8px; font-size:.82rem; font-weight:600; }
.btn-sm { min-height:32px; padding:.36rem .62rem; font-size:.76rem; }
.badge { padding:.36em .58em; border-radius:6px; font-size:.69rem; font-weight:600; letter-spacing:.005em; }

.dl-stat-card { position:relative; min-height:150px; margin-bottom:1.2rem; padding:20px 20px 16px; border:1px solid transparent; border-radius:15px; overflow:hidden; box-shadow:0 7px 22px rgba(26,50,41,.07); }
.dl-stat-card::after { content:""; position:absolute; right:-28px; bottom:-46px; width:112px; height:112px; border-radius:50%; background:currentColor; opacity:.055; }
.dl-stat-head { display:flex; align-items:flex-start; justify-content:space-between; gap:12px; }
.dl-stat-label { display:block; margin-bottom:9px; color:inherit; font-size:.72rem; font-weight:650; letter-spacing:.07em; text-transform:uppercase; opacity:.78; }
.dl-stat-value { display:block; color:inherit; font-size:2.05rem; font-weight:700; line-height:1; letter-spacing:-.035em; }
.dl-stat-icon { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:12px; background:rgba(255,255,255,.58); font-size:1rem; box-shadow:inset 0 0 0 1px rgba(255,255,255,.45); }
.dl-stat-link { position:absolute; z-index:1; left:20px; bottom:15px; display:inline-flex; align-items:center; gap:7px; color:inherit; font-size:.76rem; font-weight:600; text-decoration:none; opacity:.84; }
.dl-stat-link:hover { color:inherit; text-decoration:none; opacity:1; }
.dl-stat-blue { color:#285777; border-color:#d5e7f3; background:#e8f4fb; }
.dl-stat-green { color:#246044; border-color:#d0eadc; background:#e7f5ed; }
.dl-stat-amber { color:#7a581d; border-color:#f2e1b9; background:#fff3dc; }
.dl-stat-violet { color:#55427d; border-color:#ded7ef; background:#f0ecfa; }

.dl-table-card .card-header { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.dl-table-card .card-body { background:#fff; }
.driver-status-wrap { width:100%; overflow-x:auto; overscroll-behavior-inline:contain; scrollbar-color:#9cb2a8 #edf2ef; scrollbar-width:thin; }
.driver-status-table { min-width:1540px; margin:0; color:#263b33; font-size:.82rem; border-collapse:separate; border-spacing:0; }
.driver-status-table thead th { position:sticky; top:0; z-index:2; padding:13px 12px; border-top:0; border-bottom:1px solid #dce4df; color:#4b6258; background:#f3f7f4; font-size:.7rem; font-weight:650; line-height:1.3; letter-spacing:.025em; white-space:normal; }
.driver-status-table tbody td { min-height:62px; padding:13px 12px; border-top:0; border-bottom:1px solid #edf1ee; line-height:1.4; }
.driver-status-table tbody tr:last-child td { border-bottom:0; }
.driver-status-table tbody tr:hover { background:#f7faf8; }
.driver-status-table td:first-child, .driver-status-table th:first-child { position:sticky; left:0; z-index:1; min-width:190px; background:inherit; box-shadow:8px 0 16px rgba(34,63,51,.035); }
.driver-status-table thead th:first-child { z-index:3; background:#f3f7f4; }
.driver-status-table .driver-name { color:#1e6e9f; font-size:.86rem; font-weight:650; }
.driver-status-table .status-chip { display:inline-flex; align-items:center; min-height:27px; padding:.4rem .58rem; border-radius:8px; text-decoration:none; white-space:nowrap; }
.driver-status-table small { margin-top:5px; font-size:.69rem; line-height:1.35; }

.dl-footer { display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:58px; padding:12px 20px; border-top:1px solid #dce4df; color:#66786f; background:#fff; font-size:.76rem; }
.dl-footer-copy { display:flex; flex-direction:column; gap:2px; }
.dl-footer-copy strong { color:#31473e; font-size:.79rem; font-weight:650; }
.dl-footer-version { display:inline-flex; align-items:center; gap:7px; padding:7px 10px; border:1px solid #dbe5df; border-radius:999px; color:#4c6258; background:#f5f8f6; font-weight:600; white-space:nowrap; }
.dl-version-dot { width:7px; height:7px; border-radius:50%; background:#42b883; box-shadow:0 0 0 4px rgba(66,184,131,.12); }
.auth-version { margin-top:18px; color:#75869b; font-size:.68rem; font-weight:600; letter-spacing:.06em; text-align:center; text-transform:uppercase; }

.dark-mode .content-header h1, .dark-mode .card-title, .dark-mode label { color:#edf3f7; }
.dark-mode .main-header button.nav-link:hover, .dark-mode .main-header a.nav-link:hover { background:#1b2a39; }
.dark-mode .card { border-color:var(--dl-dark-border); box-shadow:0 7px 24px rgba(0,0,0,.16); }
.dark-mode .form-control::placeholder { color:#91a1b0; }
.dark-mode select.form-control option, .dark-mode select.custom-select option { color:#edf3f7; background:#101a27; }
.dark-mode .dl-stat-blue { color:#b9ddf6; border-color:#29475d; background:#173044; }
.dark-mode .dl-stat-green { color:#bdebd0; border-color:#28503c; background:#173426; }
.dark-mode .dl-stat-amber { color:#f8dfaa; border-color:#594622; background:#3a2d18; }
.dark-mode .dl-stat-violet { color:#d8cef5; border-color:#4a3e69; background:#2b2442; }
.dark-mode .dl-stat-icon { background:rgba(255,255,255,.08); box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); }
.dark-mode .dl-table-card .card-body { background:var(--dl-dark-card); }
.dark-mode .driver-status-table { color:#e7edf2; }
.dark-mode .driver-status-table thead th, .dark-mode .driver-status-table thead th:first-child { color:#c6d1da; border-color:#344659; background:#1b2a3a; }
.dark-mode .driver-status-table tbody td { border-color:#2a3a4c; }
.dark-mode .driver-status-table tbody tr:hover { color:#fff; background:#1a2938; }
.dark-mode .driver-status-table .driver-name { color:#79bfff; }
.dark-mode .dl-footer { color:#a7b4bf; border-color:#2c3d4f; background:#111c29; }
.dark-mode .dl-footer-copy strong { color:#edf3f7; }
.dark-mode .dl-footer-version { color:#cbd5dd; border-color:#344659; background:#172534; }

/* Login: kontras eksplisit termasuk autofill browser pada mode gelap. */
.auth-page .auth-form .form-control { -webkit-text-fill-color:#172231; caret-color:#172231; }
.auth-page .auth-form .form-control::placeholder { color:#7e8b9b; -webkit-text-fill-color:#7e8b9b; opacity:1; }
.auth-page.dark-mode .auth-form .form-control { color:#f4f7fb !important; border-color:#3b4d63 !important; background:#172437 !important; -webkit-text-fill-color:#f4f7fb !important; caret-color:#f4f7fb !important; }
.auth-page.dark-mode .auth-form .form-control::placeholder { color:#9aa9bb !important; -webkit-text-fill-color:#9aa9bb !important; opacity:1; }
.auth-page.dark-mode .auth-form .form-control:focus { color:#fff !important; border-color:#d8b440 !important; background:#1b2a3f !important; -webkit-text-fill-color:#fff !important; box-shadow:0 0 0 3px rgba(216,180,64,.13); }
.auth-page.dark-mode .auth-form input:-webkit-autofill, .auth-page.dark-mode .auth-form input:-webkit-autofill:hover, .auth-page.dark-mode .auth-form input:-webkit-autofill:focus { -webkit-text-fill-color:#f4f7fb !important; -webkit-box-shadow:0 0 0 1000px #172437 inset !important; transition:background-color 9999s ease-out; }
.auth-page.dark-mode .auth-password-wrap button { color:#c3ceda; }

/* Landing page publik. Data program tetap berada di balik login. */
.landing-page { min-height:100vh; margin:0; color:#20352c; background:#f5f7f3; }
.landing-wrap { width:min(1180px,calc(100% - 36px)); margin:0 auto; }
.landing-nav { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:22px 0; }
.landing-brand { display:inline-flex; align-items:center; gap:12px; color:#20352c; text-decoration:none; }
.landing-brand:hover { color:#20352c; text-decoration:none; }
.landing-brand-mark { display:inline-flex; align-items:center; justify-content:center; width:42px; height:42px; border-radius:12px; color:#fff; background:var(--dl-green); font-weight:700; }
.landing-brand strong { display:block; line-height:1; letter-spacing:.04em; }
.landing-brand strong span { color:var(--dl-orange); }
.landing-brand small { display:block; margin-top:5px; color:#718078; font-size:.62rem; letter-spacing:.13em; }
.landing-actions { display:flex; align-items:center; gap:10px; }
.landing-theme, .landing-login, .landing-primary, .landing-secondary { display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:43px; padding:10px 16px; border:1px solid #cfdad3; border-radius:999px; color:#264237; background:#fff; font:600 .84rem/1.2 "Outfit",sans-serif; text-decoration:none; cursor:pointer; }
.landing-login:hover, .landing-secondary:hover { color:#18352a; border-color:#9eb4a8; text-decoration:none; }
.landing-primary { border-color:var(--dl-green); color:#fff; background:var(--dl-green); box-shadow:0 14px 30px rgba(36,74,58,.16); }
.landing-primary:hover { color:#fff; background:#183a2c; text-decoration:none; }
.landing-hero { display:grid; grid-template-columns:minmax(0,1.25fr) minmax(320px,.75fr); gap:58px; align-items:center; min-height:590px; padding:70px 0 92px; }
.landing-kicker { display:inline-flex; align-items:center; gap:9px; margin-bottom:20px; padding:8px 12px; border:1px solid #d8e1dc; border-radius:999px; color:#496258; background:#fff; font-size:.72rem; font-weight:700; letter-spacing:.08em; text-transform:uppercase; }
.landing-kicker::before { content:""; width:8px; height:8px; border-radius:50%; background:var(--dl-orange); box-shadow:0 0 0 5px rgba(244,122,72,.12); }
.landing-hero h1 { margin:0; max-width:760px; color:#17362a; font-size:clamp(2.15rem,4.2vw,3.65rem); font-weight:700; line-height:1.05; letter-spacing:-.035em; }
.landing-hero h1 span { color:var(--dl-orange); }
.landing-lead { max-width:720px; margin:24px 0 30px; color:#61736b; font-size:1.02rem; line-height:1.8; }
.landing-cta { display:flex; flex-wrap:wrap; gap:12px; }
.landing-summary { position:relative; padding:30px; border:1px solid #dce5df; border-radius:24px; background:#fff; box-shadow:0 28px 70px rgba(31,65,50,.12); }
.landing-summary::before { content:""; position:absolute; inset:-10px 26px auto; height:10px; border-radius:10px 10px 0 0; background:var(--dl-orange); opacity:.88; }
.landing-summary-label { margin-bottom:18px; color:#718078; font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.landing-stat { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:17px 0; border-bottom:1px solid #e7ece9; }
.landing-stat:last-of-type { border-bottom:0; }
.landing-stat strong { color:#18372b; font-size:1.3rem; }
.landing-stat span { color:#6b7b73; font-size:.82rem; text-align:right; }
.landing-secure { display:flex; gap:11px; margin-top:20px; padding:15px; border-radius:12px; color:#385348; background:#edf5f0; font-size:.78rem; line-height:1.55; }
.landing-section { padding:86px 0; background:#fff; }
.landing-section-title { max-width:760px; margin-bottom:36px; }
.landing-section-title small { color:var(--dl-orange); font-weight:700; letter-spacing:.12em; text-transform:uppercase; }
.landing-section-title h2 { margin:10px 0 0; color:#19372c; font-size:clamp(1.55rem,3vw,2.4rem); font-weight:700; line-height:1.15; }
.landing-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; }
.landing-feature { padding:24px; border:1px solid #e0e7e3; border-radius:16px; background:#fbfcfa; }
.landing-feature b { display:inline-flex; align-items:center; justify-content:center; width:38px; height:38px; margin-bottom:20px; border-radius:10px; color:#fff; background:var(--dl-green); }
.landing-feature h3 { margin:0 0 10px; color:#203a30; font-size:1rem; }
.landing-feature p { margin:0; color:#687a71; font-size:.84rem; line-height:1.7; }
.landing-bottom { padding:64px 0; color:#eff7f2; background:var(--dl-green); }
.landing-bottom-row { display:flex; align-items:center; justify-content:space-between; gap:36px; }
.landing-bottom h2 { margin:0 0 9px; color:#fff; font-size:1.7rem; }
.landing-bottom p { margin:0; color:#c4d6cd; }
.landing-bottom .landing-primary { color:#19271f; border-color:#ffb18f; background:#ff9a6e; }
.landing-footer { padding:24px 0; color:#718078; background:#eef2ef; font-size:.75rem; text-align:center; }
.landing-page.dark-mode { color:#e8f0eb; background:#0f1722; }
.landing-page.dark-mode .landing-brand, .landing-page.dark-mode .landing-brand:hover { color:#eef5f1; }
.landing-page.dark-mode .landing-brand small { color:#8fa097; }
.landing-page.dark-mode .landing-theme, .landing-page.dark-mode .landing-login, .landing-page.dark-mode .landing-secondary { color:#e7efe9; border-color:#394b43; background:#18241f; }
.landing-page.dark-mode .landing-kicker { color:#c2d0c8; border-color:#35483e; background:#17231e; }
.landing-page.dark-mode .landing-hero h1, .landing-page.dark-mode .landing-stat strong, .landing-page.dark-mode .landing-section-title h2, .landing-page.dark-mode .landing-feature h3 { color:#f1f7f3; }
.landing-page.dark-mode .landing-lead, .landing-page.dark-mode .landing-stat span, .landing-page.dark-mode .landing-feature p { color:#a7b6ae; }
.landing-page.dark-mode .landing-summary, .landing-page.dark-mode .landing-section, .landing-page.dark-mode .landing-feature { border-color:#304239; background:#17231e; }
.landing-page.dark-mode .landing-stat { border-color:#31433a; }
.landing-page.dark-mode .landing-secure { color:#c3d2ca; background:#21332a; }
.landing-page.dark-mode .landing-footer { color:#93a39b; background:#111b17; }

@media (max-width: 767px) {
    .table-responsive { font-size:.84rem; }
    .content-header { padding-top:17px; }
    .content-header h1 { font-size:1.18rem; }
    .card { border-radius:.78rem; }
    .card-header { padding:.9rem 1rem; }
    .card-body { padding:1.08rem; }
    .auth-shell { align-items:flex-start; padding:76px 13px 24px; }
    .auth-card { padding:26px 21px; border-radius:14px; }
    .auth-intro { margin-top:30px; }
    .auth-intro h1 { font-size:1.8rem; }
    .auth-form-row { grid-template-columns:1fr; gap:0; }
    .auth-theme-toggle { top:12px; right:12px; }
    .dl-stat-card { min-height:138px; padding:18px 17px 15px; }
    .dl-stat-value { font-size:1.8rem; }
    .dl-stat-link { left:17px; bottom:14px; }
    .dl-table-card .card-header { align-items:flex-start; flex-direction:column; }
    .driver-status-table { min-width:1460px; }
    .dl-footer { align-items:flex-start; flex-direction:column; gap:10px; padding:14px 16px; }
    .landing-wrap { width:min(100% - 26px,1180px); }
    .landing-nav { align-items:flex-start; }
    .landing-brand small, .landing-theme [data-theme-label] { display:none; }
    .landing-actions { gap:6px; }
    .landing-theme, .landing-login { min-height:39px; padding:8px 11px; }
    .landing-hero { grid-template-columns:1fr; gap:38px; min-height:0; padding:54px 0 70px; }
    .landing-grid { grid-template-columns:1fr; }
    .landing-bottom-row { align-items:flex-start; flex-direction:column; }
}

@media (min-width:768px) and (max-width:991px) {
    .landing-hero { grid-template-columns:1fr; min-height:0; }
    .landing-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}

@media (min-width: 992px) {
    body:not(.sidebar-collapse) .content-wrapper,
    body:not(.sidebar-collapse) .main-header,
    body:not(.sidebar-collapse) .main-footer { margin-left:224px; }
}

@media (max-width: 991.98px) {
    .main-sidebar { margin-left:-224px; }
    .sidebar-open .main-sidebar { margin-left:0; }
    .main-header .navbar-nav .nav-link { padding:.65rem .6rem; }
}

@media print {
    .main-header, .main-sidebar, .main-footer, .content-header, .no-print { display:none !important; }
    .content-wrapper { margin-left:0 !important; background:#fff !important; color:#111 !important; }
    .card { border:0 !important; box-shadow:none !important; }
    .table { color:#111 !important; font-size:10px; }
}
