:root{
    --sidebar:#111827;
    --primary:#2563eb;
    --bg:#f4f7fb;
    --card:#ffffff;
    --text:#1f2937;
    --muted:#6b7280;
    --success:#22c55e;
    --danger:#ef4444;
    --warning:#f59e0b;
    --radius:18px;
}

body{
    background:var(--bg);
    font-family:Inter,system-ui,sans-serif;
    color:var(--text);
}

.sidebar{
    position:fixed;
    left:0;
    top:0;
    width:260px;
    height:100vh;
    background:var(--sidebar);
    overflow:auto;
    z-index:999;
}

.main{
    margin-left:260px;
}

.logo{
    color:#fff;
    font-size:22px;
    font-weight:700;
    padding:24px;
    border-bottom:1px solid rgba(255,255,255,.08);
}

.sidebar a{
    display:flex;
    align-items:center;
    gap:12px;
    color:#cbd5e1;
    padding:13px 18px;
    margin:8px 12px;
    text-decoration:none;
    border-radius:12px;
    transition:.25s;
}

.sidebar a:hover{
    background:#2563eb;
    color:white;
}

.topbar{
    background:white;
    height:70px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:0 30px;
    box-shadow:0 2px 20px rgba(0,0,0,.05);
}

.content{
    padding:30px;
}

.card{
    border:none;
    border-radius:18px;
    box-shadow:0 10px 30px rgba(0,0,0,.05);
}

@media(max-width:768px){

.sidebar{
    transform:translateX(-100%);
}

.main{
    margin-left:0;
}

}

.sidebar a.active{

background:#2563eb;

color:white;

font-weight:600;

}


.stat-card{

background:white;

padding:24px;

border-radius:18px;

display:flex;

align-items:center;

justify-content:space-between;

box-shadow:0 10px 25px rgba(0,0,0,.05);

margin-bottom:20px;

}

.stat-icon{

width:60px;

height:60px;

border-radius:50%;

display:flex;

align-items:center;

justify-content:center;

font-size:28px;

}

.bg-soft-primary{

background:#dbeafe;

color:#2563eb;

}

.bg-soft-success{

background:#dcfce7;

color:#16a34a;

}

.bg-soft-warning{

background:#fef3c7;

color:#d97706;

}

.bg-soft-danger{

background:#fee2e2;

color:#dc2626;

}

/* ==========================
   Finance Dashboard
========================== */

.finance-card{
    border:none;
    border-radius:16px;
    transition:.25s;
    box-shadow:0 5px 20px rgba(0,0,0,.06);
}

.finance-card:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(0,0,0,.10);
}

.finance-title{
    font-size:14px;
    color:#888;
    margin-bottom:8px;
}

.finance-value{
    font-size:34px;
    font-weight:700;
}

.card-header{
    border-radius:16px 16px 0 0 !important;
}

.table td{
    vertical-align:middle;
}

.badge{
    border-radius:20px;
    padding:6px 12px;
}

.btn{
    border-radius:10px;
}

.card{
    border-radius:16px;
}

.table{
    margin-bottom:0;
}

/* ==========================
   Finance Dashboard
========================== */

.finance-card{
    border:none;
    border-radius:16px;
    transition:.25s;
    box-shadow:0 5px 20px rgba(0,0,0,.06);
}

.finance-card:hover{
    transform:translateY(-4px);
    box-shadow:0 15px 35px rgba(0,0,0,.10);
}

.finance-title{
    font-size:14px;
    color:#888;
    margin-bottom:8px;
}

.finance-value{
    font-size:34px;
    font-weight:700;
}

.card-header{
    border-radius:16px 16px 0 0 !important;
}

.table td{
    vertical-align:middle;
}

.badge{
    border-radius:20px;
    padding:6px 12px;
}

.btn{
    border-radius:10px;
}

.card{
    border-radius:16px;
}

.table{
    margin-bottom:0;
}
/* ===========================
   DARK MODE
=========================== */

body.dark-mode{
    background:#0f172a;
    color:#e5e7eb;
}

body.dark-mode .main{
    background:#0f172a;
}

body.dark-mode .content{
    background:#0f172a;
}

body.dark-mode .topbar{
    background:#1e293b;
    color:#fff;
}

body.dark-mode .sidebar{
    background:#020617;
}

body.dark-mode .card{
    background:#1e293b;
    color:#fff;
    border-color:#334155;
}

body.dark-mode .table{
    color:#fff;
}

body.dark-mode .table th{
    color:#cbd5e1;
}

body.dark-mode .table td{
    color:#e2e8f0;
}

body.dark-mode input,
body.dark-mode select{
    background:#0f172a;
    color:#fff;
    border-color:#334155;
}

body.dark-mode .input-group-text{
    background:#0f172a;
    color:#fff;
    border-color:#334155;
}

body.dark-mode .text-muted{
    color:#94a3b8 !important;
}

body.dark-mode .pagination .page-link{
    background:#1e293b;
    color:#fff;
    border-color:#334155;
}
