:root { --bg-page: #f8fafc; --bg-surface: #ffffff; --bg-elevated: #ffffff; --bg-input: #ffffff; --bg-hover: #f1f5f9; --bg-active: #e0e7ff; --bg-selected: #c7d2fe; --text-primary: #0f172a; --text-secondary: #334155; --text-muted: #64748b; --text-inverse: #ffffff; --text-on-accent: #ffffff; --border-subtle: #e2e8f0; --border-default: #cbd5e1; --border-focus: #4f46e5; --accent-primary: #4f46e5; --accent-hover: #4338ca; --accent-light: #818cf8; --accent-glow: rgba(79,70,229,0.2); --success: #059669; --success-bg: rgba(5,150,105,0.1); --success-text: #065f46; --warning: #d97706; --warning-bg: rgba(217,119,6,0.1); --warning-text: #92400e; --danger: #dc2626; --danger-bg: rgba(220,38,38,0.1); --danger-text: #991b1b; --info: #0284c7; --info-bg: rgba(2,132,199,0.1); --info-text: #0c4a6e; --shadow-sm: 0 1px 2px 0 rgb(15 23 42/0.05); --shadow-md: 0 4px 6px -1px rgb(15 23 42/0.1), 0 2px 4px -2px rgb(15 23 42/0.06); --shadow-lg: 0 10px 15px -3px rgb(15 23 42/0.1), 0 4px 6px -4px rgb(15 23 42/0.08); --shadow-glow: 0 0 0 4px var(--accent-glow); --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --transition-fast: 120ms ease; --transition-normal: 200ms ease; }
[data-theme="dark"] { --bg-page: #0a0e14; --bg-surface: #111827; --bg-elevated: #1e293b; --bg-input: #1f2937; --bg-hover: #334155; --bg-active: #3730a3; --bg-selected: #4338ca; --text-primary: #f8fafc; --text-secondary: #cbd5e1; --text-muted: #94a3b8; --text-inverse: #0f172a; --text-on-accent: #0f172a; --border-subtle: #334155; --border-default: #475569; --border-focus: #818cf8; --accent-primary: #6366f1; --accent-hover: #818cf8; --accent-light: #a5b4fc; --accent-glow: rgba(99,102,241,0.3); --success: #10b981; --success-bg: rgba(16,185,129,0.15); --success-text: #ecfdf5; --warning: #f59e0b; --warning-bg: rgba(245,158,11,0.15); --warning-text: #fffbeb; --danger: #ef4444; --danger-bg: rgba(239,68,68,0.15); --danger-text: #fef2f2; --info: #0ea5e9; --info-bg: rgba(14,165,233,0.15); --info-text: #f0f9ff; --shadow-sm: 0 1px 2px 0 rgb(0 0 0/0.5); --shadow-md: 0 4px 6px -1px rgb(0 0 0/0.6), 0 2px 4px -2px rgb(0 0 0/0.5); --shadow-lg: 0 10px 15px -3px rgb(0 0 0/0.7), 0 4px 6px -4px rgb(0 0 0/0.6); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { background: var(--bg-page); color: var(--text-primary); font-family: 'Inter', sans-serif; font-size: 0.9375rem; line-height: 1.6; min-height: 100vh; transition: background var(--transition-normal), color var(--transition-normal); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-surface); }
::-webkit-scrollbar-thumb { background: var(--border-default); border-radius: 6px; border: 2px solid var(--bg-surface); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }
.card { background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); box-shadow: var(--shadow-md); margin-bottom: 1.5rem; transition: all var(--transition-fast); overflow: hidden; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: var(--accent-primary); }
.card-header { background: linear-gradient(135deg, var(--accent-primary), var(--accent-hover)); color: var(--text-on-accent); padding: 1rem 1.5rem; border-bottom: 1px solid var(--border-subtle); font-weight: 600; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.card-body { padding: 1.5rem; }
.form-label { color: var(--text-primary); font-weight: 500; margin-bottom: 0.5rem; font-size: 0.875rem; display: block; }
.form-control, .form-select { background: var(--bg-input); border: 1px solid var(--border-default); color: var(--text-primary); border-radius: var(--radius-md); padding: 0.625rem 1rem; font-size: 0.9375rem; width: 100%; transition: border-color var(--transition-fast), box-shadow var(--transition-fast); }
.form-control::placeholder { color: var(--text-muted); }
.form-control:focus, .form-select:focus { background: var(--bg-input); border-color: var(--border-focus); box-shadow: var(--shadow-glow); outline: none; }
.form-text { color: var(--text-muted); font-size: 0.8125rem; margin-top: 0.25rem; }
.form-check-input { width: 1.25rem; height: 1.25rem; border: 1.5px solid var(--border-default); background: var(--bg-input); cursor: pointer; transition: all var(--transition-fast); }
.form-check-input:checked { background-color: var(--accent-primary); border-color: var(--accent-primary); }
.form-check-input:focus { border-color: var(--border-focus); box-shadow: var(--shadow-glow); }
.form-check-label { color: var(--text-primary); cursor: pointer; margin-left: 0.25rem; }
.modern-switch { position: relative; display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; padding: 4px 0; }
.modern-switch input[type="checkbox"] { position: absolute; opacity: 0; width: 0; height: 0; pointer-events: none; }
.modern-switch .switch-track { position: relative; width: 52px; height: 28px; background: var(--border-default); border-radius: 999px; transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1); flex-shrink: 0; overflow: hidden; }
.modern-switch .switch-track::before { content: ''; position: absolute; inset: 0; background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-hover) 100%); opacity: 0; transition: opacity 0.35s ease; }
.modern-switch .switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; background: #ffffff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.25), 0 1px 3px rgba(0,0,0,0.15); transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); z-index: 2; }
.modern-switch .switch-thumb::after { content: ''; position: absolute; top: 50%; left: 50%; width: 8px; height: 8px; background: var(--border-default); border-radius: 50%; transform: translate(-50%, -50%); transition: all 0.35s ease; }
.modern-switch input:checked + .switch-track { box-shadow: 0 0 0 3px var(--accent-glow), 0 2px 8px rgba(79,70,229,0.3); }
.modern-switch input:checked + .switch-track::before { opacity: 1; }
.modern-switch input:checked + .switch-track .switch-thumb { transform: translateX(24px); background: #ffffff; }
.modern-switch input:checked + .switch-track .switch-thumb::after { background: var(--accent-primary); width: 6px; height: 6px; }
.modern-switch:hover .switch-track { filter: brightness(0.97); }
.modern-switch:hover input:checked + .switch-track { filter: brightness(1.05); }
.modern-switch input:focus-visible + .switch-track { box-shadow: 0 0 0 3px var(--accent-glow); }
.modern-switch:active .switch-thumb { width: 26px; }
.modern-switch:active input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.modern-switch .switch-label { color: var(--text-primary); font-weight: 500; font-size: 0.9rem; line-height: 1.4; flex: 1; }
.modern-switch .switch-hint { display: block; font-size: 0.75rem; color: var(--text-muted); font-weight: 400; margin-top: 2px; }
.simple-pagination { margin-top: 1.5rem; padding: 0; }
.simple-pagination .pagination-wrapper { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); }
.simple-pagination .page-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 20px; background: var(--bg-input); color: var(--text-primary); border: 1px solid var(--border-default); border-radius: var(--radius-md); font-size: 0.875rem; font-weight: 600; text-decoration: none; transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1); cursor: pointer; white-space: nowrap; font-family: inherit; }
.simple-pagination .page-btn svg { width: 16px; height: 16px; transition: transform 0.25s ease; flex-shrink: 0; }
.simple-pagination .page-btn.prev:hover:not(.disabled) { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--text-on-accent); transform: translateX(-2px); box-shadow: 0 4px 12px rgba(79,70,229,0.25); }
.simple-pagination .page-btn.prev:hover:not(.disabled) svg { transform: translateX(-3px); }
.simple-pagination .page-btn.next:hover:not(.disabled) { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--text-on-accent); transform: translateX(2px); box-shadow: 0 4px 12px rgba(79,70,229,0.25); }
.simple-pagination .page-btn.next:hover:not(.disabled) svg { transform: translateX(3px); }
.simple-pagination .page-btn.disabled { opacity: 0.45; cursor: not-allowed; background: var(--bg-hover); color: var(--text-muted); }
.simple-pagination .page-info { display: flex; align-items: center; gap: 6px; font-size: 0.9rem; color: var(--text-secondary); font-weight: 500; padding: 8px 16px; background: var(--bg-hover); border-radius: var(--radius-md); }
.simple-pagination .page-current { font-size: 1rem; font-weight: 700; color: var(--accent-primary); min-width: 20px; text-align: center; }
.simple-pagination .page-sep { color: var(--text-muted); font-weight: 400; }
.simple-pagination .page-total { color: var(--text-muted); font-weight: 500; }
.btn { border-radius: var(--radius-md); padding: 0.625rem 1.25rem; font-weight: 500; font-size: 0.9375rem; transition: all var(--transition-fast); display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; cursor: pointer; border: 1px solid transparent; text-decoration: none; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-sm { padding: 0.375rem 0.875rem; font-size: 0.8125rem; }
.btn-primary { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--text-on-accent); }
.btn-primary:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-success { background: var(--success); border-color: var(--success); color: #ffffff; }
.btn-success:hover:not(:disabled) { filter: brightness(0.95); transform: translateY(-1px); }
.btn-warning { background: var(--warning); border-color: var(--warning); color: #0f172a; font-weight: 600; }
.btn-warning:hover:not(:disabled) { filter: brightness(0.95); transform: translateY(-1px); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #ffffff; }
.btn-danger:hover:not(:disabled) { filter: brightness(0.95); transform: translateY(-1px); }
.btn-secondary { background: var(--bg-hover); border-color: var(--border-default); color: var(--text-primary); }
.btn-secondary:hover:not(:disabled) { background: var(--bg-active); border-color: var(--border-focus); }
.btn-outline-primary { background: transparent; border-color: var(--accent-primary); color: var(--accent-primary); }
.btn-outline-primary:hover:not(:disabled) { background: var(--accent-primary); color: var(--text-on-accent); }
.btn-outline-secondary { background: transparent; border-color: var(--border-default); color: var(--text-secondary); }
.btn-outline-secondary:hover:not(:disabled) { background: var(--bg-hover); border-color: var(--border-focus); }
.btn-group-sm > .btn { border-radius: var(--radius-sm) !important; }
.nav-tabs { border-bottom: 2px solid var(--border-subtle); gap: 0.25rem; flex-wrap: wrap; }
.nav-tabs .nav-link { color: var(--text-secondary); font-weight: 500; border: none; border-radius: var(--radius-md) var(--radius-md) 0 0; padding: 0.75rem 1.25rem; margin-bottom: -2px; transition: all var(--transition-fast); display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.nav-tabs .nav-link:hover { color: var(--accent-primary); background: var(--bg-hover); }
.nav-tabs .nav-link.active { color: var(--accent-primary); background: var(--bg-elevated); border-bottom: 2px solid var(--accent-primary); font-weight: 600; position: relative; }
.table { color: var(--text-primary); margin-bottom: 0; --bs-table-bg: transparent; --bs-table-striped-bg: var(--bg-hover); --bs-table-hover-bg: var(--bg-active); }
.table thead th { background: var(--bg-surface); border-bottom: 2px solid var(--border-subtle); color: var(--text-muted); font-weight: 600; text-transform: uppercase; font-size: 0.75rem; letter-spacing: 0.05em; padding: 1rem; white-space: nowrap; }
.table tbody td { border-color: var(--border-subtle); padding: 1rem; vertical-align: middle; color: var(--text-primary); }
.table-hover tbody tr:hover { background: var(--bg-active); }
.dataTables_wrapper { padding: 0.5rem 0; }
.dataTables_wrapper .dataTables_filter { margin-bottom: 1rem; }
.dataTables_wrapper .dataTables_filter label { color: var(--text-secondary); font-weight: 500; }
.dataTables_wrapper .dataTables_filter input { background: var(--bg-input); border: 1px solid var(--border-default); color: var(--text-primary); border-radius: var(--radius-md); padding: 0.5rem 1rem; margin-left: 0.5rem; min-width: 200px; }
.dataTables_wrapper .dataTables_filter input:focus { border-color: var(--border-focus); box-shadow: var(--shadow-glow); outline: none; }
.dataTables_wrapper .dataTables_length select { background: var(--bg-input); border: 1px solid var(--border-default); color: var(--text-primary); border-radius: var(--radius-md); padding: 0.375rem 2rem 0.375rem 1rem; }
.dataTables_wrapper .dataTables_paginate .paginate_button { color: var(--text-primary) !important; border: 1px solid var(--border-default) !important; background: var(--bg-input) !important; border-radius: var(--radius-sm) !important; margin: 0 2px; padding: 0.375rem 0.75rem !important; transition: all var(--transition-fast); font-weight: 500; }
.dataTables_wrapper .dataTables_paginate .paginate_button:hover:not(.disabled) { background: var(--bg-hover) !important; border-color: var(--border-focus) !important; color: var(--accent-primary) !important; }
.dataTables_wrapper .dataTables_paginate .paginate_button.current { background: var(--accent-primary) !important; color: var(--text-on-accent) !important; border-color: var(--accent-primary) !important; }
.dataTables_wrapper .dataTables_info { color: var(--text-muted); font-size: 0.875rem; padding-top: 1rem; }
.badge { padding: 0.45em 0.75em; font-weight: 600; border-radius: 6px; font-size: 0.75rem; letter-spacing: 0.025em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 0.25rem; }
.badge.bg-success { background: var(--success) !important; color: #fff; }
.badge.bg-secondary { background: var(--text-muted) !important; color: var(--text-inverse); }
.badge.bg-info { background: var(--info) !important; color: #fff; }
.badge.bg-warning { background: var(--warning) !important; color: #0f172a; }
.alert { border: none; border-radius: var(--radius-md); padding: 1rem 1.25rem; margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 0.75rem; }
.alert i { margin-top: 0.125rem; flex-shrink: 0; }
.alert-success { background: var(--success-bg); color: var(--success-text); border-left: 4px solid var(--success); }
.alert-error { background: var(--danger-bg); color: var(--danger-text); border-left: 4px solid var(--danger); }
.theme-toggle { position: fixed; bottom: 1.25rem; left: 1.25rem; z-index: 1050; background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-md); transition: all var(--transition-normal); padding: 0; }
.theme-toggle:hover { transform: rotate(15deg) scale(1.05); border-color: var(--accent-primary); box-shadow: var(--shadow-lg); }
.theme-toggle i { font-size: 1.25rem; color: var(--text-primary); }
[data-theme="dark"] .theme-toggle .fa-sun { display: none; }
[data-theme="light"] .theme-toggle .fa-moon { display: none; }
.back-to-top { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 1049; background: var(--accent-primary); border: none; border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-md); transition: all var(--transition-normal); padding: 0; opacity: 0; visibility: hidden; transform: translateY(20px); }
.back-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.back-to-top i { font-size: 1.25rem; color: #ffffff; }
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); }
.login-container { width: 100%; max-width: 1100px; background: #ffffff; border-radius: 24px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; display: flex; animation: fadeInUp 0.5s ease; }
.login-illustration { flex: 1; background: linear-gradient(135deg, #1e3a5f 0%, #2d5a87 50%, #3d7ab5 100%); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; min-height: 500px; }
.login-illustration::before { content: ''; position: absolute; top: -50%; left: -50%; width: 200%; height: 200%; background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px); background-size: 50px 50px; animation: waveMove 20s linear infinite; }
@keyframes waveMove { 0% { transform: translate(0, 0); } 100% { transform: translate(50px, 50px); } }
.illustration-content { position: relative; z-index: 1; text-align: center; color: #ffffff; padding: 2rem; }
.illustration-content img { max-width: 100%; height: auto; filter: drop-shadow(0 10px 30px rgba(0,0,0,0.3)); animation: surfFloat 3s ease-in-out infinite; }
@keyframes surfFloat { 0%, 100% { transform: translateY(0px) rotate(-5deg); } 50% { transform: translateY(-20px) rotate(-5deg); } }
.wave-decoration { position: absolute; bottom: 0; left: 0; right: 0; height: 100px; background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,112C672,96,768,96,864,112C960,128,1056,160,1152,160C1248,160,1344,128,1392,112L1440,96L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom; background-size: cover; }
.login-form-section { flex: 1; padding: 3rem; display: flex; flex-direction: column; justify-content: center; background: #ffffff; }
.login-header { text-align: center; margin-bottom: 2rem; }
.login-header h2 { color: #1e293b; font-size: 2rem; font-weight: 700; margin-bottom: 0.5rem; }
.login-header p { color: #64748b; font-size: 0.9375rem; }
.brand-icon { width: 80px; height: 80px; margin: 0 auto 1.5rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border-radius: 50%; display: flex; align-items: center; justify-content: center; overflow: hidden; box-shadow: 0 8px 32px rgba(102,126,234,0.3); }
.brand-icon img { width: 100%; height: 100%; object-fit: cover; }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
.login-form-section .form-label { color: #334155; font-weight: 500; margin-bottom: 0.5rem; font-size: 0.875rem; }
.login-form-section .form-control { background: #f8fafc; border: 2px solid #e2e8f0; color: #0f172a; border-radius: 12px; padding: 0.875rem 1rem; font-size: 0.9375rem; transition: all 0.2s ease; }
.login-form-section .form-control::placeholder { color: #94a3b8; }
.login-form-section .form-control:focus { background: #ffffff; border-color: #667eea; box-shadow: 0 0 0 4px rgba(102,126,234,0.1); outline: none; }
.login-form-section .position-relative { margin-bottom: 1.5rem; }
.login-form-section .pass-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); cursor: pointer; color: #94a3b8; z-index: 10; padding: 0.5rem; border-radius: 8px; display: flex; align-items: center; justify-content: center; width: 36px; height: 36px; transition: all 0.2s ease; background: transparent; border: none; }
.login-form-section .pass-toggle:hover { color: #667eea; background: rgba(102,126,234,0.1); }
.login-form-section .form-check { display: flex; align-items: center; margin-bottom: 1.5rem; }
.login-form-section .form-check-input { width: 1.1rem; height: 1.1rem; border: 2px solid #cbd5e1; background: #ffffff; cursor: pointer; transition: all 0.2s ease; margin-right: 0.5rem; border-radius: 6px; }
.login-form-section .form-check-input:checked { background-color: #667eea; border-color: #667eea; }
.login-form-section .form-check-label { color: #64748b; cursor: pointer; font-size: 0.875rem; }
.login-form-section .btn-login { width: 100%; padding: 1rem; background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); border: none; border-radius: 12px; color: #ffffff; font-weight: 600; font-size: 1rem; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 15px rgba(102,126,234,0.4); margin-top: 0.5rem; }
.login-form-section .btn-login:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(102,126,234,0.5); }
.login-form-section .btn-login:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.forgot-link { text-align: right; margin-bottom: 1.5rem; }
.forgot-link a { color: #667eea; text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: color 0.2s ease; }
.forgot-link a:hover { color: #764ba2; text-decoration: underline; }
.login-footer { text-align: center; margin-top: 2rem; padding-top: 2rem; border-top: 1px solid #e2e8f0; }
.login-footer p { color: #94a3b8; font-size: 0.8125rem; margin: 0; }
.ticker-preview { background: var(--bg-input); color: var(--text-primary); padding: 1rem; border-radius: var(--radius-md); font-family: 'Fira Code', monospace; white-space: pre-wrap; word-break: break-word; max-height: 200px; overflow-y: auto; font-size: 0.875rem; border: 1px solid var(--border-default); }
.ticker-preview::before { content: "📰 Preview: "; color: var(--text-muted); font-family: 'Inter', sans-serif; font-weight: 500; font-size: 0.8125rem; display: block; margin-bottom: 0.5rem; padding-bottom: 0.5rem; border-bottom: 1px dashed var(--border-subtle); }
.logo-preview-wrapper { text-align: center; padding: 1.25rem; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-lg); margin: 1rem 0; }
.logo-preview-label { color: var(--text-muted); font-size: 0.8125rem; margin-bottom: 1rem; display: block; font-weight: 500; }
.logo-preview-box { width: 180px; height: 120px; background: var(--bg-input); border: 2px dashed var(--border-default); border-radius: var(--radius-md); padding: 1rem; display: flex; align-items: center; justify-content: center; margin: 0 auto; }
.logo-preview-box img { max-width: 100%; max-height: 100%; object-fit: contain; }
.logo-preview-box .placeholder { color: var(--text-muted); font-size: 0.875rem; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 0.5rem; }
.logo-preview-box .placeholder i { font-size: 2rem; opacity: 0.5; }
.program-image-preview { width: 100%; max-width: 280px; aspect-ratio: 16/10; background: var(--bg-input); border: 2px dashed var(--border-default); border-radius: var(--radius-md); padding: 0.5rem; display: flex; align-items: center; justify-content: center; margin: 1rem 0; overflow: hidden; }
.program-image-preview:hover { border-color: var(--accent-primary); }
.program-image-preview img { max-width: 100%; max-height: 100%; object-fit: cover; border-radius: 6px; }
.program-image-preview .placeholder { color: var(--text-muted); font-size: 0.8125rem; text-align: center; }
.table-thumb { width: 80px; height: 50px; object-fit: cover; border-radius: 6px; border: 1px solid var(--border-subtle); transition: transform var(--transition-fast); }
.table-thumb:hover { transform: scale(1.5); z-index: 10; position: relative; box-shadow: var(--shadow-lg); }
.settings-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.25rem; }
.settings-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1.25rem; transition: all var(--transition-fast); }
.settings-card:hover { border-color: var(--accent-primary); box-shadow: var(--shadow-md); }
.settings-card h6 { color: var(--accent-primary); margin: 0 0 1.25rem 0; display: flex; align-items: center; gap: 0.5rem; font-weight: 600; font-size: 0.9375rem; padding-bottom: 0.75rem; border-bottom: 1px solid var(--border-subtle); }
.settings-card .modern-switch { margin-bottom: 0.85rem; }
.settings-card .modern-switch:last-of-type { margin-bottom: 0; }
.text-muted { color: var(--text-muted) !important; }
.text-danger { color: var(--danger) !important; }
.d-flex { display: flex !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 1rem !important; }
.align-items-center { align-items: center !important; }
.align-items-end { align-items: end !important; }
.justify-content-between { justify-content: space-between !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow-1 { flex-grow: 1 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.p-3 { padding: 1rem !important; }
.w-100 { width: 100% !important; }
.row { display: flex; flex-wrap: wrap; margin: 0 -0.5rem; }
.row.g-3 > * { padding: 0 0.5rem; margin-bottom: 1rem; }
.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-md-3 { flex: 0 0 100%; max-width: 100%; }
.col-md-4 { flex: 0 0 100%; max-width: 100%; }
.col-md-6 { flex: 0 0 100%; max-width: 100%; }
.col-md-8 { flex: 0 0 100%; max-width: 100%; }
.col-md { flex: 1 0 0%; }
.col-auto { flex: 0 0 auto; }
.col-lg-4 { flex: 0 0 100%; max-width: 100%; }
.schedule-section { background: var(--bg-surface); border: 2px solid var(--accent-primary); border-radius: var(--radius-md); padding: 1.25rem; margin-top: 1rem; transition: all var(--transition-fast); }
.schedule-section:hover { box-shadow: var(--shadow-md); border-color: var(--accent-hover); }
.schedule-section h6 { color: var(--accent-primary); font-weight: 600; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; }
.schedule-type-selector { display: flex; gap: 0.75rem; margin-bottom: 1rem; flex-wrap: wrap; }
.schedule-type-btn { flex: 1; min-width: 120px; padding: 0.75rem 1rem; background: var(--bg-input); border: 2px solid var(--border-default); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); text-align: center; font-weight: 500; color: var(--text-primary); }
.schedule-type-btn:hover { border-color: var(--accent-primary); background: var(--bg-hover); }
.schedule-type-btn.active { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--text-on-accent); box-shadow: var(--shadow-md); }
.schedule-type-btn i { display: block; font-size: 1.5rem; margin-bottom: 0.5rem; }
.schedule-input-group { background: var(--bg-input); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1rem; margin-top: 1rem; }
.schedule-input-group label { color: var(--text-primary); font-weight: 500; margin-bottom: 0.5rem; display: block; }
.day-selector { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-top: 0.5rem; }
.day-checkbox { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; background: var(--bg-input); border: 2px solid var(--border-default); border-radius: var(--radius-md); cursor: pointer; transition: all var(--transition-fast); font-weight: 600; color: var(--text-primary); }
.day-checkbox:hover { border-color: var(--accent-primary); background: var(--bg-hover); }
.day-checkbox input { display: none; }
.day-checkbox input:checked + span { color: var(--text-on-accent); }
.day-checkbox:has(input:checked) { background: var(--accent-primary); border-color: var(--accent-primary); color: var(--text-on-accent); box-shadow: var(--shadow-md); }
.schedule-preview { background: var(--bg-hover); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: 1rem; margin-top: 1rem; max-height: 200px; overflow-y: auto; }
.schedule-preview-item { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem; background: var(--bg-surface); border-radius: var(--radius-sm); margin-bottom: 0.5rem; font-size: 0.875rem; }
.schedule-preview-item:last-child { margin-bottom: 0; }
.schedule-preview-item i { color: var(--accent-primary); }
.schedule-badge { display: inline-flex; align-items: center; gap: 0.25rem; padding: 0.25rem 0.75rem; background: var(--accent-primary); color: var(--text-on-accent); border-radius: 999px; font-size: 0.75rem; font-weight: 600; }

/* Responsive Design */
@media (max-width: 992px) {
    .login-container { flex-direction: column; max-width: 600px; }
    .login-illustration { min-height: 300px; display: none; }
    .login-form-section { padding: 2rem; }
}

@media (max-width: 768px) { 
    .card-header { padding: 0.875rem 1rem; font-size: 0.9375rem; } 
    .card-body { padding: 1rem; } 
    .nav-tabs .nav-link { padding: 0.625rem 0.875rem; font-size: 0.875rem; } 
    .theme-toggle { bottom: 1rem; left: 1rem; width: 44px; height: 44px; } 
    .back-to-top { bottom: 1rem; right: 1rem; width: 44px; height: 44px; } 
    .logo-preview-box { width: 150px; height: 100px; } 
    .settings-grid { grid-template-columns: 1fr; } 
    .modern-switch .switch-track { width: 46px; height: 26px; } 
    .modern-switch .switch-thumb { width: 20px; height: 20px; } 
    .modern-switch input:checked + .switch-track .switch-thumb { transform: translateX(20px); } 
    .schedule-type-selector { flex-direction: column; } 
    .schedule-type-btn { min-width: 100%; }
    .login-form-section { padding: 1.5rem; }
    .login-header h2 { font-size: 1.5rem; }
}

@media (max-width: 576px) { 
    .dataTables_wrapper .dataTables_filter input { min-width: 150px; } 
    .login-header .brand-icon { width: 60px; height: 60px; }
    .login-container { border-radius: 16px; margin: 1rem; }
    .login-form-section { padding: 1.5rem 1rem; }
}

@media (max-width: 400px) { 
    .login-card .card-body { padding: 1.5rem; } 
    .login-header { padding: 2rem 1.5rem 1rem; }
    .theme-toggle { bottom: 0.75rem; left: 0.75rem; width: 40px; height: 40px; }
    .back-to-top { bottom: 0.75rem; right: 0.75rem; width: 40px; height: 40px; }
}

@media (max-width: 375px) {
    .login-header h2 { font-size: 1.25rem; }
    .login-form-section .form-control { padding: 0.75rem 0.875rem; font-size: 0.875rem; }
    .login-form-section .btn-login { padding: 0.875rem; font-size: 0.9375rem; }
}

@media print { .theme-toggle, .back-to-top, .no-print { display: none !important; } }

/* Landscape mobile */
@media (max-height: 600px) and (orientation: landscape) {
    .login-wrapper { padding: 1rem; }
    .login-container { max-height: 95vh; overflow-y: auto; }
    .login-illustration { display: none; }
    .login-form-section { padding: 1.5rem; }
    .login-header { margin-bottom: 1rem; }
    .login-form-section .position-relative { margin-bottom: 1rem; }
    .login-form-section .form-check { margin-bottom: 1rem; }
}