:root { --sidebar-w: 250px; --brand: #4f46e5; }
body { background: #f4f6fb; font-family: "Segoe UI", "Noto Sans Bengali", "Nirmala UI", system-ui, sans-serif; }
.app-wrap { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: #111827; color: #cbd5e1; position: fixed; inset: 0 auto 0 0; z-index: 1030; overflow-y: auto; transition: transform .2s; }
.sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 18px 20px; color: #fff; font-weight: 700; font-size: 1rem; border-bottom: 1px solid #1f2937; }
.sidebar .brand i { font-size: 1.5rem; color: #818cf8; }
.sidebar .brand img { max-height: 32px; max-width: 40px; }
.sidebar .nav-link { color: #cbd5e1; padding: 11px 20px; display: flex; align-items: center; gap: 12px; border-left: 3px solid transparent; }
.sidebar .nav-link:hover { background: #1f2937; color: #fff; }
.sidebar .nav-link.active { background: #1f2937; color: #fff; border-left-color: #818cf8; }
.main { margin-left: var(--sidebar-w); flex: 1; min-width: 0; }
.topbar { background: #fff; padding: 12px 24px; display: flex; align-items: center; gap: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.06); position: sticky; top: 0; z-index: 1020; }
.content { padding: 24px; }
.stat-icon { width: 52px; height: 52px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; }
.card { border-radius: 12px; }
.table > :not(caption) > * > * { padding: .65rem .75rem; }
.preview-card { position: sticky; top: 80px; }
.login-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #4f46e5, #0ea5e9); padding: 16px; }
.login-card { width: 100%; max-width: 420px; border-radius: 16px; }
.login-icon { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 16px; background: #eef2ff; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 2rem; }
@media (max-width: 991.98px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .main { margin-left: 0; }
  .content { padding: 14px; }
  .preview-card { position: static; }
}
.print-title { text-align: center; margin-bottom: 12px; }
@media print {
  @page { size: A4; margin: 10mm; }
  .sidebar, .topbar, .no-print, .alert { display: none !important; }
  .main { margin: 0 !important; }
  .content { padding: 0 !important; }
  body { background: #fff; }
  .card { box-shadow: none !important; border: 1px solid #ccc !important; }
  .print-title { display: block !important; }
  thead { display: table-header-group; } tr { page-break-inside: avoid; }
}
