:root,[data-theme="light"]{--theme-bg-primary:#ffffff;--theme-bg-secondary:#f8f9fa;--theme-bg-tertiary:#e9ecef;--theme-bg-hover:rgba(0,0,0,0.04);--theme-bg-active:rgba(0,0,0,0.08);--theme-text-primary:var(--text-color-light,#212529);--theme-text-secondary:var(--text-muted-light,#6c757d);--theme-text-muted:#9ca3af;--theme-text-inverse:#ffffff;--theme-btn-save:var(--button-save-light,#28a745);--theme-btn-save-hover:var(--button-save-hover-light,#218838);--theme-border-color:#dee2e6;--theme-border-light:#e9ecef;--theme-border-dark:#ced4da;--theme-shadow-sm:0 1px 2px rgba(0,0,0,0.05);--theme-shadow:0 2px 8px rgba(0,0,0,0.1);--theme-shadow-lg:0 10px 40px rgba(0,0,0,0.15);--theme-sidebar-bg:#f8f9fa;--theme-sidebar-text:#212529;--theme-sidebar-hover:rgba(0,0,0,0.05);--theme-sidebar-active-bg:var(--backend-primary,#007bff);--theme-sidebar-active-text:#ffffff;--theme-card-bg:#ffffff;--theme-card-border:#dee2e6;--theme-input-bg:#ffffff;--theme-input-border:#dee2e6;--theme-input-focus-border:var(--backend-primary,#007bff);--theme-input-placeholder:#9ca3af;--theme-table-header-bg:#f8f9fa;--theme-table-row-hover:rgba(0,0,0,0.02);--theme-table-border:#dee2e6;--theme-message-success-bg:#d4edda;--theme-message-success-text:#155724;--theme-message-error-bg:#f8d7da;--theme-message-error-text:#721c24;--theme-message-warning-bg:#fff3cd;--theme-message-warning-text:#856404;--theme-message-info-bg:#d1ecf1;--theme-message-info-text:#0c5460;--theme-code-bg:#f8f9fa;--theme-code-text:#212529;--theme-scrollbar-track:#f1f1f1;--theme-scrollbar-thumb:#c1c1c1;--theme-scrollbar-thumb-hover:#a8a8a8}[data-theme="dark"]{--theme-bg-primary:#121212;--theme-bg-secondary:#1e1e1e;--theme-bg-tertiary:#2d2d2d;--theme-bg-hover:rgba(255,255,255,0.05);--theme-bg-active:rgba(255,255,255,0.1);--theme-text-primary:var(--text-color-dark,#e4e4e7);--theme-text-secondary:var(--text-muted-dark,#a1a1aa);--theme-text-muted:#71717a;--theme-text-inverse:#121212;--theme-btn-save:var(--button-save-dark,#22c55e);--theme-btn-save-hover:var(--button-save-hover-dark,#16a34a);--theme-border-color:#3f3f3f;--theme-border-light:#2a2a2a;--theme-border-dark:#4a4a4a;--theme-shadow-sm:0 1px 2px rgba(0,0,0,0.4);--theme-shadow:0 2px 8px rgba(0,0,0,0.5);--theme-shadow-lg:0 10px 40px rgba(0,0,0,0.6);--theme-sidebar-bg:#1a1a1a;--theme-sidebar-text:#e4e4e7;--theme-sidebar-hover:rgba(255,255,255,0.08);--theme-sidebar-active-bg:var(--backend-primary,#007bff);--theme-sidebar-active-text:#ffffff;--theme-card-bg:#1e1e1e;--theme-card-border:#3f3f3f;--theme-input-bg:#2a2a2a;--theme-input-border:#3f3f3f;--theme-input-focus-border:var(--backend-primary,#007bff);--theme-input-placeholder:#71717a;--theme-table-header-bg:#252525;--theme-table-row-hover:rgba(255,255,255,0.03);--theme-table-border:#3f3f3f;--theme-message-success-bg:rgba(40,167,69,0.2);--theme-message-success-text:#86efac;--theme-message-error-bg:rgba(220,53,69,0.2);--theme-message-error-text:#fca5a5;--theme-message-warning-bg:rgba(255,193,7,0.2);--theme-message-warning-text:#fde047;--theme-message-info-bg:rgba(23,162,184,0.2);--theme-message-info-text:#67e8f9;--theme-code-bg:#2a2a2a;--theme-code-text:#e4e4e7;--theme-scrollbar-track:#1e1e1e;--theme-scrollbar-thumb:#4a4a4a;--theme-scrollbar-thumb-hover:#5a5a5a;--light:#2a2a2a;--white:#1e1e1e;--dark:#e4e4e7;--border-color:#3f3f3f;--text-secondary:#a1a1aa;--text-primary:#e4e4e7}body{background-color:var(--theme-bg-primary);color:var(--theme-text-primary)}[data-theme="dark"] a{color:var(--backend-link,#60a5fa)}[data-theme="dark"] a:hover{color:var(--backend-primary,#93c5fd)}[data-theme="dark"] .site-header{background:var(--theme-bg-secondary);border-bottom-color:var(--theme-border-color)}[data-theme="dark"] .dashboard__sidebar{background:var(--theme-sidebar-bg);border-right-color:var(--theme-border-color)}[data-theme="dark"] .dashboard__main{background:var(--theme-bg-primary)}[data-theme="dark"] .dashboard__nav-item{color:var(--theme-sidebar-text)}[data-theme="dark"] .dashboard__nav-item:hover{background:var(--theme-sidebar-hover)}[data-theme="dark"] .dashboard__nav-section-title{color:var(--theme-text-muted)}[data-theme="dark"] .dashboard__footer{background:var(--theme-bg-secondary);border-top-color:var(--theme-border-color);color:var(--theme-text-secondary)}[data-theme="dark"] .card,[data-theme="dark"] .sidebar-card,[data-theme="dark"] .profile-section,[data-theme="dark"] .settings-section,[data-theme="dark"] .form-section{background:var(--theme-card-bg);border-color:var(--theme-card-border)}[data-theme="dark"] .card-header,[data-theme="dark"] .sidebar-card-header{background:var(--theme-bg-secondary);border-bottom-color:var(--theme-border-color)}[data-theme="dark"] .form-control,[data-theme="dark"] .form-select,[data-theme="dark"] input,[data-theme="dark"] select,[data-theme="dark"] textarea{background-color:var(--theme-input-bg);border-color:var(--theme-input-border);color:var(--theme-text-primary)}[data-theme="dark"] .form-control:focus,[data-theme="dark"] .form-select:focus,[data-theme="dark"] input:focus,[data-theme="dark"] select:focus,[data-theme="dark"] textarea:focus{border-color:var(--theme-input-focus-border);background-color:var(--theme-input-bg);color:var(--theme-text-primary)}[data-theme="dark"] .form-control::placeholder,[data-theme="dark"] input::placeholder,[data-theme="dark"] textarea::placeholder{color:var(--theme-input-placeholder)}[data-theme="dark"] label,[data-theme="dark"] .form-label{color:var(--theme-text-primary)}[data-theme="dark"] .form-help,[data-theme="dark"] .form-switch-info{color:var(--theme-text-secondary)}[data-theme="dark"] .btn-outline{background:transparent;border-color:var(--theme-border-color);color:var(--theme-text-primary)}[data-theme="dark"] .btn-outline:hover{background:var(--theme-bg-hover)}[data-theme="dark"] .btn-danger{border-color:var(--backend-danger);color:var(--backend-danger)}[data-theme="dark"] .data-table th{background:var(--theme-table-header-bg);color:var(--theme-text-secondary)}[data-theme="dark"] .data-table td{border-bottom-color:var(--theme-table-border)}[data-theme="dark"] .data-table tbody tr:hover{background:var(--theme-table-row-hover)}[data-theme="dark"] .page-header{background:var(--theme-card-bg);box-shadow:var(--theme-shadow);border-left-color:var(--backend-primary,#007bff)}[data-theme="dark"] .page-header h1{color:var(--theme-text-primary)}[data-theme="dark"] .breadcrumb-nav{background:var(--theme-card-bg);box-shadow:var(--theme-shadow-sm)}[data-theme="dark"] .breadcrumb-item.active{color:var(--theme-text-secondary)}[data-theme="dark"] .dashboard__messages .message{background:var(--theme-card-bg)}[data-theme="dark"] .dashboard__messages .message-success{background:var(--theme-message-success-bg);color:var(--theme-message-success-text)}[data-theme="dark"] .dashboard__messages .message-error,[data-theme="dark"] .dashboard__messages .message-danger{background:var(--theme-message-error-bg);color:var(--theme-message-error-text)}[data-theme="dark"] .dashboard__messages .message-warning{background:var(--theme-message-warning-bg);color:var(--theme-message-warning-text)}[data-theme="dark"] .dashboard__messages .message-info{background:var(--theme-message-info-bg);color:var(--theme-message-info-text)}[data-theme="dark"] .dashboard__welcome{background:linear-gradient(135deg,var(--backend-primary,#007bff),var(--backend-primary-dark,#0056b3))}[data-theme="dark"] .stat-card{background:var(--theme-card-bg)}[data-theme="dark"] .quick-action{background:var(--theme-card-bg);border-color:var(--theme-border-color);color:var(--theme-text-primary)}[data-theme="dark"] .quick-action:hover{box-shadow:var(--theme-shadow);border-color:var(--backend-primary,#007bff)}[data-theme="dark"] .security-item{background:var(--theme-card-bg)}[data-theme="dark"] .security-option{background:var(--theme-card-bg);border-color:var(--theme-border-color)}[data-theme="dark"] .info-item{background:var(--theme-card-bg);border-color:var(--theme-border-color)}[data-theme="dark"] .info-label{color:var(--theme-text-secondary)}[data-theme="dark"] .badge{background:var(--theme-bg-tertiary);color:var(--theme-text-secondary)}[data-theme="dark"] .status-badge--active{background:rgba(40,167,69,0.2);color:#86efac}[data-theme="dark"] .status-badge--inactive{background:rgba(220,53,69,0.2);color:#fca5a5}[data-theme="dark"] .form-switch input[type="checkbox"]{background:var(--theme-border-dark)}[data-theme="dark"] .form-group--switch{background:var(--theme-card-bg);border-color:var(--theme-border-color)}[data-theme="dark"] .custom-select-trigger{background:var(--theme-input-bg);border-color:var(--theme-input-border);color:var(--theme-text-primary)}[data-theme="dark"] .custom-select-dropdown{background:var(--theme-card-bg);border-color:var(--theme-border-color)}[data-theme="dark"] .custom-select-option:hover{background:var(--theme-bg-hover)}[data-theme="dark"] .custom-select-option.selected{background:rgba(0,123,255,0.15)}[data-theme="dark"] .language-dropdown{background:var(--theme-card-bg);border-color:var(--theme-border-color)}[data-theme="dark"] .language-dropdown-header{border-bottom-color:var(--theme-border-color);color:var(--theme-text-secondary)}[data-theme="dark"] .language-option{color:var(--theme-text-primary)}[data-theme="dark"] .language-option:hover{background:var(--theme-bg-hover)}[data-theme="dark"] .file-upload-area{background:var(--theme-card-bg);border-color:var(--theme-border-color)}[data-theme="dark"] .file-upload-area:hover{border-color:var(--backend-primary,#007bff);background:rgba(0,123,255,0.05)}[data-theme="dark"] .file-upload-preview{background:var(--theme-card-bg);border-color:var(--theme-border-color)}[data-theme="dark"] .api-key-created{background:var(--theme-message-success-bg);border-color:rgba(40,167,69,0.3)}[data-theme="dark"] .api-key-created h3{color:var(--theme-message-success-text)}[data-theme="dark"] .api-key-display{background:var(--theme-input-bg)}[data-theme="dark"] .dashboard__nav-subitems{background:rgba(255,255,255,0.02);border-left-color:var(--theme-border-color)}[data-theme="dark"] .dashboard__nav-subitem{color:var(--theme-text-secondary)}[data-theme="dark"] .dashboard__nav-subitem:hover{color:var(--theme-text-primary);background:var(--theme-bg-hover)}[data-theme="dark"] .dashboard__nav-subitem--active{color:var(--backend-primary,#60a5fa);border-left-color:var(--backend-primary,#60a5fa)}[data-theme="dark"] .dashboard__nav-section--highlight{border-top-color:var(--theme-border-color)}[data-theme="dark"] .dashboard__nav-item--highlight{background:linear-gradient(135deg,rgba(40,167,69,0.12) 0%,rgba(40,167,69,0.06) 100%)}[data-theme="dark"] .dashboard__nav-item--highlight:hover{background:linear-gradient(135deg,rgba(40,167,69,0.2) 0%,rgba(40,167,69,0.1) 100%)}[data-theme="dark"] ::-webkit-scrollbar{width:8px;height:8px}[data-theme="dark"] ::-webkit-scrollbar-track{background:var(--theme-scrollbar-track)}[data-theme="dark"] ::-webkit-scrollbar-thumb{background:var(--theme-scrollbar-thumb);border-radius:4px}[data-theme="dark"] ::-webkit-scrollbar-thumb:hover{background:var(--theme-scrollbar-thumb-hover)}.theme-selector{display:flex;gap:0.5rem;padding:0.25rem;background:var(--theme-input-bg);border:1px solid var(--theme-border-color);border-radius:var(--radius,8px)}.theme-selector__option{display:flex;align-items:center;justify-content:center;gap:0.5rem;padding:0.5rem 1rem;border:none;border-radius:calc(var(--radius,8px) - 4px);background:transparent;color:var(--theme-text-secondary);cursor:pointer;transition:all 0.2s ease;font-size:0.875rem;font-weight:500}.theme-selector__option:hover{background:var(--theme-bg-hover);color:var(--theme-text-primary)}.theme-selector__option.active{background:var(--backend-primary,#007bff);color:white}.theme-selector__option svg,.theme-selector__option i{font-size:1rem}.theme-toggle-btn{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:0;border:1px solid var(--theme-border-color);border-radius:var(--radius,8px);background:transparent;color:var(--theme-text-secondary);cursor:pointer;transition:all 0.2s ease}.theme-toggle-btn:hover{background:var(--theme-bg-hover);color:var(--theme-text-primary);border-color:var(--theme-border-dark)}.theme-toggle-btn svg{width:20px;height:20px}[data-theme="light"] .theme-icon-dark,[data-theme="dark"] .theme-icon-light{display:none}[data-theme="light"] .theme-icon-light,[data-theme="dark"] .theme-icon-dark{display:block}.btn-success,.btn-save{background-color:var(--theme-btn-save);border-color:var(--theme-btn-save)}.btn-success:hover,.btn-save:hover{background-color:var(--theme-btn-save-hover);border-color:var(--theme-btn-save-hover)}.btn-success:focus,.btn-save:focus{background-color:var(--theme-btn-save-hover);border-color:var(--theme-btn-save-hover);box-shadow:0 0 0 0.25rem rgba(40,167,69,0.25)}[data-theme="dark"] .btn-success,[data-theme="dark"] .btn-save{background-color:var(--theme-btn-save);border-color:var(--theme-btn-save);color:#000}[data-theme="dark"] .btn-success:hover,[data-theme="dark"] .btn-save:hover{background-color:var(--theme-btn-save-hover);border-color:var(--theme-btn-save-hover)}[data-theme="dark"] .btn-primary{background-color:var(--backend-primary,#007bff);border-color:var(--backend-primary,#007bff);color:#ffffff!important}[data-theme="dark"] .btn-primary:hover{background-color:var(--backend-primary-dark,#0056b3);border-color:var(--backend-primary-dark,#0056b3);color:#ffffff!important}html[data-theme="dark"] .language-selector-display,[data-theme="dark"] .language-selector-display{background:var(--theme-input-bg,#2a2a2a)!important;border-color:var(--theme-input-border,#3f3f3f)!important;color:var(--theme-text-primary,#e4e4e7)!important}html[data-theme="dark"] .language-selector-dropdown,[data-theme="dark"] .language-selector-dropdown{background:var(--theme-card-bg,#1e1e1e)!important;border-color:var(--theme-border-color,#3f3f3f)!important}html[data-theme="dark"] .language-option,[data-theme="dark"] .language-option{background:var(--theme-card-bg,#1e1e1e)!important;color:var(--theme-text-primary,#e4e4e7)!important}html[data-theme="dark"] .language-option:hover,[data-theme="dark"] .language-option:hover{background:var(--theme-bg-hover,rgba(255,255,255,0.05))!important}html[data-theme="dark"] .language-selector-search,[data-theme="dark"] .language-selector-search{background:var(--theme-bg-secondary,#1e1e1e)!important;border-bottom-color:var(--theme-border-color,#3f3f3f)!important}html[data-theme="dark"] .language-selector-search input,[data-theme="dark"] .language-selector-search input{background:var(--theme-input-bg,#2a2a2a)!important;border-color:var(--theme-input-border,#3f3f3f)!important;color:var(--theme-text-primary,#e4e4e7)!important}html[data-theme="dark"] .language-option-group,[data-theme="dark"] .language-option-group{background:var(--theme-bg-secondary,#1e1e1e)!important;border-bottom-color:var(--theme-border-color,#3f3f3f)!important;color:var(--theme-text-muted,#71717a)!important}html[data-theme="dark"] .timezone-selector-display,[data-theme="dark"] .timezone-selector-display{background:var(--theme-input-bg,#2a2a2a)!important;border-color:var(--theme-input-border,#3f3f3f)!important;color:var(--theme-text-primary,#e4e4e7)!important}html[data-theme="dark"] .timezone-selector-dropdown,[data-theme="dark"] .timezone-selector-dropdown{background:var(--theme-card-bg,#1e1e1e)!important;border-color:var(--theme-border-color,#3f3f3f)!important}html[data-theme="dark"] .timezone-option,[data-theme="dark"] .timezone-option{background:var(--theme-card-bg,#1e1e1e)!important;color:var(--theme-text-primary,#e4e4e7)!important}html[data-theme="dark"] .timezone-option:hover,[data-theme="dark"] .timezone-option:hover{background:var(--theme-bg-hover,rgba(255,255,255,0.05))!important}html[data-theme="dark"] .timezone-selector-search,[data-theme="dark"] .timezone-selector-search{background:var(--theme-bg-secondary,#1e1e1e)!important;border-bottom-color:var(--theme-border-color,#3f3f3f)!important}html[data-theme="dark"] .timezone-selector-search input,[data-theme="dark"] .timezone-selector-search input{background:var(--theme-input-bg,#2a2a2a)!important;border-color:var(--theme-input-border,#3f3f3f)!important;color:var(--theme-text-primary,#e4e4e7)!important}html[data-theme="dark"] .timezone-option-group,[data-theme="dark"] .timezone-option-group{background:var(--theme-bg-secondary,#1e1e1e)!important;border-bottom-color:var(--theme-border-color,#3f3f3f)!important;color:var(--theme-text-muted,#71717a)!important}html[data-theme="dark"] .dateformat-selector-display,[data-theme="dark"] .dateformat-selector-display{background:var(--theme-input-bg,#2a2a2a)!important;border-color:var(--theme-input-border,#3f3f3f)!important;color:var(--theme-text-primary,#e4e4e7)!important}html[data-theme="dark"] .dateformat-selector-dropdown,[data-theme="dark"] .dateformat-selector-dropdown{background:var(--theme-card-bg,#1e1e1e)!important;border-color:var(--theme-border-color,#3f3f3f)!important}html[data-theme="dark"] .dateformat-option,[data-theme="dark"] .dateformat-option{background:var(--theme-card-bg,#1e1e1e)!important;color:var(--theme-text-primary,#e4e4e7)!important}html[data-theme="dark"] .dateformat-option:hover,[data-theme="dark"] .dateformat-option:hover{background:var(--theme-bg-hover,rgba(255,255,255,0.05))!important}html:not([data-theme]){visibility:hidden}html[data-theme]{visibility:visible}