:root {
    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --secondary: #7c3aed;
    --soft-bg: #f4f7ff;
    --card: #ffffff;
    --dark: #0f172a;
    --muted: #64748b;
    --border: #dbe5f4;
    --sidebar-width: 280px;
    --sidebar-mini-width: 92px;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: 'Hind Siliguri', sans-serif;
    background: linear-gradient(180deg, #eef5ff 0%, #f8fbff 100%);
    color: var(--dark);
}
a { text-decoration: none; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
    width: var(--sidebar-width);
    background: linear-gradient(180deg, #0f172a 0%, #172554 100%);
    color: #fff;
    padding: 20px 16px;
    position: sticky;
    top: 0;
    height: 100vh;
    flex-direction: column;
    justify-content: space-between;
    transition: width .25s ease;
}
.app-shell.sidebar-collapsed .sidebar { width: var(--sidebar-mini-width); }
.app-shell.sidebar-collapsed .brand-text-wrap,
.app-shell.sidebar-collapsed .sidebar-session,
.app-shell.sidebar-collapsed .menu-link span,
.app-shell.sidebar-collapsed .sidebar-footer-card { display: none; }
.brand-box {
    display: flex; align-items: center; gap: 12px; margin-bottom: 20px;
    padding: 14px; background: rgba(255,255,255,.08); border-radius: 20px;
}
.brand-logo {
    width: 52px; height: 52px; border-radius: 18px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #60a5fa, #8b5cf6); font-size: 1.4rem;
}
.brand-title { font-size: 1.1rem; font-weight: 700; line-height: 1.2; }
.brand-subtitle, .tiny-label { color: rgba(255,255,255,.72); font-size: .86rem; }
.sidebar-session { padding: 0 6px 14px; }
.session-pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: 999px;
    background: rgba(96,165,250,.16); color: #dbeafe; font-weight: 600; margin-top: 6px;
}
.menu-list { display: grid; gap: 8px; }
.menu-link {
    display: flex; align-items: center; gap: 12px; color: #dbeafe; padding: 12px 14px;
    border-radius: 16px; transition: .2s ease; font-weight: 500;
}
.menu-link i { font-size: 1.15rem; min-width: 22px; }
.menu-link:hover, .menu-link.active {
    background: linear-gradient(90deg, rgba(59,130,246,.25), rgba(124,58,237,.23));
    color: #fff;
}
.sidebar-footer-card {
    background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.08); border-radius: 20px; padding: 14px;
}
.main-panel { flex: 1; min-width: 0; padding: 20px; }
.top-header {
    display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 14px 18px;
    background: rgba(255,255,255,.84); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.7);
    box-shadow: 0 14px 34px rgba(15,23,42,.06); border-radius: 22px; z-index: 100;
}
.user-chip {
    display: inline-flex; align-items: center; gap: 8px; background: #eff6ff; border: 1px solid #dbeafe;
    border-radius: 999px; padding: 8px 12px; color: var(--primary-dark); font-weight: 600;
}
.user-chip small { color: var(--muted); font-weight: 500; }
.btn-install {
    background: linear-gradient(90deg, #22c55e, #16a34a); color: #fff; border: none;
}
.page-wrap { padding: 24px 2px 20px; }
.glass-card, .stat-card {
    background: rgba(255,255,255,.96); border: 1px solid #e6edf8; border-radius: 24px;
    box-shadow: 0 20px 40px rgba(15,23,42,.06);
}
.stat-card { padding: 20px; }
.section-title { font-weight: 700; color: var(--dark); }
.small-muted { color: var(--muted); }
.stat-icon {
    width: 56px; height: 56px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #dbeafe, #ede9fe); color: #3730a3; font-size: 1.2rem;
}
.form-control, .form-select, .btn { border-radius: 14px; }
.form-control, .form-select { padding: .8rem .95rem; border: 1px solid var(--border); }
.form-control:focus, .form-select:focus {
    border-color: #93c5fd; box-shadow: 0 0 0 .25rem rgba(37,99,235,.12);
}
.table thead th { white-space: nowrap; color: #475569; font-weight: 600; }
.table tbody td { vertical-align: middle; }
.hero-banner {
    background: linear-gradient(120deg, #2563eb 0%, #7c3aed 70%, #9333ea 100%);
    color: #fff; border-radius: 28px; padding: 28px; overflow: hidden; position: relative;
}
.hero-badge { display: inline-flex; background: rgba(255,255,255,.14); border-radius: 999px; padding: 7px 12px; margin-bottom: 14px; }
.info-list { display: grid; gap: 12px; }
.info-item { display: flex; align-items: start; gap: 12px; padding: 14px 16px; border-radius: 18px; background: #f8fbff; border: 1px solid #e5edf9; }
.info-item i { color: var(--primary); font-size: 1.05rem; }
.quick-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.footer-bar {
    display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; color: var(--muted); font-size: .92rem;
    padding: 16px 6px 8px;
}
.login-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.login-card { max-width: 520px; width: 100%; border-radius: 28px; overflow: hidden; }
.mobile-sidebar .menu-link { color: var(--dark); background: #fff; border: 1px solid #edf2fa; }
.mobile-sidebar .menu-link.active { background: #eff6ff; color: var(--primary-dark); }
@media (max-width: 991.98px) {
    .main-panel { padding: 14px; }
    .top-header { border-radius: 18px; padding: 12px 14px; }
    .quick-grid { grid-template-columns: 1fr; }
}
@media (max-width: 575.98px) {
    .top-header { align-items: flex-start; }
    .user-chip { display: none; }
    .hero-banner { padding: 20px; }
}
