:root {
    --app-sidebar: #111827;
    --app-sidebar-soft: #1f2937;
    --app-bg: #f5f7fb;
    --app-primary: #2563eb;
    --app-border: #e5e7eb;
}

body { font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.login-body { min-height: 100vh; background: radial-gradient(circle at top left, #dbeafe 0, transparent 35%), linear-gradient(135deg, #0f172a, #1d4ed8); }
.login-card { width: min(100%, 980px); border-radius: 1.5rem; overflow: hidden; }
.login-hero { min-height: 560px; align-items: center; padding: 4rem; color: white; background: linear-gradient(145deg, rgba(15,23,42,.96), rgba(37,99,235,.88)), url('https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1200&q=70') center/cover; }
.brand-mark, .brand-mark-sm { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, #2563eb, #06b6d4); box-shadow: 0 14px 30px rgba(37,99,235,.25); }
.brand-mark { width: 72px; height: 72px; border-radius: 22px; font-size: 1.65rem; }
.brand-mark-sm { width: 42px; height: 42px; border-radius: 14px; }

.app-body { background: var(--app-bg); }
.app-shell { min-height: 100vh; display: flex; }
.app-sidebar { width: 280px; min-height: 100vh; position: sticky; top: 0; flex-direction: column; background: var(--app-sidebar); color: #fff; padding: 1rem; }
.sidebar-brand { display: flex; align-items: center; gap: .8rem; color: #fff; text-decoration: none; padding: .65rem .5rem 1.2rem; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: .8rem; }
.sidebar-brand small { display: block; color: rgba(255,255,255,.62); font-size: .78rem; margin-top: .15rem; }
.sidebar-nav { display: grid; gap: .25rem; }
.sidebar-nav .nav-link { display: flex; align-items: center; gap: .7rem; color: rgba(255,255,255,.72); border-radius: .9rem; padding: .78rem .85rem; transition: all .15s ease; }
.sidebar-nav .nav-link:hover { color: #fff; background: rgba(255,255,255,.08); }
.sidebar-nav .nav-link.active { color: #fff; background: linear-gradient(135deg, #2563eb, #0891b2); box-shadow: 0 12px 24px rgba(37,99,235,.28); }
.sidebar-nav.mobile .nav-link { color: #111827; }
.sidebar-nav.mobile .nav-link.active { color: #fff; }
.app-main { flex: 1; min-width: 0; }
.app-topbar { background: rgba(255,255,255,.86); backdrop-filter: blur(14px); border-bottom: 1px solid var(--app-border); }
.stat-card { border: 0; border-radius: 1.25rem; box-shadow: 0 10px 30px rgba(15,23,42,.06); }
.stat-icon { width: 48px; height: 48px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: #eff6ff; color: #2563eb; font-size: 1.4rem; }
.card { border-color: var(--app-border); border-radius: 1rem; }
.table thead th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: #64748b; white-space: nowrap; }
.table td { vertical-align: middle; }
.btn { border-radius: .75rem; }
.form-control, .form-select { border-radius: .75rem; }
.modal-content { border-radius: 1.1rem; border: 0; }
.badge-soft { background: #f1f5f9; color: #334155; border: 1px solid #e2e8f0; }
.action-btn { width: 34px; height: 34px; display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.text-money { font-variant-numeric: tabular-nums; }
.empty-state { padding: 3rem 1rem; color: #64748b; text-align: center; }
.empty-state i { font-size: 2.4rem; display: block; margin-bottom: .5rem; opacity: .5; }
.code-help { font-size: .82rem; color: #64748b; }
@media (max-width: 991.98px) {
    .app-shell { display: block; }
    .app-main { width: 100%; }
}
