/* sishub/assets/css/style.css */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --primary: #1e3a8a;
    --primary-dark: #1d4ed8;
    --primary-light: #eff6ff;
    --accent: #2563eb;
    --bg: #f8fafc;
    --card: #ffffff;
    --border: #e2e8f0;
    --text: #0f172a;
    --muted: #64748b;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 10px 25px -5px rgba(15, 23, 42, 0.1), 0 8px 10px -6px rgba(15, 23, 42, 0.05);
    --header-h: 70px;
}

body { 
    font-family: 'Inter', system-ui, -apple-system, sans-serif; 
    background-color: var(--bg); 
    color: var(--text); 
    line-height: 1.5;
    -webkit-font-smoothing: antialiased; 
    padding-bottom: 100px;
}

/* Layout Components */
.header {
    background: linear-gradient(135deg, #1e3a8a, #2563eb, #0ea5e9);
    color: white; 
    border-bottom: none;
    position: sticky; 
    top: 0; 
    z-index: 1100;
    padding: 12px 0;
    box-shadow: 0 4px 20px rgba(37, 99, 235, 0.2);
}

.header-inner {
    width: 100%; 
    max-width: 1200px; 
    margin: auto; 
    padding: 0 24px;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

.header-left { 
    display: flex; 
    align-items: center; 
    gap: 12px; 
}

.header h1 { 
    font-size: 1.1rem; 
    font-weight: 800; 
    letter-spacing: -0.025em; 
    color: white; 
    margin: 0; 
}

.portal-btn {
    width: 36px; 
    height: 36px; 
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.2); 
    border: 1px solid rgba(255, 255, 255, 0.2);
    display: flex; 
    align-items: center; 
    justify-content: center;
    color: white; 
    text-decoration: none; 
    transition: all 0.2s;
}

.portal-btn:hover { 
    background: rgba(255, 255, 255, 0.3); 
    transform: scale(1.05);
}

.main { 
    max-width: 1200px; 
    margin: 24px auto; 
    padding: 0 24px; 
}

/* Common Components */
.card {
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    margin-bottom: 24px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.card-header {
    padding: 18px 24px; 
    border-bottom: 1px solid var(--border); 
    background: #fafafa;
    display: flex; 
    align-items: center; 
    justify-content: space-between;
}

.card-header-left { 
    display: flex; 
    align-items: center; 
    gap: 10px; 
}

.card-title { 
    font-size: 0.875rem; 
    font-weight: 800; 
    color: var(--text); 
    text-transform: uppercase; 
    letter-spacing: 0.05em; 
}

.card-body {
    padding: 24px;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    border: none;
}

.btn-primary {
    background: var(--primary);
    color: white;
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.logout-btn {
    background: rgba(255, 255, 255, 0.15); 
    color: white; 
    text-decoration: none;
    padding: 8px 18px; 
    border-radius: 99px; 
    font-size: 0.875rem; 
    font-weight: 700;
    display: flex; 
    align-items: center; 
    gap: 8px; 
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.logout-btn:hover { 
    background: rgba(255, 255, 255, 0.25); 
    transform: translateY(-1px); 
}

/* Stats Components */
.stats-grid { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); 
    gap: 20px; 
    margin-bottom: 24px; 
}

.stat-card {
    background: #fff; 
    padding: 24px; 
    border-radius: 20px; 
    border: 1px solid var(--border);
    box-shadow: var(--shadow); 
    display: flex; 
    align-items: center; 
    gap: 20px;
}

.stat-icon {
    width: 60px; 
    height: 60px; 
    border-radius: 16px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 1.75rem;
    flex-shrink: 0;
}

.stat-info span { 
    display: block; 
    font-size: 0.75rem; 
    font-weight: 700; 
    color: var(--muted); 
    text-transform: uppercase;
    margin-bottom: 4px;
}

.stat-info strong { 
    font-size: 1.5rem; 
    font-weight: 850; 
    color: var(--text);
    line-height: 1.2;
}

/* Quick Actions / Action Cards */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.qa-card, .action-card {
    background: white;
    padding: 20px;
    border-radius: 20px;
    border: 1px solid var(--border);
    text-decoration: none;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.qa-card:hover, .action-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.qa-icon, .action-icon {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    margin-bottom: 4px;
}

.qa-title, .action-card h3 {
    font-size: 0.8125rem;
    font-weight: 800;
    color: var(--text);
}

.action-card p {
    font-size: 0.75rem;
    color: var(--muted);
    margin-top: -4px;
}

/* Profile Card (Student) */
.dashboard-top {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 20px;
    margin-bottom: 24px;
}

.profile-card {
    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    padding: 28px;
    border-radius: 24px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.5);
}

.profile-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.hero-avatar {
    width: 70px;
    height: 70px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(8px);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-name {
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: -0.025em;
}

.profile-class {
    font-size: 0.875rem;
    background: rgba(255, 255, 255, 0.15);
    padding: 2px 10px;
    border-radius: 6px;
    display: inline-block;
    margin-top: 4px;
    font-weight: 600;
}

.mini-stats {
    display: flex;
    gap: 16px;
}

.mini-stat {
    flex: 1;
    background: rgba(255, 255, 255, 0.1);
    padding: 12px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.mini-stat .label {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    opacity: 0.8;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.mini-stat .value {
    font-size: 0.875rem;
    font-weight: 800;
}

/* Date Navigator */
.date-nav {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 24px; background: white; padding: 14px 20px;
    border-radius: 20px; border: 1px solid var(--border); box-shadow: var(--shadow);
}
.date-label { font-size: 15px; font-weight: 800; color: var(--text); }
.date-btn {
    width: 40px; height: 40px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
    border: 1px solid var(--border); background: white; color: var(--primary); text-decoration: none;
    transition: all 0.2s;
}
.date-btn:hover { background: var(--primary-light); border-color: var(--primary); }
.date-btn.disabled { opacity: 0.3; pointer-events: none; }

/* Tabs */
.tab-btn {
    padding: 16px 24px; border: none; background: transparent;
    font-family: 'Inter', sans-serif; font-size: 13px; font-weight: 800;
    color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent;
    transition: all 0.2s;
}
.tab-btn.active { color: var(--primary); border-bottom-color: var(--primary); }
.tab-panel { display: none; }
.tab-panel.active { display: block; }

.empty-state { padding: 50px 20px; text-align: center; color: var(--muted); }
.empty-state .icon { font-size: 40px; margin-bottom: 12px; }
.empty-state p { font-size: 14px; font-style: italic; font-weight: 500; }

/* Dashboard Items */
.materi-row {
    display: grid; grid-template-columns: 160px 1fr 1fr; gap: 16px; padding: 18px 24px;
    border-bottom: 1px solid var(--border); align-items: flex-start; transition: background 0.15s;
}
.materi-row:last-child { border-bottom: none; }
.materi-row:hover { background: #f8fafc; }

.siswa-row {
    padding: 16px 24px; border-bottom: 1px solid var(--border);
    display: grid; grid-template-columns: 1fr auto auto; gap: 16px; align-items: center;
}
.siswa-row:last-child { border-bottom: none; }

.absensi-status {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 20px;
    background: white;
    border-radius: 16px;
    margin: 12px;
    border: 1px solid var(--border);
}

.status-dot {
    width: 12px; height: 12px; border-radius: 50%;
}

.status-label { font-size: 0.9375rem; font-weight: 800; }
.status-time { font-size: 0.75rem; color: var(--muted); font-weight: 600; }

/* Form Elements */
.materi-input, .pesan-area {
    width: 100%; background: #f8fafc; border: 2px solid var(--border); border-radius: 16px;
    padding: 14px 18px; font-size: 0.875rem; font-family: 'Inter', sans-serif;
    color: var(--text); transition: all 0.2s; outline: none; resize: vertical;
}
.materi-input:focus, .pesan-area:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(37,99,235,0.1); }

/* Bottom Nav */
.bottom-nav {
    position: fixed; bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.9); backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    display: flex; justify-content: space-around;
    padding: 12px 10px; z-index: 1000;
}

.nav-item {
    display: flex; flex-direction: column; align-items: center;
    text-decoration: none; color: var(--muted); gap: 4px; padding: 4px 12px;
    border-radius: 12px; transition: all 0.2s;
}

.nav-item.active { color: var(--primary); background: var(--primary-light); }
.nav-item i { width: 22px; height: 22px; }
.nav-item span { font-size: 0.7rem; font-weight: 750; }

/* Schedule Components */
.jadwal-grid, .jadwal-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin-bottom: 32px;
}

.hari-card, .hari-section {
    background: var(--card);
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hari-header {
    padding: 16px 20px;
    color: white;
    font-size: 0.875rem;
    font-weight: 850;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.jadwal-list {
    display: flex;
    flex-direction: column;
}

.jadwal-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
    transition: all 0.15s;
}

.jadwal-item:last-child {
    border-bottom: none;
}

.jadwal-item:hover {
    background: #f8fafc;
}

.jadwal-info {
    flex: 1;
}

.jadwal-mapel, .mapel-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 2px;
}

.jadwal-time, .time-label {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 650;
    display: flex;
    align-items: center;
    gap: 4px;
}

.jadwal-guru, .guru-name {
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
    margin-top: 4px;
}

.empty-day, .empty-state-small {
    padding: 32px 20px;
    text-align: center;
    color: var(--muted);
    font-size: 0.8125rem;
    font-style: italic;
}

@media (max-width: 768px) {
    .jadwal-grid, .jadwal-container { grid-template-columns: 1fr; }
}

/* Student Dashboard Premium UI */
.student-hero {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    border-radius: 32px;
    padding: 32px;
    color: white;
    margin-bottom: 24px;
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.2);
}

.hero-profile {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 24px;
}

.hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid rgba(255, 255, 255, 0.2);
    background: #fff;
    padding: 2px;
}

.hero-info h1 {
    font-size: 1.5rem;
    font-weight: 850;
    margin: 0;
    letter-spacing: -0.02em;
    color: white;
}

.hero-info p {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-top: 4px;
    font-weight: 600;
    color: white;
}

.hero-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.hero-stat-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stat-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0.9;
}

.stat-value {
    font-size: 1.125rem;
    font-weight: 850;
}

.shortcut-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.shortcut-card {
    background: white;
    border-radius: 24px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    text-decoration: none;
    color: var(--text);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.shortcut-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.shortcut-icon-box {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.shortcut-card span {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: -0.01em;
}

/* Color Themes for Shortcuts */
.bt-blue { background: #eff6ff; color: #2563eb; }
.bt-green { background: #f0fdf4; color: #16a34a; }
.bt-purple { background: #f5f3ff; color: #7c3aed; }
.bt-orange { background: #fff7ed; color: #ea580c; }

/* Student Dashboard Ref Layout */
.student-main {
    max-width: 900px;
    margin-top: 20px;
}

.student-dashboard-top {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.student-profile-card {
    background: linear-gradient(135deg, #1e3a8a, #2563eb);
    color: #fff;
    border-radius: 20px;
    padding: 18px;
    box-shadow: 0 10px 20px rgba(37,99,235,0.15);
}

.student-profile-card .profile-header {
    margin-bottom: 12px;
}

.student-profile-card .hero-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 3px solid rgba(255,255,255,0.35);
    background: rgba(255,255,255,0.95);
    padding: 0;
    box-shadow: 0 8px 16px rgba(0,0,0,0.12);
}

.student-profile-card .profile-name {
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #fff;
}

.student-profile-card .profile-class {
    font-size: 12px;
    opacity: 0.9;
    font-weight: 600;
    margin-top: 2px;
    padding: 0;
    background: transparent;
}

.student-profile-card .mini-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 12px;
}

.student-profile-card .mini-stat {
    background: rgba(255,255,255,0.15);
    border-radius: 14px;
    padding: 12px;
    border: 1px solid rgba(255,255,255,0.12);
}

.student-profile-card .mini-stat .label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    font-weight: 700;
    opacity: 0.95;
}

.student-profile-card .mini-stat .value {
    margin-top: 6px;
    font-size: 14px;
    font-weight: 800;
}

.student-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
}

.student-quick-actions .qa-card {
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-align: left;
}

.student-quick-actions .qa-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    margin-bottom: 0;
    flex-shrink: 0;
}

.student-quick-actions .qa-title {
    font-size: 14px;
    font-weight: 800;
}

.student-date-nav {
    margin-bottom: 18px;
    border-radius: 16px;
    padding: 12px 16px;
}

.sec-card {
    background: var(--card);
    border-radius: 18px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    margin-bottom: 18px;
    overflow: hidden;
}

.sec-header {
    padding: 14px 18px;
    border-bottom: 1px solid var(--border);
    background: #fafafa;
    display: flex;
    align-items: center;
    gap: 8px;
}

.sec-title {
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.student-tabs {
    display: flex;
    border-bottom: 1px solid var(--border);
    overflow-x: auto;
    background: #fff;
}

.student-tabs .tab-btn {
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
}

.no-absen {
    padding: 20px 18px;
    font-size: 13px;
    color: var(--muted);
    font-style: italic;
}

.materi-card {
    display: block;
    padding: 16px;
    margin: 16px;
    margin-bottom: 20px;
    background: var(--card);
    border-radius: 16px;
    border: 1px solid var(--border);
    border-left: 5px solid var(--primary);
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

.materi-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 10px;
}

.materi-card-label {
    font-size: 10px;
    text-transform: uppercase;
    font-weight: 800;
    color: var(--muted);
    letter-spacing: 0.5px;
}

.materi-card-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    margin-top: 2px;
}

.materi-card-guru {
    font-size: 11px;
    font-weight: 700;
    color: var(--primary);
    background: #eff6ff;
    padding: 4px 10px;
    border-radius: 20px;
    white-space: nowrap;
}

.materi-section {
    margin-bottom: 12px;
}

.materi-section:last-child {
    margin-bottom: 0;
}

.materi-section-tag {
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--muted);
}

.materi-section-content {
    font-size: 13px;
    color: #334155;
    line-height: 1.6;
    padding: 12px;
    border-radius: 12px;
}

.materi-content-box {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
}

.tugas-content-box {
    background: #fffbeb;
    border: 1px solid #fef3c7;
    color: #92400e;
}

.pesan-box {
    padding: 16px 18px;
    background: #fefce8;
    border-left: 4px solid #f59e0b;
    margin-top: 12px;
    border-radius: 0 12px 12px 0;
}

.pesan-box p {
    font-size: 13px;
    color: var(--text);
    line-height: 1.6;
}

.pesan-tag {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fde68a;
    border-radius: 20px;
    padding: 3px 10px;
    margin-bottom: 8px;
}

.compact-jadwal-item {
    padding: 12px 18px;
    align-items: center;
}

.jadwal-time-badge {
    font-size: 10px;
    font-weight: 700;
    color: white;
    background: var(--primary);
    padding: 4px 8px;
    border-radius: 7px;
    white-space: nowrap;
    flex-shrink: 0;
}

.riwayat-list,
.pinjaman-list,
.pengumuman-wrap {
    padding: 10px;
}

.riwayat-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 8px;
    text-decoration: none;
    border: 1px solid var(--border);
    color: var(--muted);
    transition: all 0.2s;
}

.riwayat-item:hover {
    border-color: var(--primary);
    background: #f8fbff;
}

.riwayat-item.active {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

.riwayat-date {
    font-size: 13px;
    font-weight: 700;
    color: inherit;
}

.riwayat-day {
    font-size: 11px;
    color: var(--muted);
}

.pinjaman-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
}

.pinjaman-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text);
}

