:root {
    --hs-primary: #1d4ed8;
    --hs-secondary: #64748b;
    --hs-accent: #f59e0b;
}
body { background: #f4f6fb; font-family: 'Segoe UI', system-ui, -apple-system, sans-serif; }
.navbar.bg-primary { background: linear-gradient(90deg, #1d4ed8 0%, #2563eb 100%) !important; }
.sidebar { width: 240px; min-height: calc(100vh - 56px); }
@media (min-width: 992px) { .sidebar { display: block !important; position: sticky; top: 56px; height: calc(100vh - 56px); } }
.sidebar .nav-link { border-left: 3px solid transparent; }
.sidebar .nav-link.active { border-left-color: #f59e0b; }
.sidebar .nav-link:hover { background: rgba(255,255,255,.08); color: #fff !important; }
.sidebar-subnav { list-style: none; padding-left: 0; margin: 0; }
.sidebar-subnav .nav-link { padding-left: 2.75rem !important; font-size: .92rem; }
.sidebar .nav-link[data-bs-toggle="collapse"] { cursor: pointer; }
.sidebar .nav-link[aria-expanded="true"] .sidebar-caret { transform: rotate(180deg); }
.sidebar-caret { transition: transform .2s ease; }
input[type="date"] {
  position: relative;
  cursor: pointer;
}
input[type="date"]::-webkit-calendar-picker-indicator {
  position: absolute;
  left: 0;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}
.main-area { min-height: calc(100vh - 56px - 60px); }
.card { border: 0; box-shadow: 0 1px 3px rgba(0,0,0,.06); border-radius: .75rem; }
.card-header { background: #fff; border-bottom: 1px solid #eef1f6; font-weight: 600; }
.stat-card { border-left: 4px solid var(--hs-primary); }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; }
.stat-card.warn { border-left-color: #f59e0b; }
.stat-card.danger { border-left-color: #ef4444; }
.stat-card.success { border-left-color: #10b981; }
.stat-card.info { border-left-color: #06b6d4; }
.table thead { background: #f8fafc; }
.table thead th { border-bottom: 2px solid #e5e7eb; font-size: .8rem; text-transform: uppercase; letter-spacing: .5px; color: #64748b; }
.badge { font-weight: 500; padding: .35em .6em; }
.form-label { font-weight: 500; font-size: .875rem; }
.login-wrapper { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #1d4ed8 0%, #7c3aed 100%); }
.login-card { max-width: 420px; width: 100%; border-radius: 1rem; overflow: hidden; }
.login-brand { background: linear-gradient(135deg, #1d4ed8, #2563eb); color: #fff; padding: 2rem; text-align: center; }
.profile-avatar { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; border: 4px solid #fff; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.tab-content { padding-top: 1.25rem; }
@media print {
    .no-print, nav, footer, .sidebar { display: none !important; }
    .main-area { padding: 0 !important; }
}
