@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@500;600;700;800&display=swap');

:root {
    --bg: #f4f7fb;
    --panel: #ffffff;
    --panel-soft: #f8fafc;
    --line: #e5e7eb;
    --text: #111827;
    --muted: #6b7280;
    --primary: #111827;
    --primary-soft: #eef2ff;
    --shadow: 0 14px 42px rgba(15, 23, 42, 0.08);
    --shadow-soft: 0 8px 20px rgba(15, 23, 42, 0.06);
    --radius: 20px;
    --font-body: 'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', 'Segoe UI', sans-serif;
    --font-mono: 'JetBrains Mono', 'SFMono-Regular', Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
body {
    font-family: var(--font-body);
    line-height: 1.6;
    background:
        radial-gradient(circle at top left, rgba(99, 102, 241, 0.10), transparent 28%),
        radial-gradient(circle at top right, rgba(16, 185, 129, 0.07), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
    color: var(--text);
    min-height: 100vh;
}
a { text-decoration: none; color: inherit; }
button, input, select, textarea {
    font: inherit;
}
.layout { display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
h1, h2, h3, h4, h5, h6,
.brand h2,
.topbar h1,
.section-head h3,
.section-head-modern h3,
.login-card h1,
.login-card-head h2,
.stat-card .value,
.kpi-item .number,
.trend-summary-card strong,
.month-bar-topline strong {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}
.sidebar {
    background: rgba(255, 255, 255, 0.88);
    border-right: 1px solid rgba(229, 231, 235, 0.85);
    padding: 24px;
    backdrop-filter: blur(18px);
}
.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.brand-logo {
    width: 50px;
    height: 50px;
    border-radius: 18px;
    background: linear-gradient(135deg, #0f172a, #334155);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: var(--shadow-soft);
}
.brand h2 { font-size: 18px; font-weight: 800; }
.brand small { color: var(--muted); font-size: 12px; }
.menu-title, .sidebar-box-title {
    font-size: 11px;
    text-transform: uppercase;
    color: #94a3b8;
    margin-bottom: 12px;
    letter-spacing: .16em;
    font-weight: 800;
}
.menu-group { display: flex; flex-direction: column; gap: 8px; }
.menu-link {
    padding: 11px 12px;
    border-radius: 14px;
    background: rgba(248, 250, 252, 0.95);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: -0.01em;
    border: 1px solid transparent;
    transition: all .18s ease;
}
.menu-link:hover, .menu-link.active {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.18);
}
.menu-link.secondary { background: #f3f4f6; }
.sidebar-box {
    margin-top: 28px;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border: 1px solid var(--line);
}
.sidebar-box p { margin-bottom: 6px; font-weight: 700; }
.sidebar-box small { color: var(--muted); }
.main-content { padding: 24px; }
.topbar {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 18px 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.76);
    border: 1px solid rgba(229, 231, 235, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow-soft);
}
.topbar h1 { font-size: 27px; margin-bottom: 4px; font-weight: 800; line-height: 1.14; }
.topbar p { color: var(--muted); font-size: 13px; max-width: 720px; line-height: 1.6; }
.topbar-right { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.user-chip {
    background: linear-gradient(135deg, #111827, #374151);
    color: #fff;
    padding: 9px 13px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: -0.01em;
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.15);
}
.card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: var(--radius);
    padding: 18px;
    box-shadow: var(--shadow-soft);
    margin-bottom: 20px;
    border: 1px solid rgba(229, 231, 235, 0.82);
}
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.stat-card {
    position: relative;
    overflow: hidden;
}
.stat-card::after {
    content: "";
    position: absolute;
    inset: auto -30px -30px auto;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.12) 0%, rgba(99,102,241,0) 70%);
}
.stat-card .value { font-size: 27px; font-weight: 800; margin: 8px 0; line-height: 1.08; font-variant-numeric: tabular-nums; }
.stat-card .label { font-size: 13px; color: var(--muted); font-weight: 700; letter-spacing: -0.01em; }
.stat-card .note { font-size: 12px; color: var(--muted); }
.section-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h3 { font-size: 18px; margin-bottom: 4px; font-weight: 800; }
.section-head p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
    border: none;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all .18s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 18px rgba(17, 24, 39, 0.14); }
