/* ========== Reset & Variables ========== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* Dark Theme (default) */
:root, [data-theme="dark"] {
    --bg: #0b0e11;
    --bg2: #1e2329;
    --bg3: #2b3139;
    --card: #252930;
    --border: #3a3f47;
    --text: #eaecef;
    --text2: #848e9c;
    --muted: #5e6673;
    --accent: #f0b90b;
    --accent2: #f8d12f;
    --accent-soft: rgba(240,185,11,0.12);
    --green: #0ecb81;
    --green-soft: rgba(14,203,129,0.12);
    --red: #f6465d;
    --red-soft: rgba(246,70,93,0.12);
    --blue: #1e9de0;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.3);
    --modal-bg: var(--modal-bg);
    --loader-bg: #0b0e11;
}

/* Light Theme */
[data-theme="light"] {
    --bg: #f5f5f5;
    --bg2: #ffffff;
    --bg3: #eaecef;
    --card: #ffffff;
    --border: #e0e3e8;
    --text: #1e2329;
    --text2: #5e6673;
    --muted: #9ca3af;
    --accent: #c99400;
    --accent2: #b38600;
    --accent-soft: rgba(201,148,0,0.1);
    --green: #03a66d;
    --green-soft: rgba(3,166,109,0.1);
    --red: #cf304a;
    --red-soft: rgba(207,48,74,0.1);
    --blue: #1573b6;
    --radius: 10px;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --modal-bg: rgba(0,0,0,0.4);
    --loader-bg: #f5f5f5;
}

/* Auto-detect browser preference */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #f5f5f5;
        --bg2: #ffffff;
        --bg3: #eaecef;
        --card: #ffffff;
        --border: #e0e3e8;
        --text: #1e2329;
        --text2: #5e6673;
        --muted: #9ca3af;
        --accent: #c99400;
        --accent2: #b38600;
        --accent-soft: rgba(201,148,0,0.1);
        --green: #03a66d;
        --green-soft: rgba(3,166,109,0.1);
        --red: #cf304a;
        --red-soft: rgba(207,48,74,0.1);
        --blue: #1573b6;
        --shadow: 0 2px 12px rgba(0,0,0,0.08);
        --modal-bg: rgba(0,0,0,0.4);
        --loader-bg: #f5f5f5;
    }
}

html { height: 100%; }

body {
    min-height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    font-size: 15px;
    line-height: 1.5;
    -webkit-tap-highlight-color: transparent;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

/* ========== Auth Pages ========== */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px 24px;
    width: 100%;
    max-width: 400px;
}

.auth-card .logo {
    text-align: center;
    margin-bottom: 8px;
}

.auth-card .logo img {
    display: block;
    margin: 0 auto;
}

.auth-card h1 {
    text-align: center;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 4px;
}

.auth-card .subtitle {
    text-align: center;
    color: var(--text2);
    font-size: 14px;
    margin-bottom: 28px;
}

/* ========== Form Elements ========== */
.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 13px;
    color: var(--text2);
    margin-bottom: 6px;
    font-weight: 500;
}

.form-input {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 15px;
    padding: 12px 14px;
    outline: none;
    transition: border-color 0.2s;
}

.form-input:focus { border-color: var(--accent); }

.form-input::placeholder { color: var(--muted); }

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group { flex: 1; }

.captcha-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.captcha-row .captcha-text {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 16px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--accent);
    white-space: nowrap;
    user-select: none;
    text-align: center;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.captcha-row .form-input {
    flex: 1;
    height: 48px;
}

.error-text {
    color: var(--red);
    font-size: 13px;
    margin-top: 4px;
    display: none;
}

.error-text.show { display: block; }

/* ========== Buttons ========== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    padding: 12px 20px;
    transition: all 0.2s;
    outline: none;
    gap: 8px;
}

.btn:active { transform: scale(0.97); }

.btn-full { width: 100%; }

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent2); }

.btn-secondary { background: var(--bg3); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--accent); }

.btn-danger { background: var(--red); color: #fff; }

.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-xs { padding: 6px 10px; font-size: 12px; }

.btn-green { background: var(--green); color: #000; }

.auth-links {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: var(--text2);
}

.auth-links a { margin-left: 4px; }

.form-divider {
    text-align: center;
    color: var(--muted);
    font-size: 13px;
    margin: 16px 0;
}

/* ========== Toast ========== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-80px);
    background: var(--card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 12px 24px;
    font-size: 14px;
    z-index: 9999;
    opacity: 0;
    transition: all 0.3s ease;
    white-space: nowrap;
    max-width: 90%;
    text-align: center;
}

.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.success { border-color: var(--green); }
.toast.error { border-color: var(--red); }

/* ========== App Layout (Dashboard/Admin) ========== */
.app-layout {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.app-header {
    background: var(--bg2);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 100;
}

.app-header .brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    font-size: 17px;
}

