html[data-theme=dark]{--primary: #3ba8f5;--primary-dark: #169AF1;--text: #e8eef5;--text-muted: #9aa8b8;--text-soft: #c5d0dc;--bg: #0f1419;--bg-soft: #1a222d;--sidebar-bg: #151b24;--border: #2a3544;--danger: #f07178;--surface: #1a222d;--surface-2: #212b38;--shadow: rgba(0, 0, 0, .35);color-scheme:dark}html[data-theme=light]{color-scheme:light}html[data-theme=dark] body{background:var(--bg)!important;color:var(--text)!important}html[data-theme=dark] .toolbar,html[data-theme=dark] .form-toolbar,html[data-theme=dark] .form-panel,html[data-theme=dark] .grid-panel,html[data-theme=dark] .related-panel,html[data-theme=dark] .card,html[data-theme=dark] .panel,html[data-theme=dark] .filter-panel,html[data-theme=dark] .stat-card,html[data-theme=dark] .dash-card{background:var(--surface)!important;border-color:var(--border)!important;box-shadow:0 2px 10px var(--shadow)!important;color:var(--text)}html[data-theme=dark] .btn-secondary{background:var(--surface-2)!important;color:var(--text-soft)!important;border-color:var(--border)!important}html[data-theme=dark] .btn-secondary:hover{border-color:var(--primary)!important;color:var(--primary)!important}html[data-theme=dark] .btn-danger{background:var(--surface-2)!important;border-color:#5c3036!important}html[data-theme=dark] .field input,html[data-theme=dark] .field select,html[data-theme=dark] .field textarea,html[data-theme=dark] .quicksearch input,html[data-theme=dark] input,html[data-theme=dark] select,html[data-theme=dark] textarea{background:var(--bg)!important;border-color:var(--border)!important;color:var(--text)!important}html[data-theme=dark] .field input[readonly],html[data-theme=dark] .field input:disabled,html[data-theme=dark] .field select:disabled{background:var(--surface-2)!important;color:var(--text-muted)!important}html[data-theme=dark] .related-table th,html[data-theme=dark] .grid thead th,html[data-theme=dark] table thead th{background:var(--surface-2)!important;color:var(--text-muted)!important;border-color:var(--border)!important}html[data-theme=dark] .related-table td,html[data-theme=dark] .grid td,html[data-theme=dark] table td{border-color:var(--border)!important;color:var(--text-soft)!important}html[data-theme=dark] .related-table .btn-edit,html[data-theme=dark] .related-table .btn-save,html[data-theme=dark] .related-table .btn-cancel,html[data-theme=dark] .btn-edit,html[data-theme=dark] .page-btn{background:var(--surface-2)!important;border-color:var(--border)!important;color:var(--text-soft)!important}html[data-theme=dark] .related-table .related-cell-edit input,html[data-theme=dark] .related-table .related-cell-edit select{background:var(--bg)!important;border-color:var(--border)!important;color:var(--text)!important}html[data-theme=dark] .empty-state,html[data-theme=dark] .related-empty,html[data-theme=dark] .pagination-info{color:var(--text-muted)!important}html[data-theme=dark] .section-title{color:var(--primary)!important;border-color:var(--border)!important}html[data-theme=dark] .sidebar{background:var(--sidebar-bg)!important;border-color:var(--border)!important;box-shadow:4px 0 24px var(--shadow)!important}html[data-theme=dark] .sidebar-header,html[data-theme=dark] .sidebar-footer{border-color:var(--border)!important}html[data-theme=dark] .topbar{background:var(--surface)!important;border-color:var(--border)!important}html[data-theme=dark] .nav-group-toggle,html[data-theme=dark] .nav-item{color:var(--text-soft)!important}html[data-theme=dark] .nav-group-toggle:hover,html[data-theme=dark] .nav-item:hover,html[data-theme=dark] .nav-item.active,html[data-theme=dark] .nav-item-direct.active{background:#169af11f!important;color:var(--primary)!important}html[data-theme=dark] .user-avatar{background:var(--surface-2)!important;color:var(--text)!important}html[data-theme=dark] .btn-logout{color:var(--text-soft)!important;border-color:var(--border)!important}html[data-theme=dark] .iframe-wrap,html[data-theme=dark] .main{background:var(--bg)!important}html[data-theme=dark] .theme-toggle{background:var(--surface-2);border-color:var(--border);color:var(--text-soft)}html[data-theme=dark] .login-card,html[data-theme=dark] .auth-card{background:var(--surface)!important;border-color:var(--border)!important}