.pinjaman-meta {
    font-size: 12px;
    color: var(--muted);
    margin-top: 4px;
}

.pinjaman-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    white-space: nowrap;
}

.pinjaman-badge.borrowed {
    color: #92400e;
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.pinjaman-badge.returned {
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.peng-item-card {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    margin-bottom: 10px;
}

.peng-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #e0ecff;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
    flex-shrink: 0;
}

.student-ticker {
    margin-top: 10px;
    margin-bottom: 2px;
    padding: 0 6px;
    text-align: left;
    font-size: 0.65rem;
    font-weight: 600;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 6px;
}

.live-dot {
    width: 6px;
    height: 6px;
    background: #10b981;
    border-radius: 50%;
    display: inline-block;
    animation: pulse 2s infinite;
}

.ticker-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.ticker-separator {
    opacity: 0.3;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.4; }
    100% { opacity: 1; }
}

@media (max-width: 860px) {
    .student-dashboard-top {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .student-main {
        padding: 0 16px;
    }

    .student-quick-actions {
        grid-template-columns: 1fr 1fr;
    }

    .student-profile-card .mini-stats {
        grid-template-columns: 1fr;
    }

    .materi-card-header,
    .pinjaman-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .compact-jadwal-item {
        flex-direction: column;
        align-items: flex-start;
    }
}