.app-header .brand span { color: var(--accent); font-size: 24px; }

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-user {
    font-size: 13px;
    color: var(--text2);
}

.btn-logout {
    background: none;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    color: var(--text2);
    font-size: 13px;
    padding: 6px 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-logout:hover { border-color: var(--red); color: var(--red); }

.app-body {
    flex: 1;
    padding: 20px;
    max-width: 900px;
    width: 100%;
    margin: 0 auto;
}

/* ========== Balance Card ========== */
.balance-card {
    background: linear-gradient(135deg, var(--bg3), var(--card));
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    margin-bottom: 20px;
}

.balance-label {
    color: var(--text2);
    font-size: 13px;
    margin-bottom: 6px;
}

.balance-btc {
    font-size: 32px;
    font-weight: 700;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

.balance-usd {
    color: var(--green);
    font-size: 16px;
    font-weight: 700;
    margin-top: 4px;
}

/* ========== Stats Row ========== */
.stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.stat-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
}

.stat-card .stat-label {
    font-size: 12px;
    color: var(--muted);
    margin-bottom: 4px;
}

.stat-card .stat-value {
    font-size: 18px;
    font-weight: 700;
}

.stat-card .stat-value.green { color: var(--green); }
.stat-card .stat-value.accent { color: var(--accent); }

/* ========== Dashboard Actions ========== */
.dash-actions {
    margin-bottom: 20px;
}

/* ========== Chart ========== */
.chart-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 16px;
    margin-bottom: 20px;
}

.chart-card h3 {
    font-size: 14px;
    color: var(--text2);
    margin-bottom: 12px;
}

/* Candlestick chart */
#candleChart {
    display: block;
    width: 100%;
    height: 220px;
    cursor: crosshair;
}

/* Chart skeleton loading */
.chart-skeleton {
    height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    overflow: hidden;
}

.skeleton-bars {
    display: flex;
    align-items: flex-end;
    gap: 4px;
    width: 100%;
    height: 180px;
    padding: 0 8px;
}

.skel-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--accent) 0%, var(--border) 100%);
    border-radius: 3px 3px 0 0;
    opacity: 0.15;
    animation: skelPulse 1.5s ease infinite;
}

.skel-bar:nth-child(odd) { animation-delay: 0.2s; }
.skel-bar:nth-child(3n) { animation-delay: 0.4s; }
.skel-bar:nth-child(4n) { animation-delay: 0.6s; }

@keyframes skelPulse {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.25; }
}

.skeleton-label {
    margin-top: 12px;
    font-size: 12px;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 4px;
    animation: skelFadeIn 0.5s ease;
}

@keyframes skelFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.chart-interval {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 8px;
    cursor: pointer;
    transition: 0.15s;
}

.chart-interval:hover { color: var(--text); border-color: var(--text2); }
.chart-interval.active { background: var(--accent); color: #000; border-color: var(--accent); }

/* ========== Transaction List ========== */
.section-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.tx-list { margin-bottom: 20px; }

.tx-item {
    display: flex;
    align-items: center;
    padding: 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    gap: 12px;
}

.tx-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}

.tx-icon.in { background: var(--green-soft); color: var(--green); }
.tx-icon.out { background: var(--red-soft); color: var(--red); }

.tx-info { flex: 1; min-width: 0; }

.tx-desc {
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.tx-date { font-size: 12px; color: var(--muted); margin-top: 2px; }

.tx-amount {
    text-align: right;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
}

.tx-amount.positive { color: var(--green); }
.tx-amount.negative { color: var(--red); }

.tx-empty {
    text-align: center;
    padding: 40px;
    color: var(--muted);
    font-size: 14px;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

/* ========== Admin Panel ========== */
.admin-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.admin-tab {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text2);
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.2s;
}

.admin-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.admin-section { display: none; }
.admin-section.active { display: block; }

/* User Table */
.user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.user-table th {
    text-align: left;
    padding: 10px 12px;
    color: var(--text2);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--border);
}

.user-table td {
    padding: 12px;
    border-bottom: 1px solid var(--border);
    vertical-align: middle;
}

