:root {
  --sidebar-w: 250px;
  --ink: #1d2433;
  --muted: #6b7385;
  --line: #e6e9ef;
  --bg: #f3f5f9;
  --side-bg: #141b2d;
  --side-ink: #aab3c5;
  --accent: #0e9f6e;
  --exp: #d9480f;
  --rev: #0e9f6e;
  --radius: 12px;
}
body { background: var(--bg); color: var(--ink); font-family: "Inter", "Hind Siliguri", system-ui, sans-serif; font-size: 14.5px; }
body.lang-bn { font-family: "Hind Siliguri", "Inter", system-ui, sans-serif; font-size: 15.5px; }

/* Sidebar */
.sidebar { background: var(--side-bg) !important; color: var(--side-ink); width: var(--sidebar-w); }
.table > :not(caption) > * > :first-child { padding-left: 18px; }
.table > :not(caption) > * > :last-child { padding-right: 18px; }
@media (min-width: 992px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; overflow-y: auto; }
  .main { margin-left: var(--sidebar-w); }
}
.brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px 14px; color: #fff; }
.brand-mark { width: 36px; height: 36px; border-radius: 10px; background: var(--accent); display: grid; place-items: center; font-size: 18px; }
.brand-name { font-weight: 600; line-height: 1.2; font-size: 15px; }
.side-nav { padding: 6px 10px 24px; }
.side-head { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #6c7790; padding: 16px 10px 6px; }
.lang-bn .side-head { font-size: 12.5px; letter-spacing: 0; }
.side-link { display: flex; align-items: center; gap: 10px; color: var(--side-ink); text-decoration: none; padding: 8px 10px; border-radius: 8px; margin-bottom: 2px; }
.side-link i { font-size: 16px; width: 18px; }
.side-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.side-link.active { background: rgba(14,159,110,.18); color: #fff; }
.side-link.active i { color: #34d399; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 12px; padding: 10px 24px; background: rgba(255,255,255,.92); backdrop-filter: blur(6px); border-bottom: 1px solid var(--line); }
.top-search { position: relative; flex: 0 1 380px; }
.top-search i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.top-search input { padding-left: 34px; background: var(--bg); border-color: transparent; }
.user-btn { display: flex; align-items: center; gap: 8px; }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--side-bg); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.content { padding: 24px; max-width: 1500px; }
@media (max-width: 575px) { .content { padding: 16px; } .topbar { padding: 10px 16px; } .lang-switch .btn { padding: 2px 6px; } }

/* Page header */
.page-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 18px; }
.page-head h1 { font-size: 24px; font-weight: 600; margin: 0; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

.card { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 1px 2px rgba(16,24,40,.03); }
.card-header { background: #fff; border-bottom: 1px solid var(--line); font-weight: 600; padding: 14px 18px; border-radius: var(--radius) var(--radius) 0 0 !important; }
.card-header.accent-top { border-top: 3px solid #17a2c8; }
.form-label { font-weight: 600; font-size: 13.5px; margin-bottom: 6px; }
.lang-bn .form-label { font-size: 14.5px; }
.req::after { content: " *"; color: #dc3545; }
.form-control, .form-select { border-radius: 8px; border-color: #d7dce5; padding: .5rem .75rem; }
.form-control:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 .2rem rgba(14,159,110,.15); }
.btn { border-radius: 8px; }
.btn-success { background: var(--accent); border-color: var(--accent); }

/* Date input with calendar + clear buttons (like the screenshot) */
.date-group .input-group-text { background: #fff; cursor: pointer; }
.date-group .btn-clear { border-color: #d7dce5; background: #fff; }

/* Tables */
.table { margin: 0; }
.table thead th { background: #f8f9fb; font-size: 12.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--line); }
.lang-bn .table thead th { font-size: 13.5px; letter-spacing: 0; text-transform: none; }
.table td { vertical-align: middle; border-color: var(--line); }
.table-hover tbody tr:hover { background: #fafbfd; }
.amt { font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; font-weight: 600; }
.amt-exp { color: var(--exp); }
.amt-rev { color: var(--rev); }
.status { font-size: 12px; padding: 3px 9px; border-radius: 99px; font-weight: 600; white-space: nowrap; }
.status-approved { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.act-btns { white-space: nowrap; }
.act-btns .btn { padding: 2px 8px; }
.thumb { width: 38px; height: 38px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }

/* Dashboard */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.filter-bar .fb-item { min-width: 140px; }
.period-pills .btn { font-size: 13.5px; }
.stat { border-radius: var(--radius); padding: 18px 20px; color: #fff; position: relative; overflow: hidden; min-height: 118px; }
.stat .val { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.15; word-break: break-word; }
.stat .lbl { margin-top: 6px; opacity: .92; }
.stat .ico { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); font-size: 54px; opacity: .25; }
.bg-blue { background: #2a5aa6; } .bg-brown { background: #8b6c3b; } .bg-green { background: #3b773d; }
.bg-teal { background: #0e7c66; } .bg-indigo { background: #4338ca; } .bg-rose { background: #be123c; }
.bg-slate { background: #334155; } .bg-amber { background: #b45309; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; height: 100%; }
.kpi .k-label { color: var(--muted); font-size: 13.5px; display: flex; align-items: center; gap: 6px; }
.kpi .k-val { font-size: 24px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .k-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.section-title { font-size: 17px; font-weight: 600; margin: 26px 0 12px; display: flex; align-items: center; gap: 8px; }
.cat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; height: 100%; }
.cat-card .rank { width: 26px; height: 26px; border-radius: 7px; display: grid; place-items: center; font-weight: 700; font-size: 13px; background: #fff1e6; color: var(--exp); }
.cat-card.rev .rank { background: #e6f7f0; color: var(--rev); }
.cat-card .cname { font-weight: 600; }
.cat-card .camt { font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; margin: 8px 0 6px; }
.cat-card .progress { height: 6px; border-radius: 99px; }
.cat-card .meta { font-size: 12.5px; color: var(--muted); display: flex; justify-content: space-between; margin-top: 6px; }

/* Confirm modal */
.confirm-icon { width: 64px; height: 64px; border-radius: 50%; background: #fee2e2; color: #dc2626; display: grid; place-items: center; font-size: 30px; margin: 0 auto; }

/* Login */
.login-wrap { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: linear-gradient(135deg, #141b2d 0%, #1f2a44 60%, #0e9f6e 160%); }
.login-card { width: 100%; max-width: 400px; background: #fff; border-radius: 16px; padding: 32px 28px; box-shadow: 0 20px 50px rgba(0,0,0,.25); }

.perm-group { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; height: 100%; background: #fff; }
.perm-group h6 { font-weight: 600; margin-bottom: 10px; }
.dl-grid { display: grid; grid-template-columns: 180px 1fr; gap: 10px 16px; }
@media (max-width: 575px) { .dl-grid { grid-template-columns: 1fr; gap: 2px 0; } .dl-grid dd { margin-bottom: 10px; } }
.dl-grid dt { color: var(--muted); font-weight: 500; }
.dl-grid dd { margin: 0; }
.pagination { margin: 0; }
