:root {
    --sidebar-width: 260px;
    --brand: #0f766e;
    --brand-dark: #115e59;
    --ink: #0f172a;
    --muted: #64748b;
    --bg: #f1f5f9;
}

body.app-body {
    background: var(--bg);
    color: var(--ink);
    min-height: 100vh;
    font-family: "Noto Sans", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
}

body.auth-hero {
    font-family: "Noto Sans", "Noto Sans Bengali", "Segoe UI", system-ui, sans-serif;
}

.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f172a 0%, #134e4a 100%);
    min-height: 100vh;
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1030;
    overflow-y: auto;
}

.sidebar .brand {
    color: #fff;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 1.25rem 1.25rem .5rem;
}

.sidebar .brand small {
    display: block;
    font-weight: 400;
    opacity: .7;
    font-size: .75rem;
}

.sidebar .nav-link {
    color: rgba(255,255,255,.78);
    border-radius: .6rem;
    margin: .1rem .75rem;
    padding: .55rem .85rem;
}

.sidebar .nav-link:hover,
.sidebar .nav-link.active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.sidebar .nav-section {
    color: rgba(255,255,255,.45);
    font-size: .7rem;
    text-transform: uppercase;
    letter-spacing: .08em;
    padding: 1rem 1.25rem .25rem;
}

.content-wrap {
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

.topbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
}

.stat-card {
    border: 0;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.stat-card .label {
    color: var(--muted);
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.stat-card .value {
    font-size: 1.35rem;
    font-weight: 700;
}

.stat-card.cash { border-left: 4px solid #0ea5e9; }
.stat-card.bank { border-left: 4px solid #6366f1; }
.stat-card.liquid { border-left: 4px solid #14b8a6; }
.stat-card.invest { border-left: 4px solid #8b5cf6; }
.stat-card.sales { border-left: 4px solid #22c55e; }
.stat-card.other { border-left: 4px solid #84cc16; }
.stat-card.expense { border-left: 4px solid #f97316; }
.stat-card.profit { border-left: 4px solid #0f766e; }
.stat-card.draw { border-left: 4px solid #ef4444; }
.stat-card.loan { border-left: 4px solid #eab308; }

.card-soft {
    border: 0;
    border-radius: 1rem;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
}

.table thead th {
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--muted);
}

.auth-hero {
    min-height: 100vh;
    background: linear-gradient(135deg, #0f172a, #0f766e);
}

.auth-card {
    border: 0;
    border-radius: 1.25rem;
    box-shadow: 0 20px 50px rgba(0,0,0,.25);
}

@media (max-width: 991.98px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform .2s ease;
    }
    .sidebar.show { transform: none; }
    .content-wrap { margin-left: 0; }
}