.user-table tr:hover td { background: var(--bg3); }

.table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
}

.badge {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
}

.badge-admin { background: var(--accent-soft); color: var(--accent); }
.badge-user { background: var(--bg3); color: var(--text2); }
.badge-on { background: var(--green-soft); color: var(--green); }
.badge-off { background: var(--red-soft); color: var(--red); }

/* Admin form card */
.form-card {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
}

.form-card h3 {
    font-size: 16px;
    margin-bottom: 16px;
}

/* Settings toggle */
.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

.setting-row:last-child { border-bottom: none; }

.setting-info { flex: 1; }
.setting-info .setting-name { font-size: 15px; font-weight: 500; }
.setting-info .setting-desc { font-size: 13px; color: var(--text2); margin-top: 2px; }

.toggle {
    position: relative;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
    margin-left: 12px;
}

.toggle input { display: none; }

.toggle-slider {
    position: absolute;
    inset: 0;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 13px;
    cursor: pointer;
    transition: 0.2s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    background: var(--text2);
    border-radius: 50%;
    transition: 0.2s;
}

.toggle input:checked + .toggle-slider { background: var(--accent); border-color: var(--accent); }
.toggle input:checked + .toggle-slider::before { transform: translateX(22px); background: #fff; }

/* ========== Modal ========== */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--modal-bg);
    z-index: 999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show { display: flex; }

.modal-box {
    background: var(--bg2);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 24px;
    width: 100%;
    max-width: 420px;
    animation: slideUp 0.25s ease;
}

@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.modal-box h3 { font-size: 18px; margin-bottom: 16px; }

.modal-actions {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.modal-actions .btn { flex: 1; }

/* ========== Hamburger Button ========== */
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: 1px solid var(--border);
    border-radius: 8px;
    cursor: pointer;
    padding: 10px 9px;
}

.hamburger span {
    display: block;
    width: 22px;
    height: 2.5px;
    background: var(--text);
    border-radius: 2px;
    transition: 0.2s;
}

.hamburger:active {
    background: var(--bg3);
}

.hamburger:active span {
    background: var(--accent);
}

/* ========== Sidebar ========== */
.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.6);
    z-index: 200;
}

.sidebar-overlay.show { display: block; }

.sidebar {
    position: fixed;
    top: 0;
    left: -260px;
    width: 260px;
    height: 100%;
    background: var(--bg2);
    border-right: 1px solid var(--border);
    z-index: 201;
    transition: left 0.25s ease;
    overflow-y: auto;
}

.sidebar.show { left: 0; }

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px;
    border-bottom: 1px solid var(--border);
}

.sidebar-item {
    display: block;
    width: 100%;
    text-align: left;
    background: none;
    border: none;
    color: var(--text2);
    font-size: 15px;
    padding: 14px 20px;
    cursor: pointer;
    border-bottom: 1px solid var(--border);
    transition: 0.15s;
}

.sidebar-item:hover { background: var(--bg3); color: var(--text); }
.sidebar-item.active { color: var(--accent); background: rgba(240,185,11,0.08); }

/* ========== User Select List (Add Balance) ========== */
.user-select-list {
    max-height: 300px;
    overflow-y: auto;
}

.user-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 6px;
    cursor: pointer;
    transition: 0.15s;
}

.user-select-item:hover { border-color: var(--accent); background: var(--bg3); }

.user-select-item .usi-name { font-weight: 600; font-size: 14px; }
.user-select-item .usi-detail { font-size: 12px; color: var(--text2); }
.user-select-item .usi-balance { font-family: monospace; font-size: 13px; color: var(--accent); }

/* ========== Responsive ========== */
@media (max-width: 600px) {
    .hamburger { display: flex; }
    .admin-tabs { display: none !important; }
    .auth-card { padding: 24px 18px; }
    .balance-btc { font-size: 26px; }
    .app-body { padding: 14px; }
    .stats-row { grid-template-columns: 1fr; }
    .user-table { font-size: 12px; }
    .user-table th, .user-table td { padding: 6px; }
    .header-user { display: none; }
}

/* ========== Scrollbar ========== */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 4px; }

/* ========== Loading spinner ========== */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ========== Live Price Flash ========== */
.flash-green {
    animation: flashGreen 0.4s ease;
}

.flash-red {
    animation: flashRed 0.4s ease;
}

@keyframes flashGreen {
    0% { color: var(--accent); }
    50% { color: var(--green); }
    100% { color: var(--accent); }
}

