:root { color-scheme: dark; }
* { box-sizing: border-box; }
body {
    margin: 0; background: #0b0b10; color: #e6e6ef;
    font: 14px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
a { color: #4da6ff; text-decoration: none; }
a:hover { text-decoration: underline; }

.app-shell { display: flex; min-height: 100vh; }

/* Sidebar */
.sidebar {
    width: 240px; flex-shrink: 0; background: #101018; border-right: 1px solid #1e1e29;
    display: flex; flex-direction: column; padding: 20px 0;
}
.sidebar .brand { display: flex; align-items: center; gap: 8px; padding: 0 20px 20px; font-weight: 700; color: #9b6bff; }
.sidebar nav { flex: 1; }
.sidebar a.nav-link {
    display: flex; align-items: center; gap: 10px; padding: 10px 20px; color: #b8b8c8; font-size: 14px;
}
.sidebar a.nav-link:hover { background: #16161f; text-decoration: none; }
.sidebar a.nav-link.active { color: #fff; background: #16161f; border-right: 2px solid #9b6bff; }
.sidebar .help-btn {
    margin: 12px 20px 0; padding: 10px; text-align: center; background: #16161f; border-radius: 8px; color: #b8b8c8;
}

/* Main column */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.topbar {
    display: flex; align-items: center; justify-content: flex-end; gap: 18px;
    padding: 14px 24px; border-bottom: 1px solid #1e1e29; background: #0d0d13;
}
.topbar .balance { color: #4da6ff; font-weight: 600; margin-right: auto; }
.topbar .balance strong { color: #b8b8c8; font-weight: 400; }
.topbar .icon-btn { width: 34px; height: 34px; border-radius: 8px; display: flex; align-items: center; justify-content: center; background: #16161f; color: #b8b8c8; cursor: pointer; }

.content { padding: 28px; }
.content h1 { margin: 0; font-size: 22px; }
.content .subtitle { color: #74748a; font-size: 13px; margin: 2px 0 20px; }

.card {
    background: #12121a; border: 1px solid #1e1e29; border-radius: 12px; margin-bottom: 20px;
}
.card .card-header { padding: 18px 22px; font-weight: 600; font-size: 15px; }
.card .card-body { padding: 0 22px 22px; }

.tabs { display: flex; gap: 22px; padding: 0 22px; border-bottom: 1px solid #1e1e29; }
.tabs a { padding: 12px 0; color: #74748a; font-size: 14px; border-bottom: 2px solid transparent; }
.tabs a.active { color: #4da6ff; border-color: #4da6ff; }

table.data-table { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data-table th { text-align: left; color: #74748a; text-transform: uppercase; font-size: 11px; padding: 10px 8px; border-bottom: 1px solid #1e1e29; }
table.data-table td { padding: 12px 8px; border-bottom: 1px solid #191922; }

.btn { display: inline-block; background: #635bff; color: #fff; border: none; border-radius: 8px; padding: 9px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.btn.secondary { background: transparent; border: 1px solid #2a2a38; color: #e6e6ef; }
.search-input { padding: 9px 12px; border-radius: 8px; border: 1px solid #2a2a38; background: #0f0f16; color: #e6e6ef; width: 260px; }

.toggle { position: relative; display: inline-block; width: 40px; height: 22px; }
.toggle input { display: none; }
.toggle .slider { position: absolute; inset: 0; background: #2a2a38; border-radius: 22px; transition: .15s; }
.toggle .slider::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.toggle input:checked + .slider { background: #2ecc71; }
.toggle input:checked + .slider::before { transform: translateX(18px); }

.bar-chart { display: flex; align-items: flex-end; gap: 18px; height: 220px; padding: 10px 0; }
.bar-chart .bar-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-chart .bar { width: 46px; background: #2ecc71; border-radius: 4px 4px 0 0; }
.bar-chart .bar-label { margin-top: 8px; color: #4da6ff; font-size: 12px; }

.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.login-card { width: 100%; max-width: 380px; background: #12121a; border: 1px solid #1e1e29; border-radius: 12px; padding: 32px; }
.login-card label { display: block; font-size: 13px; color: #9d9dad; margin: 14px 0 6px; }
.login-card input { width: 100%; padding: 10px 12px; border-radius: 8px; border: 1px solid #2a2a38; background: #0f0f16; color: #e6e6ef; }
.error-msg { color: #ff5c5c; font-size: 13px; margin-top: 10px; }