.btn-outline {
    background: rgba(255,255,255,0.94);
    color: var(--text);
    border: 1px solid #d1d5db;
}
.btn-danger { background: linear-gradient(135deg, #991b1b, #b91c1c); }
.btn-success { background: linear-gradient(135deg, #166534, #15803d); }
.btn-warning { background: linear-gradient(135deg, #92400e, #b45309); }
.action-row { display: flex; gap: 10px; flex-wrap: wrap; }
.form-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
label { font-size: 12px; font-weight: 700; letter-spacing: -0.01em; }
input, select, textarea {
    width: 100%;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d1d5db;
    background: rgba(255,255,255,0.96);
    transition: border-color .18s ease, box-shadow .18s ease;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #94a3b8;
    box-shadow: 0 0 0 4px rgba(148, 163, 184, 0.16);
}
textarea { min-height: 100px; resize: vertical; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
table th, table td { padding: 12px 10px; border-bottom: 1px solid #eef2f7; text-align: left; vertical-align: top; font-size: 13px; letter-spacing: -0.01em; }
table th {
    background: #f8fafc;
    color: #475569;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: .12em;
    font-weight: 800;
}
.badge { display: inline-block; padding: 6px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-neutral { background: #e5e7eb; color: #111827; }
.alert { padding: 12px 14px; border-radius: 14px; margin-bottom: 16px; font-weight: 700; border: 1px solid transparent; }
.alert-success { background: #dcfce7; color: #166534; border-color: #bbf7d0; }
.alert-error { background: #fee2e2; color: #991b1b; border-color: #fecaca; }
.alert-warning { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.login-page { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: linear-gradient(180deg, #eef2ff, #f8fafc); }
.login-card {
    width: 100%;
    max-width: 430px;
    background: rgba(255,255,255,0.94);
    border-radius: 28px;
    padding: 30px;
    box-shadow: var(--shadow);
    border: 1px solid rgba(229,231,235,0.92);
}
.login-card h1 { font-size: 30px; margin-bottom: 6px; }
.login-card p { color: var(--muted); margin-bottom: 24px; }
.helper-box, .empty-box, .info-box {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    padding: 16px;
    border-radius: 18px;
    margin-bottom: 14px;
    border: 1px solid var(--line);
}
.kpi-list { display: grid; gap: 14px; }
.kpi-item {
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border-radius: 18px;
    padding: 16px;
    border: 1px solid var(--line);
}
.kpi-item .title { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi-item .number { font-size: 27px; font-weight: 800; margin-top: 8px; font-variant-numeric: tabular-nums; }
.text-muted { color: var(--muted); }
.print-wrapper { max-width: 860px; margin: 24px auto; background: #fff; padding: 42px; box-shadow: 0 4px 12px rgba(15,23,42,.08); }
.print-header { text-align: center; margin-bottom: 28px; }
.print-header h2 { font-size: 24px; margin-bottom: 4px; }
.print-header p { font-size: 14px; }
.signature-row { display: grid; grid-template-columns: repeat(2,1fr); gap: 40px; margin-top: 40px; }
.signature-box { text-align: center; }
.no-print { margin-bottom: 20px; }
.floating-flash { max-width: 540px; margin: 16px auto; }

.student-layout { grid-template-columns: 1fr; min-height: auto; }
.student-layout .sidebar { display: none; }
.student-layout .main-content {
    max-width: 1220px;
    width: 100%;
    margin: 0 auto;
    padding: 24px 24px 110px;
}
.student-layout .topbar {
    position: sticky;
    top: 16px;
    z-index: 40;
    background: rgba(255, 255, 255, 0.82);
}
.student-mobile-only { display: none; }
.student-desktop-only { display: block; }
.student-hero {
    overflow: hidden;
    position: relative;
    padding: 0;
    background: linear-gradient(135deg, #0f172a 0%, #172554 48%, #0f766e 120%);
    color: #fff;
}
.student-hero::after {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    border-radius: 999px;
    right: -80px;
    top: -80px;
    background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 70%);
}
.student-hero-content { padding: 28px; position: relative; z-index: 2; }
.student-hero-eyebrow {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .24em;
    color: rgba(255,255,255,.58);
}
.student-hero-title { font-size: 34px; line-height: 1.15; font-weight: 800; margin-top: 14px; max-width: 720px; }
.student-hero-copy { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,.76); max-width: 760px; margin-top: 10px; }
.student-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 28px; }
.student-profile-panel {
    border-radius: 28px;
    padding: 18px;
    background: rgba(255,255,255,.12);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,.12);
}
.student-profile-head { display: flex; gap: 16px; align-items: center; }
.student-avatar {
    flex: 0 0 auto;
    width: 82px;
    height: 82px;
    border-radius: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    background: rgba(255,255,255,.14);
    border: 1px solid rgba(255,255,255,.18);
}
.student-profile-meta h3 { font-size: 24px; margin-bottom: 6px; }
.student-profile-meta p { color: rgba(255,255,255,.75); font-size: 14px; }
.student-chip-row, .student-button-row { display: flex; gap: 10px; flex-wrap: wrap; }
.student-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,.12);
    color: rgba(255,255,255,.92);
}
.student-chip.success { background: rgba(16,185,129,.18); color: #d1fae5; }
.student-hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.student-hero-stat {
    border-radius: 22px;
    background: rgba(255,255,255,.10);
    padding: 16px;
    border: 1px solid rgba(255,255,255,.10);
}
.student-hero-stat .small { color: rgba(255,255,255,.65); font-size: 12px; }
.student-hero-stat .big { margin-top: 8px; font-size: 24px; font-weight: 800; }
.student-hero-stat .tiny { margin-top: 6px; color: rgba(255,255,255,.64); font-size: 12px; }
.student-side-panel {
    border-radius: 28px;
    background: #ffffff;
    color: var(--text);
    padding: 18px;
    box-shadow: var(--shadow-soft);
}
.student-side-panel h3 { font-size: 18px; }
.student-side-panel p { color: var(--muted); font-size: 13px; margin-top: 4px; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 18px; }
.quick-card {
    display: block;
    border-radius: 22px;
    background: #f8fafc;
    padding: 16px;
    border: 1px solid #eef2f7;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.quick-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-soft); background: #ffffff; }
.quick-icon {
    width: 46px;
    height: 46px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
    font-size: 13px;
    font-weight: 800;
    color: #334155;
    margin-bottom: 14px;
}
.quick-card strong { display: block; font-size: 14px; margin-bottom: 4px; }
.quick-card span { display: block; font-size: 12px; color: var(--muted); line-height: 1.5; }
.student-summary-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: 20px; }
.student-stack-card { border-radius: 28px; }
.progress-list { display: grid; gap: 14px; }
.progress-item {
    border-radius: 20px;
    background: #f8fafc;
    padding: 15px;
    border: 1px solid #eef2f7;
}
.progress-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; font-size: 14px; font-weight: 700; margin-bottom: 10px; }
.progress-row small { color: var(--muted); font-weight: 700; }
.progress-track { height: 10px; background: #e5e7eb; border-radius: 999px; overflow: hidden; }
.progress-fill {
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(135deg, #111827, #4338ca);
}
.student-note {
    margin-top: 16px;
    border-radius: 18px;
    padding: 14px;
    background: linear-gradient(135deg, #fef3c7, #ffedd5);
    border: 1px solid #fde68a;
}
.student-note strong { display: block; margin-bottom: 6px; }
.student-note p { color: #7c2d12; font-size: 13px; line-height: 1.65; }
.feed-list { display: grid; gap: 14px; }
.feed-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    border-radius: 24px;
    padding: 16px;
    border: 1px solid #eef2f7;
    background: #ffffff;
}
.feed-item.violation { background: linear-gradient(180deg, #fff7f7, #ffffff); }
.feed-item.achievement { background: linear-gradient(180deg, #f2fff8, #ffffff); }
.feed-icon {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 800;
    flex: 0 0 auto;
}
.feed-item.violation .feed-icon { background: #fee2e2; color: #b91c1c; }
.feed-item.achievement .feed-icon { background: #d1fae5; color: #166534; }
.feed-content { flex: 1 1 auto; min-width: 0; }
.feed-title { font-size: 15px; font-weight: 800; color: var(--text); }
.feed-meta { color: var(--muted); font-size: 12px; margin-top: 4px; line-height: 1.55; }
.feed-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
}
.feed-link { font-size: 12px; font-weight: 800; color: #334155; }
.student-two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.student-highlight-card {
    border-radius: 28px;
    background: linear-gradient(135deg, #0f172a, #111827);
    color: #ffffff;
}
.student-highlight-card p { color: rgba(255,255,255,.72); }
.student-highlight-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.student-highlight-actions .btn-outline {
    background: rgba(255,255,255,.08);
    color: #ffffff;
    border-color: rgba(255,255,255,.14);
}
.student-mobile-shell {
    max-width: 420px;
    margin: 0 auto;
    border-radius: 38px;
    padding: 12px;
    background: rgba(255,255,255,.92);
    box-shadow: 0 32px 56px rgba(15, 23, 42, 0.18);
    border: 1px solid rgba(226, 232, 240, 0.95);
}
.student-mobile-frame {
    overflow: hidden;
    border-radius: 30px;
    background: #0f172a;
}
.mobile-hero {
    padding: 22px 18px 24px;
    background: linear-gradient(135deg, #020617 0%, #172554 52%, #0f766e 120%);
    color: #ffffff;
}
.mobile-hero-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-start; }
.mobile-hero-top strong { display: block; font-size: 22px; margin-top: 10px; }
.mobile-hero-top p { font-size: 13px; line-height: 1.55; color: rgba(255,255,255,.72); margin-top: 6px; }
.mobile-eyebrow { font-size: 11px; text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,.5); }
.mobile-glow {
    width: 48px;
    height: 48px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.12);
    color: #ffffff;
    font-weight: 800;
}
.mobile-profile {
    margin-top: 18px;
    border-radius: 24px;
    background: rgba(255,255,255,.11);
    padding: 16px;
    backdrop-filter: blur(16px);
    border: 1px solid rgba(255,255,255,.10);
}
.mobile-profile-head { display: flex; gap: 12px; }
.mobile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.16);
    font-weight: 800;
}
.mobile-profile h3 { font-size: 17px; margin-bottom: 5px; }
.mobile-profile p { font-size: 12px; color: rgba(255,255,255,.72); }
.mobile-chip-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.mobile-chip {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    background: rgba(255,255,255,.12);
}
.mobile-chip.success { background: rgba(16,185,129,.18); color: #d1fae5; }
.mobile-stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.mobile-stat {
    border-radius: 18px;
    background: rgba(255,255,255,.10);
    padding: 12px 10px;
}
.mobile-stat small { display: block; font-size: 10px; color: rgba(255,255,255,.58); }
.mobile-stat strong { display: block; font-size: 18px; margin-top: 6px; }
.mobile-body {
    background: #f8fafc;
    padding: 16px 14px 18px;
    color: var(--text);
}
.mobile-section { margin-bottom: 14px; }
.mobile-section-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-bottom: 12px; }
.mobile-section-head h4 { font-size: 14px; }
.mobile-section-head span { font-size: 11px; color: var(--muted); font-weight: 700; }
.mobile-quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.mobile-quick-card {
    display: block;
    border-radius: 18px;
    background: #ffffff;
    padding: 12px 10px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}
.mobile-quick-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    font-size: 11px;
    font-weight: 800;
    color: #475569;
}
.mobile-quick-card strong { display: block; font-size: 11px; line-height: 1.3; }
.mobile-quick-card small { display: block; color: var(--muted); font-size: 10px; margin-top: 4px; line-height: 1.35; }
.mobile-panel {
    border-radius: 22px;
    background: #ffffff;
    padding: 15px;
    box-shadow: 0 8px 16px rgba(15, 23, 42, 0.05);
}
.mobile-progress-item + .mobile-progress-item { margin-top: 12px; }
.mobile-progress-row { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; font-weight: 700; margin-bottom: 8px; }
.mobile-progress-row span:last-child { color: var(--muted); }
.mobile-progress-track { height: 8px; border-radius: 999px; background: #e5e7eb; overflow: hidden; }
.mobile-progress-fill { height: 100%; border-radius: 999px; background: linear-gradient(135deg, #111827, #4338ca); }
.mobile-feed-item {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border-radius: 18px;
    padding: 12px;
}
.mobile-feed-item + .mobile-feed-item { margin-top: 10px; }
.mobile-feed-item.violation { background: #fff1f2; }
.mobile-feed-item.achievement { background: #ecfdf5; }
.mobile-feed-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 800;
    flex: 0 0 auto;
}
.mobile-feed-item.violation .mobile-feed-icon { background: #ffe4e6; color: #be123c; }
.mobile-feed-item.achievement .mobile-feed-icon { background: #d1fae5; color: #166534; }
.mobile-feed-content strong { display: block; font-size: 13px; line-height: 1.35; }
.mobile-feed-content small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; line-height: 1.45; }
.mobile-banner {
    border-radius: 22px;
    background: linear-gradient(135deg, #111827, #1e293b);
    color: #ffffff;
    padding: 16px;
}
.mobile-banner p { font-size: 12px; color: rgba(255,255,255,.7); line-height: 1.55; margin-top: 6px; }
.mobile-banner .action-row { margin-top: 12px; }
.mobile-banner .btn, .mobile-banner .btn-outline { padding: 9px 13px; font-size: 12px; border-radius: 999px; }
.mobile-banner .btn-outline { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }
.student-bottom-nav {
    position: fixed;
    left: 50%;
    bottom: 16px;
    transform: translateX(-50%);
    width: calc(100% - 24px);
    max-width: 420px;
    background: rgba(15, 23, 42, 0.94);
    color: rgba(255,255,255,.72);
    border-radius: 24px;
    padding: 8px;
    display: none;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    z-index: 60;
    box-shadow: 0 20px 38px rgba(15, 23, 42, 0.24);
}
.student-bottom-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 10px 8px;
    border-radius: 18px;
    font-size: 10px;
    font-weight: 700;
}
.student-bottom-link .icon {
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,.06);
    font-size: 13px;
}
.student-bottom-link.active {
    background: #ffffff;
    color: #111827;
}
.student-bottom-link.active .icon { background: #f3f4f6; }


.mobile-page-hero.mobile-page-violation { background: linear-gradient(135deg, #020617 0%, #312e81 50%, #991b1b 120%); }
.mobile-page-hero.mobile-page-achievement { background: linear-gradient(135deg, #022c22 0%, #065f46 42%, #1d4ed8 120%); }
.mobile-page-profile { margin-bottom: 2px; }
.mobile-stat-grid-2 { grid-template-columns: repeat(4, 1fr); }
.mobile-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.mobile-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 8px 11px;
    font-size: 11px;
    font-weight: 800;
}
.mobile-pill.success { background: #dcfce7; color: #166534; }
.mobile-pill.warning { background: #fef3c7; color: #92400e; }
.mobile-pill.danger { background: #fee2e2; color: #991b1b; }
.mobile-pill.info { background: #dbeafe; color: #1d4ed8; }
.mobile-feed-card {
    border-radius: 20px;
    padding: 14px;
    border: 1px solid #eef2f7;
    background: #ffffff;
}
.mobile-feed-card + .mobile-feed-card { margin-top: 12px; }
.mobile-feed-card.violation { background: linear-gradient(180deg, #fff7f7, #ffffff); }
.mobile-feed-card.achievement { background: linear-gradient(180deg, #effdf5, #ffffff); }
.mobile-feed-card-top {
    display: flex;
    gap: 10px;
    align-items: flex-start;
}
.mobile-feed-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
}
.mobile-score-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 7px 10px;
    font-size: 11px;
    font-weight: 800;
}
.mobile-score-pill.negative { background: #fee2e2; color: #991b1b; }
.mobile-score-pill.positive { background: #dcfce7; color: #166534; }
.mobile-card-note {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #eef2f7;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.55;
}
.student-page-hero {
    overflow: hidden;
    position: relative;
    padding: 0;
    border: 0;
    color: #ffffff;
}
.student-page-hero::after {
    content: "";
    position: absolute;
    width: 320px;
    height: 320px;
    right: -110px;
    top: -110px;
    border-radius: 999px;
    background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 70%);
}
.student-page-hero-violation { background: linear-gradient(135deg, #020617 0%, #1e1b4b 48%, #991b1b 130%); }
.student-page-hero-achievement { background: linear-gradient(135deg, #022c22 0%, #065f46 44%, #1d4ed8 130%); }
.student-page-hero-content {
    position: relative;
    z-index: 2;
    padding: 30px;
}
.student-page-grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 20px;
}
.student-page-main, .student-page-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.student-page-title {
    margin-top: 14px;
    max-width: 760px;
    font-size: 34px;
    line-height: 1.15;
    font-weight: 800;
}
.student-page-copy {
    margin-top: 10px;
    max-width: 760px;
    font-size: 14px;
    line-height: 1.7;
    color: rgba(255,255,255,.76);
}
.student-page-hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
    margin-top: 26px;
}
.student-page-stat {
    border-radius: 24px;
    padding: 18px;
    background: rgba(255,255,255,.11);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(14px);
}
.student-page-stat span {
    display: block;
    font-size: 11px;
    color: rgba(255,255,255,.64);
}
.student-page-stat strong {
    display: block;
    margin-top: 8px;
    font-size: 26px;
    font-weight: 800;
}
.student-page-stat small {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    color: rgba(255,255,255,.68);
}
.student-page-feed-card { border-radius: 26px; }
.student-page-side-panel {
    border-radius: 28px;
    box-shadow: var(--shadow-soft);
}
.student-status-stack {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}
.student-status-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    padding: 14px 16px;
    border-radius: 20px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
    font-size: 14px;
    font-weight: 700;
}
.student-status-row strong { font-size: 18px; }
.compact-progress-list .progress-item { padding: 14px; }
.soft-danger {
    background: linear-gradient(180deg, #fff7f7, #ffffff);
    border-color: #fee2e2;
}
.soft-success {
    background: linear-gradient(180deg, #f3fff8, #ffffff);
    border-color: #d1fae5;
}

@media print {
    .no-print, .student-bottom-nav { display:none !important; }
    body { background:#fff; }
    .print-wrapper { box-shadow:none; margin:0; max-width:100%; }
}
@media (max-width: 1180px) {
    .student-hero-grid, .student-summary-grid, .student-two-col { grid-template-columns: 1fr; }
    .student-hero-title { font-size: 30px; }
}
@media (max-width:1100px) {
    .grid-4 { grid-template-columns: repeat(2,1fr); }
    .grid-3 { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 991px) {
    .student-mobile-only { display: block; }
    .student-desktop-only { display: none; }
}
@media (max-width:860px) {
    .layout { grid-template-columns:1fr; }
    .sidebar { display:none; }
    .main-content { padding:18px; }
    .grid-2,.grid-3,.grid-4,.form-grid,.signature-row { grid-template-columns:1fr; }
    .topbar h1 { font-size:22px; }
    .topbar { padding: 14px 16px; border-radius: 18px; }
    .student-layout .topbar { margin-bottom: 16px; }
    .student-layout .main-content { padding: 16px 16px 98px; }
    .student-layout .topbar-right { display: none; }
    .student-bottom-nav { display: grid; }
}


.menu-link {
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-icon { min-height: 40px; }
.menu-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.65);
    font-size: 14px;
    box-shadow: inset 0 0 0 1px rgba(226,232,240,.9);
}
.menu-link.active .menu-link-icon,
.menu-link:hover .menu-link-icon {
    background: rgba(255,255,255,.14);
    box-shadow: inset 0 0 0 1px rgba(255,255,255,.08);
}
.section-title-icon {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: #f8fafc;
    margin-right: 8px;
    font-size: 14px;
    vertical-align: middle;
}
.premium-login-page {
    background:
        radial-gradient(circle at top left, rgba(99,102,241,.18), transparent 28%),
        radial-gradient(circle at bottom right, rgba(16,185,129,.14), transparent 26%),
        linear-gradient(180deg, #eef2ff, #f8fafc);
}
.login-shell {
    width: min(1160px, 100%);
    display: grid;
    grid-template-columns: 1.08fr .92fr;
    gap: 18px;
    align-items: stretch;
}
.login-showcase {
    border-radius: 28px;
    padding: 22px;
    background: linear-gradient(135deg, #020617 0%, #172554 50%, #0f766e 120%);
    color: #fff;
    box-shadow: 0 28px 54px rgba(15,23,42,.22);
    position: relative;
    overflow: hidden;
}
.login-showcase::after {
    content: "";
    position: absolute;
    width: 360px;
    height: 360px;
    border-radius: 999px;
    right: -120px;
    top: -120px;
    background: radial-gradient(circle, rgba(255,255,255,.14) 0%, rgba(255,255,255,0) 70%);
}
.login-showcase-top,
.login-card-head,
.section-mini-head,
.profile-identity-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}
.login-showcase h1 {
    font-size: 32px;
    line-height: 1.12;
    margin-top: 12px;
    max-width: 680px;
}
.login-showcase p {
    color: rgba(255,255,255,.74);
    margin-top: 12px;
    margin-bottom: 0;
    max-width: 620px;
    line-height: 1.7;
}
.login-brand-badge,
.login-icon-circle {
    width: 48px;
    height: 48px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 18px;
    background: rgba(255,255,255,.12);
    color: #fff;
    border: 1px solid rgba(255,255,255,.14);
}
.login-mobile-preview {
    margin-top: 26px;
    max-width: 430px;
    border-radius: 34px;
    overflow: hidden;
    box-shadow: 0 24px 44px rgba(15,23,42,.18);
    border: 1px solid rgba(255,255,255,.14);
}
.login-mobile-hero { background: linear-gradient(135deg, #020617 0%, #1e1b4b 54%, #0f766e 120%); }
.premium-login-card {
    max-width: none;
    padding: 24px;
    border-radius: 28px;
}
.premium-login-card h2 {
    font-size: 24px;
    margin-bottom: 6px;
}
.role-pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 18px;
}
.role-pill {
    border-radius: 999px;
    padding: 7px 11px;
    background: #f8fafc;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
    border: 1px solid #e5e7eb;
}
.role-pill.active {
    background: #111827;
    color: #fff;
    border-color: #111827;
}
.login-submit-btn {
    min-height: 42px;
    font-size: 13px;
}
.login-card p,
.login-card-head p { font-size: 13px; line-height: 1.55; }
.login-card .form-group input { font-size: 13px; }
.demo-account-box { margin-top: 18px; }
.section-mini-head strong { font-size: 14px; }
.section-mini-head span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}
.demo-account-list {
    display: grid;
    gap: 10px;
    margin-top: 14px;
}
.demo-account-item {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border-radius: 18px;
    background: #fff;
    border: 1px solid #eef2f7;
}
.demo-account-item.active {
    background: linear-gradient(135deg, #eff6ff, #eef2ff);
    border-color: #c7d2fe;
}
.demo-icon {
    width: 42px;
    height: 42px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    font-size: 18px;
}
.demo-account-item strong { display: block; font-size: 14px; }
.demo-account-item small { display: block; color: var(--muted); margin-top: 3px; }
.student-bottom-nav {
    max-width: 520px;
    grid-template-columns: repeat(5, 1fr);
}
.student-bottom-link .icon {
    font-size: 14px;
}
.student-page-hero-profile { background: linear-gradient(135deg, #020617 0%, #172554 44%, #0f766e 124%); }
.profile-main-card {
    padding: 26px;
}
.profile-avatar-xl {
    width: 92px;
    height: 92px;
    border-radius: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 800;
    color: #fff;
    background: linear-gradient(135deg, #111827, #4338ca);
    box-shadow: 0 18px 30px rgba(67,56,202,.18);
}
.profile-name {
    font-size: 28px;
    margin-top: 6px;
}
.profile-subtitle {
    margin-top: 6px;
    color: var(--muted);
    line-height: 1.65;
}
.profile-chip {
    background: #eef2ff;
    color: #312e81;
}
.profile-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 22px;
}
.profile-info-card,
.profile-info-item {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    border-radius: 18px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}
.profile-info-card small,
.profile-info-item small {
    display: block;
    color: var(--muted);
    font-size: 11px;
}
.profile-info-card strong,
.profile-info-item strong {
    display: block;
    margin-top: 5px;
    font-size: 14px;
    line-height: 1.55;
}
.profile-info-icon {
    width: 42px;
    height: 42px;
    flex: 0 0 auto;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 8px 16px rgba(15,23,42,.06);
    font-size: 18px;
}
.profile-address-card {
    margin-top: 18px;
    border-radius: 24px;
    padding: 18px;
    background: linear-gradient(180deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
}
.profile-address-card p {
    margin-top: 12px;
    color: #334155;
    line-height: 1.8;
}
.profile-quick-grid { margin-top: 18px; }
.mobile-profile-info-list {
    display: grid;
    gap: 8px;
}
.btn-icon { min-height: 40px; }
.mobile-profile-info-list.compact .profile-info-item strong { font-size: 13px; }
.soft-info {
    background: linear-gradient(180deg, #eff6ff, #ffffff);
}
@media (max-width: 1080px) {
    .login-shell,
    .student-page-grid,
    .student-summary-grid,
    .student-hero-grid,
    .student-two-col {
        grid-template-columns: 1fr;
    }
    .login-showcase h1 { font-size: 28px; }
    .login-mobile-preview { max-width: 100%; }
}
@media (max-width: 860px) {
    .login-shell { grid-template-columns: 1fr; }
    .login-showcase { display: none; }
    .premium-login-card { border-radius: 22px; padding: 20px; }
    .profile-info-grid { grid-template-columns: 1fr; }
}

/* Modern admin and teacher refinements */
.icon-svg { width: 18px; height: 18px; stroke-width: 2; flex: 0 0 auto; }
.menu-link-icon, .topbar-icon, .topbar-meta-icon, .section-title-icon, .stat-icon, .hero-mini-icon, .inline-icon, .student-bottom-link .icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.menu-link { display: flex; align-items: center; gap: 12px; }
.menu-link-icon {
    width: 36px;
    height: 36px;
    border-radius: 14px;
    background: rgba(15, 23, 42, 0.05);
    color: #334155;
}
.menu-link.active .menu-link-icon,
.menu-link:hover .menu-link-icon {
    background: rgba(255,255,255,0.12);
    color: #ffffff;
}
.sidebar-highlight-box .menu-link.secondary { background: rgba(255,255,255,0.72); }
.topbar-modern {
    background: linear-gradient(135deg, rgba(255,255,255,.9), rgba(255,255,255,.76));
    border: 1px solid rgba(226, 232, 240, 0.9);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}
.topbar-identity { display: flex; align-items: center; gap: 16px; }
.topbar-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
    background: linear-gradient(135deg, #111827, #4338ca);
    color: #ffffff;
    box-shadow: 0 14px 24px rgba(67, 56, 202, 0.18);
}
.topbar-icon.role-admin { background: linear-gradient(135deg, #0f172a, #3730a3); }
.topbar-icon.role-guru { background: linear-gradient(135deg, #0f172a, #0f766e); }
.topbar-icon .icon-svg { width: 24px; height: 24px; }
.page-kicker {
    font-family: var(--font-display);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: .2em;
    color: #6366f1;
    font-weight: 800;
    margin-bottom: 6px;
}
.topbar-meta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.topbar-meta-icon {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: rgba(99,102,241,.12);
}
.btn-icon { gap: 8px; }
.section-title-icon,
.stat-icon,
.hero-mini-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: #eef2ff;
    color: #4338ca;
}
.section-head h3,
.section-head-modern h3 { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.section-head-modern {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.section-head-modern p { color: var(--muted); font-size: 13px; line-height: 1.6; }
.admin-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 55%, #1d4ed8 120%);
    color: #fff;
}
.admin-hero.teacher-hero { background: linear-gradient(135deg, #0f172a 0%, #134e4a 55%, #0ea5e9 120%); }
.admin-hero::after {
    content: '';
    position: absolute;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    top: -70px;
    right: -60px;
    background: radial-gradient(circle, rgba(255,255,255,.16) 0%, rgba(255,255,255,0) 70%);
}
.admin-hero-body { position: relative; z-index: 2; padding: 24px; }
.admin-hero-kicker { font-size: 12px; text-transform: uppercase; letter-spacing: .18em; color: rgba(255,255,255,.58); }
.admin-hero h2 { font-size: 28px; line-height: 1.16; margin-top: 10px; max-width: 760px; }
.admin-hero p { font-size: 13px; line-height: 1.62; color: rgba(255,255,255,.78); margin-top: 8px; max-width: 760px; }
.admin-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 18px; margin-top: 22px; }
.hero-mini-panel {
    border-radius: 26px;
    padding: 18px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.12);
    backdrop-filter: blur(14px);
}
.hero-mini-panel.light {
    background: rgba(255,255,255,.95);
    color: var(--text);
}
.hero-mini-panel .muted,
.hero-mini-panel.light .muted { color: rgba(255,255,255,.68); }
.hero-mini-panel.light .muted { color: var(--muted); }
.hero-mini-head { display: flex; justify-content: space-between; gap: 12px; align-items: center; margin-bottom: 18px; }
.hero-mini-title { font-size: 14px; font-weight: 800; }
.hero-mini-copy { font-size: 12px; line-height: 1.55; color: rgba(255,255,255,.72); }
.hero-mini-panel.light .hero-mini-copy { color: var(--muted); }
.hero-mini-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.hero-mini-stat {
    border-radius: 20px;
    padding: 14px;
    background: rgba(255,255,255,.1);
    border: 1px solid rgba(255,255,255,.08);
}
.hero-mini-panel.light .hero-mini-stat {
    background: #f8fafc;
    border-color: #eef2f7;
}
.hero-mini-stat small { display: block; font-size: 11px; color: rgba(255,255,255,.62); }
.hero-mini-panel.light .hero-mini-stat small { color: var(--muted); }
.hero-mini-stat strong { display: block; font-size: 20px; margin-top: 6px; }
.page-intro-card {
    margin-bottom: 20px;
    border-radius: 28px;
    background: linear-gradient(135deg, #ffffff, #f8fbff);
    border: 1px solid rgba(226, 232, 240, 0.92);
}
.page-intro-head { display: flex; justify-content: space-between; gap: 18px; align-items: center; flex-wrap: wrap; }
.page-intro-title { display: flex; align-items: center; gap: 14px; }
.page-intro-title h2 { font-size: 21px; }
.page-intro-title p { color: var(--muted); margin-top: 6px; }
.page-intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #111827;
    color: #ffffff;
    font-size: 11px;
    font-weight: 700;
}
.page-intro-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 20px; }
.mini-stat-card {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
    padding: 14px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}
.mini-stat-card::after {
    content: '';
    position: absolute;
    width: 90px;
    height: 90px;
    right: -24px;
    bottom: -28px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99,102,241,.12) 0%, rgba(99,102,241,0) 70%);
}
.mini-stat-label { color: var(--muted); font-size: 12px; font-weight: 700; }
.mini-stat-value { font-size: 24px; font-weight: 800; margin-top: 6px; }
.mini-stat-note { color: var(--muted); font-size: 12px; margin-top: 4px; }
.module-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 20px; }
.card.soft-panel {
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid rgba(226, 232, 240, 0.9);
}
.card.emphasis-panel {
    background: linear-gradient(135deg, #0f172a, #1e1b4b);
    color: #ffffff;
}
.card.emphasis-panel p,
.card.emphasis-panel .text-muted,
.card.emphasis-panel .note,
.card.emphasis-panel .label { color: rgba(255,255,255,.72); }
.kpi-list.kpi-compact { grid-template-columns: repeat(2, 1fr); }
.kpi-grid-modern { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.metric-card {
    border-radius: 18px;
    padding: 14px;
    border: 1px solid #eef2f7;
    background: #ffffff;
}
.metric-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.metric-card .metric-value { font-size: 26px; font-weight: 800; margin-top: 12px; }
.metric-card .metric-copy { color: var(--muted); font-size: 12px; margin-top: 6px; }
.metric-list { display: grid; gap: 12px; }
.metric-list-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}
.metric-list-title { display: flex; align-items: center; gap: 12px; font-weight: 700; }
.metric-list-title .inline-icon {
    width: 34px;
    height: 34px;
    border-radius: 13px;
    background: #eef2ff;
    color: #4338ca;
}
.table-wrap.modern-table {
    border-radius: 22px;
    border: 1px solid #eef2f7;
    background: #ffffff;
}
.table-wrap.modern-table table th { background: #f8fafc; }
.table-wrap.modern-table tbody tr:hover { background: #fbfdff; }
.action-row.tight { gap: 8px; }
.form-shell {
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff, #fbfdff);
    border: 1px solid #eef2f7;
    padding: 18px;
}
.form-shell-alt {
    border-radius: 24px;
    padding: 18px;
    background: #f8fafc;
    border: 1px solid #eef2f7;
}
.form-grid.compact { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.checkbox-line { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.checkbox-line input { width: auto; }
.dashboard-split { display: grid; grid-template-columns: 1.12fr .88fr; gap: 20px; }
.modern-stack { display: grid; gap: 20px; }
.badge.badge-dark { background: #111827; color: #ffffff; }
.role-admin .card:not(.student-hero):not(.student-side-panel),
.role-guru .card:not(.student-hero):not(.student-side-panel) {
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.06);
}
.student-bottom-link .icon .icon-svg { width: 18px; height: 18px; }
@media (max-width: 1100px) {
    .admin-hero-grid,
    .dashboard-split,
    .module-grid,
    .page-intro-stats,
    .kpi-grid-modern { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
    .topbar-identity { align-items: flex-start; }
    .topbar-icon { width: 52px; height: 52px; border-radius: 18px; }
    .page-intro-head,
    .hero-mini-head { align-items: flex-start; }
    .page-intro-stats,
    .kpi-grid-modern,
    .admin-hero-grid,
    .dashboard-split,
    .module-grid,
    .hero-mini-stats { grid-template-columns: 1fr; }
}

.form-note {
    margin-top: 14px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(99, 102, 241, 0.08);
    color: #475569;
    font-size: 13px;
    line-height: 1.6;
}


.modal-open {
    overflow: hidden;
}

.app-modal {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    z-index: 1200;
}

.app-modal.is-open {
    display: flex;
}

.app-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(4px);
}

.app-modal-dialog {
    position: relative;
    width: min(900px, 100%);
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    border-radius: 24px;
    z-index: 1;
}

.modal-close-btn {
    border: 0;
    background: transparent;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #64748b;
    padding: 4px 10px;
    border-radius: 12px;
}

.modal-close-btn:hover {
    background: rgba(148, 163, 184, 0.14);
    color: #0f172a;
}

@media (max-width: 640px) {
    .app-modal {
        padding: 16px;
    }

    .app-modal-dialog {
        max-height: calc(100vh - 32px);
    }
}

.report-chart-card {
    overflow: hidden;
}

.month-bars {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 12px;
    align-items: end;
    min-height: 250px;
    padding-top: 6px;
}

.month-bar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.btn-icon { min-height: 40px; }

.month-bar-value {
    font-size: 11px;
    font-weight: 700;
    color: #334155;
}

.month-bar-track {
    width: 100%;
    min-height: 190px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(226, 232, 240, 0.65) 0%, rgba(248, 250, 252, 0.95) 100%);
    display: flex;
    align-items: end;
    justify-content: center;
    padding: 8px;
}

.month-bar-fill {
    width: 100%;
    border-radius: 16px;
    background: linear-gradient(180deg, #4f46e5 0%, #0f172a 100%);
    box-shadow: 0 12px 24px rgba(79, 70, 229, 0.18);
}

.month-bar-label {
    font-size: 11px;
    color: #64748b;
    font-weight: 600;
}

.report-section-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

@media (max-width: 1100px) {
    .report-section-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 860px) {
    .month-bars {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}


.notif-chip { display:inline-flex; align-items:center; gap:8px; padding:10px 14px; border-radius:999px; background:rgba(255,255,255,.85); color:#0f172a; text-decoration:none; border:1px solid rgba(148,163,184,.35); font-weight:600; letter-spacing:-0.01em; }
.notif-chip strong { min-width:22px; height:22px; display:inline-flex; align-items:center; justify-content:center; border-radius:999px; background:#111827; color:#fff; font-size:12px; padding:0 6px; }
.notification-list { display:grid; gap:14px; }
.notification-list.compact { gap:10px; }
.notification-item { display:flex; justify-content:space-between; gap:16px; align-items:flex-start; padding:16px; border-radius:18px; border:1px solid rgba(148,163,184,.2); background:#fff; }
.notification-item.unread { border-color: rgba(245, 158, 11, .35); background: rgba(255, 251, 235, .8); }
.notification-main h4 { margin:0 0 6px; font-size:16px; }
.notification-main p { margin:0 0 6px; color:#334155; }
.notification-main small { color:#64748b; }
.empty-state { padding:24px; text-align:center; border:1px dashed rgba(148,163,184,.35); border-radius:18px; color:#64748b; }
.dual-bars .month-bar-track { display:flex; align-items:flex-end; justify-content:center; gap:8px; }
.month-bar-track.dual { min-height:150px; }
.month-bar-fill.negative { background:linear-gradient(180deg,#fb7185,#ef4444); width:18px; border-radius:12px 12px 0 0; }
.month-bar-fill.positive { background:linear-gradient(180deg,#4ade80,#16a34a); width:18px; border-radius:12px 12px 0 0; }
.month-bar-value.small { font-size:12px; color:#64748b; margin-top:6px; }
.btn-sm { padding:8px 12px; font-size:13px; border-radius:12px; }

.trend-panel {
    position: relative;
    overflow: hidden;
}

.trend-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at top right, rgba(79, 70, 229, 0.14), transparent 30%),
        radial-gradient(circle at left bottom, rgba(34, 197, 94, 0.12), transparent 32%);
    pointer-events: none;
}

.trend-panel-head,
.trend-summary-grid,
.trend-chart-shell {
    position: relative;
    z-index: 1;
}

.trend-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}

.trend-summary-card {
    padding: 16px 18px;
    border-radius: 22px;
    border: 1px solid rgba(226, 232, 240, 0.95);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.06);
    backdrop-filter: blur(10px);
}

.trend-summary-card strong {
    display: block;
    margin-top: 10px;
    font-size: 29px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.trend-summary-card small {
    display: block;
    margin-top: 10px;
    color: #64748b;
    line-height: 1.5;
}

.trend-summary-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: #475569;
}

.trend-summary-card.negative {
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(255,241,242,.96));
}

.trend-summary-card.positive {
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(240,253,244,.96));
}

.trend-summary-card.neutral {
    background: linear-gradient(180deg, rgba(255,255,255,.95), rgba(248,250,252,.96));
}

.trend-chart-shell {
    padding: 18px;
    border-radius: 26px;
    border: 1px solid rgba(226, 232, 240, 0.9);
    background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(248,250,252,.92));
}

.trend-line-wrap {
    position: relative;
    padding: 8px 0 2px;
    overflow-x: auto;
}

.trend-line-chart {
    display: block;
    width: 100%;
    min-width: 680px;
    height: auto;
}

.chart-grid-line {
    stroke: rgba(148, 163, 184, 0.22);
    stroke-width: 1;
    shape-rendering: geometricPrecision;
}

.chart-guide-line {
    stroke: rgba(148, 163, 184, 0.14);
    stroke-width: 1;
    stroke-dasharray: 4 8;
}

.chart-axis-text {
    fill: #94a3b8;
    font-size: 11px;
    font-weight: 700;
    text-anchor: end;
}

.chart-month-text {
    fill: #64748b;
    font-size: 11px;
    font-weight: 700;
    text-anchor: middle;
}

.chart-area {
    stroke: none;
}

.chart-area-negative {
    fill: url(#violationAreaGradient);
}

.chart-area-positive {
    fill: url(#achievementAreaGradient);
}

.chart-line {
    fill: none;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.chart-line-negative {
    stroke: #ef4444;
    filter: drop-shadow(0 8px 16px rgba(239, 68, 68, 0.18));
}

.chart-line-positive {
    stroke: #16a34a;
    filter: drop-shadow(0 8px 16px rgba(22, 163, 74, 0.16));
}

.chart-point {
    stroke-width: 4;
}

.chart-point-negative {
    fill: #ffffff;
    stroke: #ef4444;
}

.chart-point-positive {
    fill: #ffffff;
    stroke: #16a34a;
}

.trend-month-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 18px;
}

.trend-month-chip {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 15px 16px;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(226, 232, 240, 0.96);
    box-shadow: 0 14px 26px rgba(15, 23, 42, 0.05);
}

.trend-month-chip.is-current {
    border-color: rgba(99, 102, 241, 0.24);
    box-shadow: 0 18px 30px rgba(79, 70, 229, 0.1);
}

.trend-month-chip.negative {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(255,241,242,.94));
}

.trend-month-chip.positive {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(240,253,244,.94));
}

.trend-month-chip.neutral {
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.94));
}

.trend-month-chip-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: #475569;
    font-size: 11px;
    font-weight: 700;
}

.trend-month-chip-head strong {
    font-family: var(--font-display);
    font-size: 22px;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.trend-month-chip-stats {
    display: grid;
    gap: 8px;
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}

.trend-month-chip-stats span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.trend-month-chip-stats .legend-dot {
    width: 9px;
    height: 9px;
    box-shadow: none;
}

.trend-chart-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 16px;
}

.trend-chart-note {
    color: #64748b;
    font-size: 13px;
    text-align: right;
}

.trend-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.btn-icon { min-height: 40px; }

.trend-legend-item {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 999px;
    background: #ffffff;
    border: 1px solid rgba(226, 232, 240, 0.95);
    color: #334155;
    font-size: 11px;
    font-weight: 700;
}

.legend-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    display: inline-block;
}

.legend-dot.negative {
    background: linear-gradient(180deg, #fb7185, #ef4444);
    box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.1);
}

.legend-dot.positive {
    background: linear-gradient(180deg, #4ade80, #16a34a);
    box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.1);
}

.month-bars.dual-bars.enhanced {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 14px;
    min-height: unset;
    padding-top: 0;
}

.month-bar-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
    min-height: 280px;
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.96);
    background: linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.94));
    box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.month-bar-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 36px rgba(15, 23, 42, 0.1);
}

.month-bar-card.negative {
    border-color: rgba(251, 113, 133, 0.24);
}

.month-bar-card.positive {
    border-color: rgba(74, 222, 128, 0.28);
}

.month-bar-card.neutral {
    border-color: rgba(148, 163, 184, 0.32);
}

.month-bar-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 11px;
    color: #64748b;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.month-bar-topline strong {
    font-size: 21px;
    color: #0f172a;
    font-variant-numeric: tabular-nums;
}

.month-bar-track.dual.enhanced {
    flex: 1;
    min-height: 165px;
    align-items: end;
    justify-content: center;
    gap: 14px;
    padding: 14px 10px 10px;
    border-radius: 22px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.65), rgba(241,245,249,.95)),
        repeating-linear-gradient(
            to top,
            rgba(148, 163, 184, 0.12) 0,
            rgba(148, 163, 184, 0.12) 1px,
            transparent 1px,
            transparent 34px
        );
}

.month-bar-column {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.btn-icon { min-height: 40px; }

.month-bar-column small {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .16em;
    color: #64748b;
}

.month-bars.dual-bars.enhanced .month-bar-fill {
    width: 100%;
    max-width: 30px;
    min-height: 10px;
    border-radius: 16px 16px 10px 10px;
    position: relative;
    overflow: hidden;
}

.month-bars.dual-bars.enhanced .month-bar-fill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,.28), transparent 55%);
}

.month-bar-value.small.split {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
    color: #475569;
}

.month-bar-value.small.split span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.month-bar-balance {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: flex-start;
    min-width: 64px;
    padding: 7px 11px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
}

.month-bar-balance.negative {
    background: rgba(254, 226, 226, 0.9);
    color: #b91c1c;
}

.month-bar-balance.positive {
    background: rgba(220, 252, 231, 0.96);
    color: #15803d;
}

.month-bar-balance.neutral {
    background: rgba(226, 232, 240, 0.9);
    color: #475569;
}

@media (max-width: 1200px) {
    .trend-summary-grid,
    .trend-month-grid,
    .month-bars.dual-bars.enhanced {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .trend-chart-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .trend-chart-note {
        text-align: left;
    }

    .trend-summary-grid,
    .trend-month-grid,
    .month-bars.dual-bars.enhanced {
        grid-template-columns: 1fr;
    }

    .trend-line-chart {
        min-width: 620px;
    }

    .month-bar-card {
        min-height: 240px;
    }
}


.card p,
.helper-box p,
.empty-box p,
.info-box p,
.sidebar-box small,
.note,
.text-muted {
    line-height: 1.65;
}

/* Proportional UI refinements */
body {
    font-size: 14px;
}
.card {
    padding: 20px;
}
.topbar h1 {
    font-size: 26px;
}
.topbar p,
.section-head p,
.section-head-modern p,
.admin-hero p,
.login-card p,
.login-card-head p,
.page-intro-title p {
    font-size: 13px;
    line-height: 1.6;
}
.user-chip {
    padding: 9px 13px;
    font-size: 12px;
}
.menu-link {
    padding: 11px 12px;
    font-size: 13px;
    gap: 10px;
}
.menu-link-icon {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    font-size: 14px;
}
.btn {
    min-height: 40px;
    padding: 9px 14px;
    border-radius: 12px;
    font-size: 13px;
}
.btn-icon {
    min-height: 40px;
    padding: 9px 12px;
}
label {
    font-size: 12px;
}
input,
select,
textarea {
    padding: 10px 12px;
    font-size: 13px;
    border-radius: 12px;
}
table th {
    font-size: 10px;
}
table td {
    font-size: 13px;
}
.section-head h3,
.section-head-modern h3 {
    font-size: 18px;
}
.stat-card .value,
.mini-stat-value {
    font-size: 24px;
}
.topbar-icon {
    width: 52px;
    height: 52px;
    border-radius: 18px;
}
.topbar-icon .icon-svg {
    width: 22px;
    height: 22px;
}
.topbar-meta-pill,
.page-intro-badge {
    padding: 8px 12px;
    font-size: 11px;
}
.admin-hero-body {
    padding: 24px;
}
.admin-hero h2 {
    font-size: 28px;
}
.hero-mini-title {
    font-size: 14px;
}
.hero-mini-copy {
    font-size: 12px;
}
.hero-mini-stat strong {
    font-size: 20px;
}
.page-intro-title h2 {
    font-size: 21px;
}
.login-card,
.premium-login-card {
    padding: 22px;
    border-radius: 24px;
}
.login-card-head h2,
.premium-login-card h2 {
    font-size: 24px;
}
.role-pill {
    padding: 7px 11px;
    font-size: 11px;
}
.login-submit-btn {
    min-height: 42px;
    font-size: 13px;
}
@media (max-width: 860px) {
    .main-content {
        padding: 18px;
    }
    .topbar {
        padding: 14px 16px;
        border-radius: 18px;
    }
    .topbar h1 {
        font-size: 22px;
    }
    .premium-login-card,
    .login-card {
        padding: 18px;
        border-radius: 20px;
    }
    .admin-hero h2 {
        font-size: 24px;
    }
}


.report-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}
.report-search-group {
    width: min(100%, 380px);
}
.report-action-group {
    align-items: center;
}
.table-pager {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.table-pager-info,
.table-pager-page {
    color: #64748b;
    font-size: 13px;
    font-weight: 600;
}
.table-pager-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.table-pager .btn[disabled] {
    cursor: not-allowed;
    opacity: .55;
    transform: none;
    box-shadow: none;
}
@media (max-width: 860px) {
    .report-search-group {
        width: 100%;
    }
    .table-pager {
        align-items: flex-start;
    }
}

.btn-edit-small {
    padding: 5px 10px;
    font-size: 11px;
    border-radius: 8px;
}
.evidence-preview {
    margin-top: 10px;
}
.evidence-preview img {
    max-width: 220px;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    display: block;
    background: #fff;
}


.table-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}
.table-toolbar form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.table-summary-note {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
}
.pagination-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 16px;
}
.pagination-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.pagination-link,
.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1px solid rgba(209, 213, 219, 0.95);
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font-size: 12px;
    font-weight: 700;
}
.pagination-link.is-active {
    background: linear-gradient(135deg, #111827, #1f2937);
    color: #fff;
    border-color: transparent;
    box-shadow: 0 10px 18px rgba(17, 24, 39, 0.12);
}
.pagination-link.is-disabled {
    pointer-events: none;
    opacity: 0.45;
}
@media (max-width: 768px) {
    .pagination-wrap,
    .table-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .pagination-nav,
    .table-toolbar form {
        width: 100%;
    }

    .pagination-link {
        flex: 1 1 auto;
    }
}
