/* MODERN 2026 UI DESIGN SYSTEM */
:root {
    --primary: #D8B4F8;
    --primary-light: #EBD6FC;
    --primary-dark: #b886eb;
    --secondary: #F5F5F5;
    --white: #FFFFFF;
    --text-dark: #2C3E50;
    --text-muted: #64748B;
    --radius: 20px;
    --radius-sm: 12px;
    --shadow-sm: 0 4px 6px rgba(0,0,0,0.02);
    --shadow-md: 0 12px 30px rgba(0,0,0,0.05);
    --shadow-lg: 0 20px 40px rgba(216, 180, 248, 0.25);
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Outfit', sans-serif; }
html { scroll-behavior: smooth; }
body { background: var(--secondary); color: var(--text-dark); line-height: 1.7; overflow-x: hidden !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }

html { overflow-x: hidden !important; width: 100% !important; max-width: 100% !important; box-sizing: border-box; }

* { box-sizing: border-box; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section-padding { padding: 100px 0; }
.bg-light { background: var(--white); }

/* UI COMPONENTS */
.card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow-md);
    transition: var(--transition);
    border: 1px solid rgba(255,255,255,0.8);
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 14px 28px; border-radius: 50px; text-decoration: none;
    font-weight: 600; font-size: 1rem; transition: var(--transition);
    cursor: pointer; border: none; gap: 10px;
}
.btn-primary { background: var(--primary); color: var(--white); box-shadow: 0 4px 15px rgba(216, 180, 248, 0.5); }
.btn-primary:hover { background: var(--primary-dark); transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.btn-outline { background: transparent; color: var(--primary-dark); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary-light); transform: translateY(-3px); }
.btn-wa { background: #E8F9F0; color: #128C7E; border: 1px solid #C4EFD8; }
.btn-wa:hover { background: #25D366; color: white; transform: translateY(-3px); box-shadow: 0 10px 25px rgba(37, 211, 102, 0.3); }
.w-100 { width: 100%; }

.section-title { text-align: center; margin-bottom: 50px; }
.section-title h2 { font-size: 2.5rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.subtitle { color: var(--text-muted); font-size: 1.1rem; }
.underline { width: 60px; height: 5px; background: var(--primary); margin: 0 auto 15px; border-radius: 10px; }

/* NAVBAR */
.navbar { position: fixed; width: 100%; top: 0; padding: 20px 0; z-index: 1000; transition: var(--transition); background: transparent; }
.navbar.scrolled { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); padding: 15px 0; box-shadow: 0 4px 30px rgba(0,0,0,0.05); }
.nav-container { display: flex; justify-content: space-between; align-items: center; }
/* TABS */
.tabs { display: flex; gap: 10px; flex-wrap: wrap; }
.tab-btn { background: #f1f5f9; border: none; padding: 8px 16px; border-radius: 20px; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: all 0.3s; }
.tab-btn.active { background: var(--primary); color: white; box-shadow: 0 4px 10px rgba(216, 180, 248, 0.4); }
.tab-btn:hover:not(.active) { background: #e2e8f0; }
.tab-content { display: none; animation: fadeInTab 0.4s ease-in-out; }
.tab-content.active { display: block; }
@keyframes fadeInTab { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

/* TREND INDICATORS */
.trend-up { color: #059669; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; font-size: 0.9rem; }
.trend-down { color: #DC2626; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; font-size: 0.9rem; }
.trend-stable { color: #D97706; font-weight: 700; display: inline-flex; align-items: center; gap: 4px; font-size: 0.9rem; }

.logo { display: inline-flex; align-items: center; text-decoration: none; }
.navbar-logo { height: 45px; width: auto; object-fit: contain; transition: var(--transition); border-radius: 8px; }
.navbar-logo:hover { transform: scale(1.05); }
.nav-links { list-style: none; display: flex; gap: 30px; }
.nav-links a { text-decoration: none; color: var(--text-dark); font-weight: 500; position: relative; transition: var(--transition); }
.nav-links a::after { content: ''; position: absolute; width: 0; height: 2px; bottom: -4px; left: 0; background: var(--primary); transition: var(--transition); }
.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { width: 100%; }
.hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; z-index: 1001; }
.hamburger span { display: block; width: 25px; height: 3px; background: var(--text-dark); transition: var(--transition); border-radius: 3px; }

/* HERO SECTION */
.hero { display: flex; align-items: center; position: relative; min-height: 100vh; background: linear-gradient(135deg, var(--secondary) 0%, var(--primary-light) 100%); overflow: hidden; padding-top: 80px; }
.hero-container { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; position: relative; z-index: 10; }
.hero-content h1 { font-size: 3.8rem; line-height: 1.1; font-weight: 800; margin-bottom: 24px; color: var(--text-dark); }
.hero-content p { font-size: 1.25rem; color: var(--text-muted); margin-bottom: 40px; }
.hero-buttons { display: flex; gap: 15px; }
.hero-illustration { position: relative; width: 100%; display: flex; justify-content: center; }
.hero-illustration img { width: 100%; max-width: 500px; object-fit: contain; border-radius: var(--radius); filter: drop-shadow(0 20px 30px rgba(0,0,0,0.1)); }
.floating-img { animation: float 6s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-20px); } }
.shape { position: absolute; border-radius: 50%; opacity: 0.6; filter: blur(50px); z-index: 1; }
.shape-1 { width: 400px; height: 400px; background: var(--primary); top: -100px; right: -100px; }
.shape-2 { width: 300px; height: 300px; background: #FFDDE2; bottom: 10%; left: -50px; }

/* ABOUT */
.about { background: var(--white); }
.about-content { display: grid; grid-template-columns: 1fr 1.2fr; gap: 40px; align-items: center; }
.about-text h3 { font-size: 2rem; color: var(--text-dark); margin-bottom: 20px; }
.vision-mission { display: flex; flex-direction: column; gap: 20px; }
.vision-mission h4 { margin-bottom: 12px; font-size: 1.4rem; color: var(--primary-dark); }
.vision-mission ul { padding-left: 20px; color: var(--text-muted); }
.vision-mission ul li { margin-bottom: 8px; }

/* PROGRAMS */
.program-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.program-card { text-align: center; border: 1px solid rgba(216, 180, 248, 0.2); }
.card-icon { font-size: 3.5rem; margin-bottom: 20px; display: inline-block; padding: 20px; background: var(--primary-light); border-radius: 50%; width: 100px; height: 100px; line-height: 55px; }
.program-card h3 { font-size: 1.5rem; margin-bottom: 15px; }
.program-card p { color: var(--text-muted); }

/* REGISTRATION */
.registration { position: relative; background: linear-gradient(to bottom, var(--white), var(--secondary)); }
.registration-wrapper { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: stretch; }
.registration-info h2 { font-size: 2.5rem; margin-bottom: 20px; line-height: 1.2; }
.registration-info p { font-size: 1.1rem; color: var(--text-muted); margin-bottom: 30px; }
.ben-list { list-style: none; font-size: 1.1rem; }
.ben-list li { margin-bottom: 15px; display: flex; align-items: center; gap: 10px; font-weight: 500; }

.modern-form .input-group { position: relative; margin-bottom: 25px; }
.modern-form input, .modern-form textarea, .modern-form select {
    width: 100%; border: 2px solid #E2E8F0; border-radius: var(--radius-sm); padding: 18px 20px 10px; font-size: 1rem;
    font-family: inherit; background: #F8FAFC; transition: var(--transition); color: var(--text-dark);
}
.modern-form textarea { resize: vertical; min-height: 100px; }
.modern-form label { position: absolute; left: 20px; top: 16px; color: var(--text-muted); transition: var(--transition); pointer-events: none; }
.modern-form select { padding: 14px 20px; color: var(--text-muted); }
.modern-form input:focus, .modern-form textarea:focus, .modern-form select:focus { border-color: var(--primary); outline: none; background: var(--white); box-shadow: 0 0 0 4px rgba(216,180,248,0.2); }
.modern-form input:focus ~ label, .modern-form input:not(:placeholder-shown) ~ label,
.modern-form textarea:focus ~ label, .modern-form textarea:not(:placeholder-shown) ~ label { top: 5px; font-size: 0.75rem; color: var(--primary-dark); font-weight: 600; }

/* GALLERY */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; height: 250px; cursor: pointer; position: relative; }
.gallery-item img.gallery-img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease, opacity 0.4s ease; opacity: 0.9; }
.gallery-item:hover img.gallery-img { transform: scale(1.05); opacity: 1; }

/* DASHBOARD & TABLE */
.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.mx-auto { margin-left: auto; margin-right: auto; }
.tabel-nilai { width: 100%; border-collapse: collapse; margin-top: 15px; }
.tabel-nilai th, .tabel-nilai td { border: 1px solid rgba(0,0,0,0.05); padding: 15px; text-align: left; }
.tabel-nilai td { color: var(--text-dark); font-weight: 500; }
.tabel-nilai th { background: var(--primary-light); color: var(--primary-dark); font-weight: 600; }
.status-lulus { color: #128C7E; font-weight: 600; background: #E8F9F0; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; display: inline-block; }
.status-tidak { color: #E53E3E; font-weight: 600; background: #FED7D7; padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; display: inline-block; }

/* Dashboard Enhancements */
.dashboard-header-text { margin-bottom: 30px; }
.dashboard-header-text h2 { font-size: 2rem; color: var(--text-dark); margin-bottom: 5px; }
.dashboard-header-text p { color: var(--text-muted); font-size: 1.1rem; }

.dashboard-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; margin-bottom: 30px; }
.stat-card { background: var(--white); padding: 25px; border-radius: var(--radius); box-shadow: var(--shadow-sm); border: 1px solid rgba(216, 180, 248, 0.2); }
.stat-card h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 15px; font-weight: 600; letter-spacing: 0.05em; }
.stat-card .stat-value { font-size: 2.5rem; line-height: 1; font-weight: 800; color: var(--text-dark); }

.progress-container { width: 100%; background: #F1F5F9; border-radius: 10px; height: 8px; margin-top: 15px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 10px; transition: width 1s ease-in-out; }
.progress-bar.primary { background: linear-gradient(90deg, var(--primary), var(--primary-dark)); }
.progress-bar.success { background: linear-gradient(90deg, #34D399, #059669); }
.progress-bar.warning { background: linear-gradient(90deg, #FBBF24, #D97706); }

.badge { padding: 5px 12px; border-radius: 20px; font-size: 0.85rem; font-weight: 600; display: inline-block; text-align: center; }
.badge-baik { background: #E0E7FF; color: #4338CA; }
.badge-cukup { background: #FEF3C7; color: #D97706; }
.badge-sangat-baik { background: #D1FAE5; color: #059669; }

.notes-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 30px; }
.note-card { background: var(--white); padding: 30px; border-radius: var(--radius); border-left: 5px solid var(--primary); box-shadow: var(--shadow-sm); }
.note-card h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 15px; font-size: 1.2rem; color: var(--text-dark); }
.note-card p { color: var(--text-muted); font-size: 1rem; line-height: 1.6; margin: 0; }


/* CONTACT */
.contact-card { display: flex; justify-content: space-between; align-items: center; background: linear-gradient(135deg, var(--white), var(--primary-light)); }
.contact-details h2 { font-size: 2rem; margin-bottom: 10px; }
.info-list { margin-top: 25px; display: flex; flex-direction: column; gap: 15px; }
.info { display: flex; align-items: center; gap: 15px; font-size: 1.1rem; }
.info i { font-style: normal; font-size: 1.4rem; }

/* FOOTER */
.footer { background: var(--white); padding: 50px 0 20px; border-top: 1px solid rgba(0,0,0,0.05); }
.footer-content { text-align: center; }
.footer-brand h3 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.footer-brand span { color: var(--primary); }
.footer-brand p { color: var(--text-muted); max-width: 500px; margin: 0 auto 30px; }

/* ANIMATIONS */
.reveal { opacity: 0; transform: translateY(40px); transition: all 0.8s cubic-bezier(0.16, 1, 0.3, 1); }
.reveal.active { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: 0.15s; }
.delay-2 { transition-delay: 0.3s; }
.delay-3 { transition-delay: 0.45s; }
.reveal-on-load { opacity: 0; animation: fadeUp 1s 0.2s forwards; }
.reveal-img { opacity: 0; animation: fadeIn 1.2s 0.3s forwards; }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fadeIn { to { opacity: 1; } }

/* MODAL */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); backdrop-filter: blur(5px); z-index: 2000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: var(--transition); }
.modal.show { opacity: 1; pointer-events: all; }
.modal-card { background: white; padding: 40px; border-radius: var(--radius); max-width: 400px; text-align: center; transform: translateY(20px); transition: var(--transition); }
.modal.show .modal-card { transform: translateY(0); }
.icon-success { font-size: 3rem; margin-bottom: 15px; color: #25D366; }

/* GALLERY MODAL */
.gallery-modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 3000; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: var(--transition); }
.gallery-modal.show { opacity: 1; pointer-events: all; }
.gallery-modal-content { max-width: 90%; max-height: 90%; transform: scale(0.8); transition: var(--transition); border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.gallery-modal.show .gallery-modal-content { transform: scale(1); }
.gallery-modal-close { position: absolute; top: 20px; right: 30px; color: white; font-size: 3rem; cursor: pointer; transition: 0.3s; z-index: 3001; }
.gallery-modal-close:hover { color: var(--primary); }

/* RESPONSIVE */
@media (max-width: 992px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-grid { grid-template-columns: 1fr; }
    .hero-container, .about-content, .registration-wrapper, .contact-card { grid-template-columns: 1fr; text-align: center; gap: 30px; }
    .hero { min-height: auto; padding: 120px 0 60px; text-align: center; }
    .hero-content h1 { font-size: 2.8rem; }
    .hero-buttons { justify-content: center; }
    .contact-card { flex-direction: column; }
    .info { justify-content: center; }
}

@media (max-width: 768px) {
    .nav-links { position: fixed; top: 70px; left: -100%; width: 100%; background: var(--white); flex-direction: column; padding: 30px; box-shadow: var(--shadow-md); transition: var(--transition); align-items: center; }
    .nav-links.active { left: 0; }
    .hamburger { display: flex; }
    .hamburger.active span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
    .hamburger.active span:nth-child(2) { opacity: 0; }
    .hamburger.active span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-content p { font-size: 1rem; }
    .gallery-grid { grid-template-columns: 1fr; }
    .tabel-nilai { display: block; overflow-x: auto; white-space: nowrap; }
    .section-padding { padding: 60px 0; }
    .notes-grid { grid-template-columns: 1fr; }
}

/* ADMIN DASHBOARD */
.admin-body { background: #f8fafc; }
.admin-wrapper { display: flex; min-height: 100vh; }
.admin-sidebar { width: 280px; background: var(--white); box-shadow: var(--shadow-sm); height: 100vh; position: fixed; display: flex; flex-direction: column; z-index: 1000; transition: var(--transition); }
.sidebar-header { padding: 30px; border-bottom: 1px solid rgba(0,0,0,0.05); }
.sidebar-header h2 { color: var(--text-dark); font-weight: 800; font-size: 1.8rem; }
.sidebar-header span { color: var(--primary); }
.sidebar-menu { list-style: none; padding: 20px 0; display: flex; flex-direction: column; height: 100%; }
.sidebar-menu li { padding: 5px 20px; }
.sidebar-menu a { display: block; padding: 12px 20px; color: var(--text-muted); font-weight: 600; text-decoration: none; border-radius: var(--radius-sm); transition: var(--transition); }
.sidebar-menu a:hover, .sidebar-menu a.active { background: var(--primary-light); color: var(--primary-dark); }
.sidebar-menu a.text-danger { color: #DC2626; }
.sidebar-menu a.text-danger:hover { background: #FEE2E2; }
.admin-main { flex: 1; margin-left: 280px; display: flex; flex-direction: column; min-height: 100vh; transition: var(--transition); padding-bottom: 50px;}
.admin-header { background: var(--white); padding: 20px 40px; box-shadow: var(--shadow-sm); display: flex; align-items: center; gap: 20px; z-index: 999; }
.admin-content { padding: 40px; }
.admin-card { padding: 30px; margin-bottom: 30px; }
.admin-card .card-header { margin-bottom: 25px; border-bottom: 1px solid rgba(0,0,0,0.05); padding-bottom: 15px; }
.admin-form .input-group { margin-bottom: 20px; }
.admin-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius-sm); overflow: hidden; }
.admin-table th, .admin-table td { padding: 15px 20px; border-bottom: 1px solid rgba(0,0,0,0.05); text-align: left; }
.admin-table th { background: #f8fafc; color: var(--text-muted); font-weight: 600; }
.btn-sm { padding: 6px 12px; font-size: 0.85rem; border-radius: 8px; }
.btn-edit { background: #E0E7FF; color: #4338CA; border: none; cursor: pointer; }
.btn-delete { background: #FEE2E2; color: #DC2626; border: none; cursor: pointer; }
.admin-tab { display: none; animation: fadeInTab 0.4s ease; }
.admin-tab.active { display: block; }
@media (max-width: 992px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.active { transform: translateX(0); }
    .admin-main { margin-left: 0; }
    .admin-header { padding: 15px 20px; }
    .admin-content { padding: 20px; }
}

/* Backdrop overlay saat sidebar mobile aktif */
.admin-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
    animation: fadeInTab 0.2s ease;
}
.admin-backdrop.active { display: block; }
@media (min-width: 993px) {
    .admin-backdrop.active { display: none; }
}

@media (max-width: 600px) {
    html, body { overflow-x: hidden !important; width: 100% !important; max-width: 100% !important; position: relative !important; }
    .admin-wrapper { width: 100% !important; overflow-x: hidden !important; max-width: 100% !important; min-width: 0 !important; }
    .admin-sidebar { width: 85%; max-width: 320px; }
    .sidebar-header { padding: 20px; }
    .sidebar-header h2 { font-size: 1.5rem; }
    .admin-header { padding: 12px 15px; gap: 12px; }
    .admin-header h3 { font-size: 1rem; }
    .admin-main { width: 100% !important; min-width: 0 !important; overflow-x: hidden !important; max-width: 100% !important; }
    .admin-content { padding: 12px; width: 100% !important; overflow-x: hidden !important; max-width: 100% !important; min-width: 0 !important; }
    .admin-card { padding: 16px; margin-bottom: 16px; border-radius: 14px; width: 100% !important; max-width: 100% !important; overflow-x: hidden !important; }
    .admin-card .card-header { margin-bottom: 16px; padding-bottom: 10px; }
    .admin-card .card-header h4 { font-size: 1.05rem; }
    /* Form: paksa 1 kolom (override inline grid-template-columns) */
    .admin-form > div[style*="grid"] {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .admin-form .input-group { margin-bottom: 0; }
    .modern-form input, .modern-form select, .modern-form textarea { font-size: 0.95rem; width: 100% !important; max-width: 100% !important; }
    /* Tabel: horizontal scroll, jangan dipress */
    .admin-table { min-width: 0 !important; width: 100% !important; max-width: 100% !important; }
    .admin-table th, .admin-table td {
        padding: 10px 12px;
        font-size: 0.88rem;
        white-space: normal !important;
    }
    .admin-table td .btn-sm { padding: 5px 10px; font-size: 0.78rem; }
    .admin-table td .btn-sm + .btn-sm { margin-left: 6px; }
    .btn { padding: 12px 18px; font-size: 0.95rem; }
    /* Login mobile */
    .login-card { padding: 30px 22px; border-radius: 22px; }
    .login-input { padding: 18px 20px 10px !important; }
    .modern-form .login-input ~ label { left: 20px; }
    .modern-form .login-input:focus ~ label,
    .modern-form .login-input:not(:placeholder-shown) ~ label { left: 20px; }
    .btn-login-gradient { padding: 14px; font-size: 1rem; }

    /* Tabel Evaluasi Berkala — ubah jadi card stacked di mobile (tanpa scroll) */
    .tabel-nilai { display: block; overflow: visible !important; white-space: normal; border: none; width: 100% !important; max-width: 100% !important; min-width: 0 !important; }
    .tabel-nilai thead { display: none; }
    .tabel-nilai tbody { display: block; width: 100% !important; }
    .tabel-nilai tr {
        display: block;
        background: #fff;
        margin-bottom: 12px;
        border-radius: 14px;
        padding: 6px 14px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
        border: 1px solid rgba(0, 0, 0, 0.04);
        width: 100% !important;
        max-width: 100% !important;
        overflow: hidden !important;
    }
    .tabel-nilai td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.05);
        gap: 12px;
        text-align: right;
        font-size: 0.9rem;
        width: 100% !important;
        max-width: 100% !important;
    }
    .tabel-nilai tr td:last-child { border-bottom: none; }
    .tabel-nilai td::before {
        content: attr(data-label);
        font-weight: 600;
        color: var(--text-muted);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.3px;
        text-align: left;
        flex-shrink: 0;
    }
    .tabel-nilai td:nth-of-type(1)::before { content: "Mata Pelajaran"; }
    .tabel-nilai td:nth-of-type(2)::before { content: "Nilai"; }
    .tabel-nilai td:nth-of-type(3)::before { content: "Progress"; }
    .tabel-nilai td:nth-of-type(4)::before { content: "Visualisasi"; }
    .tabel-nilai td:nth-of-type(5)::before { content: "Kategori"; }
    .tabel-nilai td:nth-of-type(6)::before { content: "Status"; }
    .tabel-nilai td .progress-container { flex: 1; max-width: 55%; }
    .tabel-nilai td:nth-of-type(1) { font-weight: 700; color: var(--primary-dark, #6b21a8); }
    .tabel-nilai td:nth-of-type(1)::before { color: var(--text-muted); }
    /* Hilangkan parent overflow-x agar tidak muncul scrollbar */
    .tab-content > div[style*="overflow-x"] { overflow: visible !important; }
    .card { overflow-x: hidden !important; width: 100% !important; max-width: 100% !important; }
    .reveal { overflow-x: hidden !important; width: 100% !important; max-width: 100% !important; }
}

/* LOGIN UPDATES */
.login-section {
    position: relative;
    background: linear-gradient(135deg, var(--white) 0%, var(--primary-light) 100%);
    overflow: hidden;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 50px 40px;
    box-shadow: 0 25px 50px rgba(216, 180, 248, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.8);
    position: relative;
    z-index: 10;
}

.login-input {
    border: 2px solid var(--primary-light) !important;
    border-radius: 50px !important;
    padding: 20px 25px 12px !important;
}

.login-input:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 15px rgba(216, 180, 248, 0.4) !important;
}

.modern-form .login-input ~ label {
    left: 25px;
    top: 18px;
}

.modern-form .login-input:focus ~ label,
.modern-form .login-input:not(:placeholder-shown) ~ label {
    top: 6px;
    left: 25px;
}

.btn-login-gradient {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    border-radius: 50px;
    padding: 16px;
    font-size: 1.1rem;
    box-shadow: 0 10px 20px rgba(216, 180, 248, 0.4);
    border: none;
    transition: var(--transition);
    cursor: pointer;
}

.btn-login-gradient:hover {
    background: linear-gradient(135deg, var(--primary-dark) 0%, #a26eed 100%);
    transform: translateY(-3px);
    box-shadow: 0 15px 25px rgba(216, 180, 248, 0.6);
}

/* ===== Notifikasi Modal Tengah ===== */
.notif-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
}
.notif-overlay.show {
    opacity: 1;
    pointer-events: auto;
}
.notif-card {
    background: #fff;
    border-radius: 20px;
    padding: 35px 30px 28px;
    width: min(380px, 90vw);
    text-align: center;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
    transform: scale(0.85);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.notif-overlay.show .notif-card { transform: scale(1); }
.notif-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    margin: 0 auto 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.notif-icon.success { background: #dcfce7; }
.notif-icon.error { background: #fee2e2; }
.notif-icon.info { background: #dbeafe; }
.notif-icon svg {
    width: 42px;
    height: 42px;
    stroke-width: 3;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.notif-icon.success svg { stroke: #16a34a; }
.notif-icon.error svg { stroke: #dc2626; }
.notif-icon.info svg { stroke: #2563eb; }
.notif-icon.success svg .check-path {
    stroke-dasharray: 30;
    stroke-dashoffset: 30;
}
.notif-overlay.show .notif-icon.success svg .check-path {
    animation: notifCheck 0.5s 0.15s ease forwards;
}
.notif-icon.error svg .cross-path {
    stroke-dasharray: 20;
    stroke-dashoffset: 20;
}
.notif-overlay.show .notif-icon.error svg .cross-path {
    animation: notifCheck 0.4s 0.15s ease forwards;
}
.notif-icon.success::before,
.notif-icon.error::before {
    content: '';
    position: absolute;
    inset: -6px;
    border-radius: 50%;
    border: 3px solid currentColor;
    opacity: 0;
}
.notif-overlay.show .notif-icon.success::before { animation: notifRing 0.6s ease forwards; color: #16a34a; }
.notif-overlay.show .notif-icon.error::before { animation: notifRing 0.6s ease forwards; color: #dc2626; }
@keyframes notifRing {
    0% { transform: scale(0.6); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 0; }
}
@keyframes notifCheck {
    to { stroke-dashoffset: 0; }
}
.notif-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-dark, #1e293b);
    margin-bottom: 8px;
}
.notif-message {
    color: #64748b;
    font-size: 0.95rem;
    margin-bottom: 22px;
    line-height: 1.5;
}
.notif-btn {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 11px 38px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.notif-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(216, 180, 248, 0.5); }
.notif-btn.error-btn { background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%); }
.notif-btn.error-btn:hover { box-shadow: 0 8px 18px rgba(239, 68, 68, 0.45); }
.notif-actions { display: flex; gap: 10px; justify-content: center; }
.notif-btn-secondary {
    background: #f1f5f9;
    color: #475569;
    border: none;
    border-radius: 50px;
    padding: 11px 28px;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.2s ease;
}
.notif-btn-secondary:hover { background: #e2e8f0; }

/* ===== Grid Kartu Pilih Siswa ===== */
.siswa-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: 6px;
}
.siswa-pick-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    cursor: pointer;
    text-align: left;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    font-family: inherit;
    width: 100%;
}
.siswa-pick-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary, #c4a8fe);
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.15);
}
.siswa-pick-card.active {
    border-color: var(--primary-dark, #7c3aed);
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
    box-shadow: 0 12px 30px rgba(124, 58, 237, 0.2);
}
.siswa-pick-card.active::after {
    content: '✓';
    position: absolute;
    top: 10px;
    right: 12px;
    width: 24px;
    height: 24px;
    background: var(--primary-dark, #7c3aed);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 700;
}
.siswa-pick-card { position: relative; }
.siswa-pick-card.hidden { display: none; }
.siswa-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-weight: 700;
    font-size: 1.4rem;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.25);
}
.siswa-info { flex: 1; min-width: 0; }
.siswa-nama {
    font-weight: 700;
    color: var(--text-dark, #1e293b);
    font-size: 0.95rem;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.siswa-meta {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.siswa-badge {
    background: var(--primary-light, #f3e8ff);
    color: var(--primary-dark, #7c3aed);
    padding: 3px 10px;
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}
.siswa-stat {
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
}
.empty-state {
    text-align: center;
    padding: 50px 20px;
    background: #f8fafc;
    border-radius: 14px;
    border: 2px dashed #e2e8f0;
}
@media (max-width: 600px) {
    .siswa-card-grid { grid-template-columns: 1fr; gap: 10px; }
    .siswa-pick-card { padding: 12px; }
    .siswa-avatar { width: 46px; height: 46px; font-size: 1.2rem; }
}