@keyframes flashRed {
    0% { color: var(--accent); }
    50% { color: var(--red); }
    100% { color: var(--accent); }
}

/* Live price pulse dot */
.live-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: var(--green);
    border-radius: 50%;
    margin-right: 6px;
    animation: livePulse 1.5s ease infinite;
}

@keyframes livePulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* ========== Page Loading Screen ========== */
.page-loader {
    position: fixed;
    inset: 0;
    background: var(--loader-bg, var(--bg));
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
}

.page-loader .loader-logo {
    width: 72px;
    height: 72px;
    animation: loaderPulse 1.5s ease infinite;
}

.page-loader .loader-ring {
    width: 90px;
    height: 90px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    position: absolute;
    animation: spin 1s linear infinite;
}

.page-loader .loader-text {
    margin-top: 24px;
    color: var(--text2);
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 1px;
}

.page-loader .loader-bar {
    width: 120px;
    height: 3px;
    background: var(--border);
    border-radius: 3px;
    margin-top: 16px;
    overflow: hidden;
}

.page-loader .loader-bar-fill {
    width: 0%;
    height: 100%;
    background: var(--accent);
    border-radius: 3px;
    animation: loaderBar 1.5s ease forwards;
}

@keyframes loaderPulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.08); opacity: 0.8; }
}

@keyframes loaderBar {
    0% { width: 0%; }
    50% { width: 70%; }
    100% { width: 100%; }
}

/* ========== BTC Logo Sizes ========== */
.btc-logo-sm { width: 28px; height: 28px; }
.btc-logo-md { width: 48px; height: 48px; }
.btc-logo-lg { width: 72px; height: 72px; }

/* ========== Theme Toggle ========== */
.theme-toggle {
    background: var(--bg3);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text);
    font-size: 18px;
    cursor: pointer;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s;
    flex-shrink: 0;
    line-height: 1;
}

.theme-toggle:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #000;
}

.theme-toggle:active {
    transform: scale(0.93);
}

[data-theme="light"] .theme-toggle {
    background: var(--bg3);
    border-color: var(--border);
    color: var(--text);
}

/* Light theme adjustments for better readability */
[data-theme="light"] .auth-card {
    box-shadow: var(--shadow);
    border-color: var(--border);
}

[data-theme="light"] .balance-card {
    background: linear-gradient(135deg, #ffffff, #f0f0f0);
    box-shadow: var(--shadow);
    border-color: var(--border);
}

[data-theme="light"] .stat-card {
    background: var(--bg2);
    box-shadow: var(--shadow);
}

[data-theme="light"] .form-card {
    box-shadow: var(--shadow);
}

[data-theme="light"] .table-wrapper {
    box-shadow: var(--shadow);
}

[data-theme="light"] .chart-card {
    background: var(--bg2);
    box-shadow: var(--shadow);
}

[data-theme="light"] .tx-item {
    background: var(--bg2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

[data-theme="light"] .form-input {
    background: var(--bg);
    border-color: var(--border);
}

[data-theme="light"] .modal-box {
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

[data-theme="light"] .spinner {
    border-color: rgba(0,0,0,0.15);
    border-top-color: var(--accent);
}

[data-theme="light"] .sidebar {
    box-shadow: 4px 0 20px rgba(0,0,0,0.1);
}

[data-theme="light"] .hamburger {
    border-color: var(--border);
}

[data-theme="light"] .hamburger span {
    background: var(--text);
}

[data-theme="light"] .app-header {
    background: var(--bg2);
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

[data-theme="light"] .btn-primary {
    background: var(--accent);
    color: #1e2329;
}

[data-theme="light"] .btn-secondary {
    background: var(--bg3);
    color: var(--text);
    border-color: var(--border);
}

[data-theme="light"] .btn-green {
    background: var(--green);
    color: #fff;
}

[data-theme="light"] .admin-tab {
    background: var(--bg2);
    border-color: var(--border);
}

[data-theme="light"] .admin-tab.active {
    background: var(--accent);
    color: #1e2329;
}

[data-theme="light"] .toast {
    background: var(--bg2);
    box-shadow: var(--shadow);
}

[data-theme="light"] .page-loader {
    background: #f5f5f5;
}

[data-theme="light"] .page-loader .loader-ring {
    border-color: var(--border);
    border-top-color: var(--accent);
}

[data-theme="light"] .page-loader .loader-text {
    color: var(--text2);
}

[data-theme="light"] .btn-logout {
    border-color: var(--border);
    color: var(--text2);
}

