:root{--kc-bg:#f3f5f7;--kc-surface:#fff;--kc-surface2:#f8fafc;--kc-border:#dce2e8;--kc-text:#17212b;--kc-muted:#667483;--kc-input:#fff;--kc-shadow:0 8px 28px rgba(0,0,0,.08);--kc-primary:#2563eb;}
html[data-theme="dark"]{--kc-bg:#0d1117;--kc-surface:#151a21;--kc-surface2:#11161c;--kc-border:#27303b;--kc-text:#f1f5f9;--kc-muted:#9aa6b2;--kc-input:#0f141a;--kc-shadow:0 8px 28px rgba(0,0,0,.28);--kc-primary:#60a5fa;}
html,body{background:var(--kc-bg)!important;color:var(--kc-text);}
body{transition:background-color .2s,color .2s;}
.kc-ui-controls{position:fixed;top:12px;right:12px;z-index:99999;display:flex;gap:6px;align-items:center;}
.kc-ui-btn{border:1px solid var(--kc-border);background:var(--kc-surface);color:var(--kc-text);border-radius:999px;padding:7px 11px;font-size:12px;font-weight:700;line-height:1;cursor:pointer;box-shadow:var(--kc-shadow);}
.kc-ui-btn:hover{transform:translateY(-1px);}
/* Bootstrap / common light-dark normalization for every screen */
html[data-theme="light"] .bg-dark,html[data-theme="light"] .bg-secondary{background-color:var(--kc-surface)!important;color:var(--kc-text)!important;}
html[data-theme="light"] .text-light{color:var(--kc-text)!important;}
html[data-theme="light"] .card,html[data-theme="light"] .card-dark{background:var(--kc-surface)!important;color:var(--kc-text)!important;border-color:var(--kc-border)!important;}
html[data-theme="dark"] .bg-light{background-color:var(--kc-bg)!important;color:var(--kc-text)!important;}
html[data-theme="dark"] .card{background:var(--kc-surface)!important;color:var(--kc-text)!important;border-color:var(--kc-border)!important;}
.form-control,.form-select,textarea{background-color:var(--kc-input)!important;color:var(--kc-text)!important;border-color:var(--kc-border)!important;}
.form-control::placeholder{color:var(--kc-muted)!important;}
.table{color:var(--kc-text);}
html[data-theme="light"] .table-dark{--bs-table-bg:var(--kc-surface);--bs-table-color:var(--kc-text);--bs-table-border-color:var(--kc-border);}
html[data-theme="light"] .table-striped>tbody>tr:nth-of-type(odd)>*{color:var(--kc-text);background-color:var(--kc-surface2);}
.text-muted{color:var(--kc-muted)!important;}
body.kc-themed,[data-kc-page="1"]{background:var(--kc-bg)!important;color:var(--kc-text)!important;}
@media(max-width:600px){.kc-ui-controls{top:8px;right:8px}.kc-ui-btn{padding:6px 9px;font-size:11px}}

/* Page-specific light theme overrides */
html[data-theme="light"] .form-card,html[data-theme="light"] .success-box,
html[data-theme="light"] .staff-form,html[data-theme="light"] .opt-card.staff,
html[data-theme="light"] .card{background:var(--kc-surface)!important;color:var(--kc-text)!important;border-color:var(--kc-border)!important;box-shadow:var(--kc-shadow);}
html[data-theme="light"] .field input,html[data-theme="light"] .field textarea,
html[data-theme="light"] .pin-box,html[data-theme="light"] .sf-input{background:var(--kc-input)!important;color:var(--kc-text)!important;border-color:var(--kc-border)!important;}
html[data-theme="light"] .field label,html[data-theme="light"] .sf-label{color:var(--kc-muted)!important;}
html[data-theme="light"] .app-name,html[data-theme="light"] .form-title,html[data-theme="light"] .logo-name{color:var(--kc-text)!important;}
html[data-theme="light"] .app-tagline,html[data-theme="light"] .logo-sub{color:var(--kc-muted)!important;}
html[data-theme="light"] .or-divider{color:var(--kc-muted)!important;}
html[data-theme="light"] .or-divider::before,html[data-theme="light"] .or-divider::after{background:var(--kc-border)!important;}
html[data-theme="light"] .suggestions{background:var(--kc-surface)!important;border-color:var(--kc-border)!important;box-shadow:var(--kc-shadow);}
html[data-theme="light"] .sugg-item{color:var(--kc-text)!important;border-bottom-color:var(--kc-border)!important;}
html[data-theme="light"] .sugg-item:hover{background:var(--kc-surface2)!important;}
html[data-theme="light"] .veh-btn{background:var(--kc-input)!important;border-color:var(--kc-border)!important;}
html[data-theme="light"] .veh-btn:hover{background:var(--kc-surface2)!important;}
html[data-theme="light"] .veh-label{color:var(--kc-text)!important;}
html[data-theme="light"] .veh-rate,.html[data-theme="light"] .veh-loading{color:var(--kc-muted)!important;}
html[data-theme="light"] .new-ride-btn{background:var(--kc-surface2)!important;border-color:var(--kc-border)!important;color:var(--kc-text)!important;}
html[data-theme="light"] .footer{color:var(--kc-muted)!important;}
html[data-theme="light"] .booking-link a{color:var(--kc-primary)!important;}
html[data-theme="light"] .divider{color:var(--kc-muted)!important;}
html[data-theme="light"] .divider::before,html[data-theme="light"] .divider::after{background:var(--kc-border)!important;}
html[data-theme="light"] .btn-back{color:var(--kc-primary)!important;}
