/* ========================================= */
/* 1. RESET & VARIABLES */
/* ========================================= */
:root {
    --primary-dark: #003e52;
    --primary-blue: #2196f3;
    --bg-main: #003e52; /* App background color set to requested */
    --text-dark: #f5f9fa; /* Light text over dark background */
    --text-grey: #cfdfe6;
    --card-shadow: 0 4px 20px rgba(0,0,0,0.03);
}

/* MENERAPKAN FONT POPPINS KE SELURUH APLIKASI */
* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Poppins', sans-serif; /* Wajib agar font cantik */
}

body.dashboard-body {
    background-color: var(--bg-main);
    display: flex;
    min-height: 100vh;
    color: var(--text-dark);
}

/* Ensure content area contrasts with dark background */
.main-content { background: transparent; }
.card { background: white; color: #222; }
.hero-card, .rec-card, .grade-card { background: white; color: #222; }
.dash-footer { color: var(--text-grey); }

/* ========================================= */
/* 2. SIDEBAR (Khusus Dashboard) */
/* ========================================= */
.sidebar {
    width: 260px;
    background-color: var(--primary-dark);
    color: white;
    padding: 30px 25px;
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    left: 0; top: 0;
    z-index: 100;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

.sidebar-header { margin-bottom: 50px; display: flex; justify-content: space-between; align-items: center; }
.brand-logo { font-size: 24px; display: flex; align-items: center; gap: 10px; }
.close-sidebar-btn { display: none; background: none; border: none; color: white; font-size: 24px; cursor: pointer; }

.menu-group { margin-bottom: 30px; }
.menu-category { font-size: 11px; letter-spacing: 1px; color: #a0bacc; margin-bottom: 15px; text-transform: uppercase; font-weight: 600; }
.menu-item { display: block; text-decoration: none; color: #cfdfe6; padding: 12px 15px; border-radius: 8px; margin-bottom: 5px; font-size: 14px; transition: 0.2s; }
.menu-item:hover { background-color: rgba(255,255,255,0.1); color: white; }
.menu-item.active { background-color: white; color: var(--primary-dark); font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

/* ========================================= */
/* 3. MAIN CONTENT & HEADER (Dashboard) */
/* ========================================= */
.main-content {
    margin-left: 260px;
    width: calc(100% - 260px);
    padding: 30px 40px;
}

.dash-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 30px; }
.header-left h1 { font-size: 24px; font-weight: 800; letter-spacing: -0.5px; margin-bottom: 5px; }
.header-left p { color: var(--text-grey); font-size: 14px; }

/* Home icon button (small clickable area) */
.home-icon-btn { display:inline-flex; align-items:center; justify-content:center; width:36px; height:36px; background: rgba(255,255,255,0.08); border-radius:8px; color: #fff; text-decoration:none; margin-right:12px; }
.home-icon-btn i { font-size:14px; }
.home-icon-btn:hover { background: rgba(255,255,255,0.12); }

.header-right { display: flex; align-items: center; gap: 20px; }
.search-wrapper { background: white; border: 1px solid #eee; padding: 10px 20px; border-radius: 30px; display: flex; align-items: center; gap: 10px; width: 250px; }
.search-wrapper input { border: none; outline: none; font-size: 13px; width: 100%; }
.search-wrapper i { color: #ccc; }
.notif-btn { background: white; border: 1px solid #eee; width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; color: #555; }
.hamburger-btn { display: none; font-size: 24px; cursor: pointer; margin-right: 15px; }

/* ========================================= */
/* 4. DASHBOARD GRID SYSTEM */
/* ========================================= */
.dashboard-grid {
    display: grid;
    grid-template-columns: 2.4fr 1fr;
    gap: 25px;
    align-items: start;
}

.card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    box-shadow: var(--card-shadow);
    margin-bottom: 25px;
    position: relative;
}

/* --- HERO CARD DASHBOARD --- */
.hero-card {
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 45%, #6d28d9 100%);
    display: flex; justify-content: space-between;
    align-items: center; min-height: 220px;
    border-radius: 22px;
    border: 2px solid rgba(255, 215, 0, 0.95);
    box-shadow: 0 16px 40px rgba(99, 102, 241, 0.28), inset 0 -6px 30px rgba(0,0,0,0.08);
    position: relative;
    overflow: visible;
    padding: 28px;
}

.hero-card::after {
    content: '';
    position: absolute;
    width: 420px;
    height: 420px;
    right: -120px;
    top: -60px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.06) 0%, transparent 60%);
    transform: rotate(25deg);
    filter: blur(8px);
    pointer-events: none;
}

@keyframes hero-pulse {
    0% { box-shadow: 0 12px 30px rgba(255, 215, 0, 0.12); transform: translateY(0); }
    50% { box-shadow: 0 20px 44px rgba(255, 215, 0, 0.18); transform: translateY(-3px); }
    100% { box-shadow: 0 12px 30px rgba(255, 215, 0, 0.12); transform: translateY(0); }
}

.hero-text-content {
    position: relative;
    z-index: 3;
    color: white;
}

.tag-blue { 
    background: linear-gradient(90deg, #ffd54f 0%, #ffd700 100%); 
    color: #ffffff; 
    padding: 10px 18px; 
    border-radius: 28px; 
    font-size: 13px; 
    font-weight: 900; 
    display: inline-block; 
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.18);
    border: 1px solid rgba(255,255,255,0.25);
    text-shadow: 0 1px 0 rgba(0,0,0,0.25);
    animation: tag-pulse 2.8s ease-in-out infinite;
}

@keyframes tag-pulse {
    0% { transform: translateY(0); box-shadow: 0 8px 22px rgba(255, 215, 0, 0.12); }
    50% { transform: translateY(-2px); box-shadow: 0 14px 36px rgba(255, 215, 0, 0.22); }
    100% { transform: translateY(0); box-shadow: 0 8px 22px rgba(255, 215, 0, 0.12); }
}

.hero-text-content h2 { 
    font-size: 30px; 
    font-weight: 900; 
    margin-bottom: 10px; 
    max-width: 480px; 
    line-height: 1.15;
    color: white;
    text-shadow: 3px 6px 22px rgba(0,0,0,0.28);
}

.hero-text-content p { 
    font-size: 15px; 
    color: rgba(255,255,255,0.95); 
    margin-bottom: 20px; 
    max-width: 480px; 
    line-height: 1.6;
}
.hero-actions { display: flex; align-items: center; gap: 15px; }
.btn-primary { 
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%); 
    color: #333; 
    padding: 12px 28px; 
    border-radius: 30px; 
    border: none; 
    font-weight: 700; 
    font-size: 13px; 
    cursor: pointer; 
    display: flex; 
    align-items: center; 
    gap: 8px;
    box-shadow: 0 4px 12px rgba(255, 215, 0, 0.3);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 215, 0, 0.4);
}

/* Give the primary CTA in hero card an attention animation */
.hero-card .btn-primary {
    animation: cta-glow 3s ease-in-out infinite;
    padding: 14px 34px;
    font-size: 14px;
    font-weight: 800;
    z-index: 4;
}

@keyframes cta-glow {
    0% { box-shadow: 0 6px 18px rgba(255,215,0,0.18); transform: translateY(0) scale(1); }
    50% { box-shadow: 0 18px 40px rgba(255,215,0,0.30); transform: translateY(-3px) scale(1.02); }
    100% { box-shadow: 0 6px 18px rgba(255,215,0,0.18); transform: translateY(0) scale(1); }
}

/* Ensure hero image doesn't obscure the hero text */
.hero-image-container { z-index: 2; opacity: 0.95; }
.dot-indicator { width: 8px; height: 8px; background: white; border-radius: 50%; }
.time-left { font-size: 12px; color: #888; }
.react-icon-3d { font-size: 80px; color: #61dafb; filter: drop-shadow(0 10px 15px rgba(97, 218, 251, 0.4)); animation: spin 10s linear infinite; }
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- MIDDLE ROW (CHECKIN + SCHEDULE) --- */
.middle-row-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 25px; margin-bottom: 25px; }
.card-header-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.card-header-row h3 { font-size: 16px; font-weight: 700; }
.week-label { font-size: 11px; color: #888; }
.sub-date { font-size: 11px; color: #aaa; margin-bottom: 15px; }
.link-view-all { font-size: 11px; color: #888; text-decoration: none; }

.checkin-pills-container { display: flex; justify-content: space-between; gap: 8px; }
.day-pill-vertical { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 10px 5px; border-radius: 12px; border: 1px solid #f0f0f0; min-height: 70px; }
.pill-day { font-size: 10px; color: #888; margin-bottom: 5px; font-weight: 500; }
.pill-num { font-size: 16px; font-weight: 700; color: #333; }
.day-pill-vertical.done { background-color: #e8f5e9; border-color: #c8e6c9; }
.day-pill-vertical.done .pill-num { color: #2e7d32; }
.day-pill-vertical.missed { background-color: #ffebee; border-color: #ffcdd2; }
.day-pill-vertical.missed .pill-num { color: #c62828; }
.day-pill-vertical.active { background-color: white; border: 2px solid var(--primary-dark); transform: scale(1.05); box-shadow: 0 4px 10px rgba(0,0,0,0.1); }
.day-pill-vertical.future { background-color: #f9f9f9; opacity: 0.6; }

.schedule-box-blue { background: #e1f5fe; border-radius: 15px; padding: 15px; }
.sched-row { display: flex; justify-content: space-between; margin-bottom: 15px; }
.sched-row h4 { font-size: 13px; margin-bottom: 3px; }
.sched-time { font-size: 11px; color: #0277bd; font-weight: 500; }
.sched-actions { display: flex; gap: 5px; }
.btn-outline-white { background: white; border: 1px solid white; padding: 4px 10px; border-radius: 15px; font-size: 10px; font-weight: 600; color: #0277bd; cursor: pointer; }
.btn-solid-white { background: white; border: none; padding: 4px 10px; border-radius: 15px; font-size: 10px; font-weight: 600; color: #0277bd; cursor: pointer; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.sched-deadline-row { background: rgba(255,255,255,0.5); border-radius: 12px; padding: 10px; display: flex; justify-content: space-between; align-items: center; }
.deadline-text { font-size: 10px; color: #333; line-height: 1.4; }
.deadline-right { text-align: right; }
.deadline-right span { display: block; font-size: 10px; font-weight: 700; margin-bottom: 3px; }
.btn-pilled-white { font-size: 9px; padding: 3px 8px; border-radius: 10px; border: none; background: white; cursor: pointer; font-weight: 600; }

/* --- CURRENT MODULES --- */
.modules-section h3 { font-size: 16px; font-weight: 700; }
.mb-20 { margin-bottom: 20px; }
.link-text { font-size: 11px; color: #2196f3; text-decoration: none; font-weight: 600; }

.module-row { display: flex; align-items: center; gap: 15px; padding-bottom: 15px; margin-bottom: 15px; border-bottom: 1px solid #f0f0f0; }
.module-row.border-none { border-bottom: none; padding-bottom: 0; margin-bottom: 0; }
.mod-icon { width: 45px; height: 45px; border-radius: 12px; background-color: var(--primary-dark); }

/* Course page module items */
.module-item { list-style: none; }
.module-row { display: flex; align-items: center; justify-content: space-between; padding: 12px 10px; border-radius: 8px; border: 1px solid #eee; margin-bottom: 10px; background: white; }
.module-status { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-weight: 700; }
.module-row.completed .module-status { background: #e8f5e9; color: #2e7d32; }
.module-row.inprogress .module-status { background: #e9f7ff; color: #0288d1; }
.mod-details { flex: 1; }
.mod-top { display: flex; justify-content: space-between; margin-bottom: 2px; }
.mod-top h4 { font-size: 13px; font-weight: 600; max-width: 250px; }
.mod-top .score { font-weight: 700; font-size: 14px; }
.mod-sub { font-size: 10px; color: #999; margin-bottom: 8px; }
.progress-track { width: 100%; height: 5px; background: #eee; border-radius: 5px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 5px; }
.progress-bar.green { background: #4caf50; }
.progress-bar.blue { background: #2196f3; }
.progress-bar.grey { background: #bdbdbd; }
.badge-locked { font-size: 9px; background: #eee; padding: 2px 6px; border-radius: 4px; color: #777; }
.mod-meta-bottom { display: flex; justify-content: flex-end; margin-top: 5px; font-size: 10px; color: #888; }
.mod-status-icon { width: 20px; text-align: center; }
.mod-status-icon.green { color: #4caf50; font-size: 18px; }
.mod-status-icon.blue-solid { width: 12px; height: 12px; background: #2196f3; border-radius: 50%; }
.mod-status-icon.grey-circle { width: 12px; height: 12px; background: #ddd; border-radius: 50%; }

.skill-section { min-height: 300px; }
.chart-legend { font-size: 10px; color: #666; }
.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-left: 10px; margin-right: 3px; }
.legend-dot.blue { background: #2196f3; }
.legend-dot.grey { background: #ddd; }
.radar-wrapper { height: 220px; width: 100%; display: flex; justify-content: center; }

/* ========================================= */
/* 5. RIGHT COLUMN WIDGETS */
/* ========================================= */
.right-column { display: flex; flex-direction: column; gap: 25px; }

.stats-dark-card { background: var(--primary-dark); color: white; padding: 20px; border-radius: 20px; position: relative; overflow: hidden; min-height: 140px; }
.stats-top { display: flex; justify-content: space-between; font-size: 10px; opacity: 0.8; letter-spacing: 0.5px; margin-bottom: 5px; }
.stats-big-num { font-size: 28px; font-weight: 700; z-index: 2; position: relative; }
.wave-wrapper { position: absolute; bottom: -10px; left: 0; width: 100%; height: 60px; opacity: 0.3; }

.grade-card { display: flex; align-items: center; gap: 15px; padding: 20px; }
.grade-circle-wrapper { width: 60px; height: 60px; position: relative; }
.circular-chart { display: block; margin: 0 auto; max-width: 100%; max-height: 250px; }
.circle-bg { fill: none; stroke: #eee; stroke-width: 3.8; }
.circle { fill: none; stroke-width: 2.8; stroke-linecap: round; stroke: var(--primary-dark); animation: progress 1s ease-out forwards; }
.percentage { fill: #333; font-family: 'Poppins', sans-serif; font-weight: bold; font-size: 0.5em; text-anchor: middle; }
@keyframes progress { 0% { stroke-dasharray: 0 100; } }
.grade-text h4 { font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.grade-text p { font-size: 10px; color: #888; }
.label-gray { font-size: 10px; color: #999; }

.milestone-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 20px; }
.timeline-container { border-left: 2px solid #e0e0e0; margin-left: 8px; padding-left: 20px; display: flex; flex-direction: column; gap: 20px; }
.tl-item { position: relative; }
.tl-dot, .tl-dot-ring, .tl-dot-hollow { position: absolute; left: -26px; top: 2px; width: 10px; height: 10px; border-radius: 50%; background: white; }
.tl-item.done .tl-dot { background: #4caf50; border: 2px solid #4caf50; }
.tl-item.current .tl-dot-ring { border: 2px solid #2196f3; box-shadow: 0 0 0 2px #dbeafe; }
.tl-item.future .tl-dot-hollow { border: 2px solid #ccc; }
.tl-content h4 { font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.tl-content p { font-size: 11px; color: #888; }
.text-blue { color: #2196f3; }

.insight-box-blue { background: #e3f2fd; border: 1px solid #bbdefb; border-radius: 15px; padding: 15px; font-size: 11px; color: #1565c0; line-height: 1.5; }
.insight-icon { font-weight: 700; margin-bottom: 5px; display: flex; gap: 5px; align-items: center; }

footer { text-align: center; font-size: 12px; color: #aaa; margin-top: 40px; padding-bottom: 20px; }

/* ========================================= */
/* 6. RESPONSIVE MEDIA QUERIES */
/* ========================================= */
@media (max-width: 1024px) {
    .dashboard-grid { grid-template-columns: 1fr; }
    .right-column { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
    .sidebar { width: 70px; padding: 20px 10px; }
    .main-content { margin-left: 70px; width: calc(100% - 70px); }
    .brand-logo span, .menu-category, .menu-item { display: none; }
    .menu-item::before { content: '•'; font-size: 20px; margin: 0 auto; display: block; text-align: center; }
}

@media (max-width: 768px) {
    .sidebar { transform: translateX(-100%); width: 260px; z-index: 999; }
    .sidebar.active { transform: translateX(0); }
    .sidebar .menu-item { display: block; }
    .brand-logo span, .menu-category { display: block; }
    .menu-item::before { content: none; }
    .main-content { margin-left: 0; width: 100%; padding: 20px; }
    .right-column { grid-template-columns: 1fr; }
    .middle-row-grid { grid-template-columns: 1fr; }
    .hamburger-btn { display: block; }
    .close-sidebar-btn { display: block; }
}

/* ========================================= */
/* 7. HOME PAGE STYLES (FINAL TEAL & POPPINS)*/
/* ========================================= */

.home-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 20px;
    background-color: white; 
    min-height: 100vh;
}

/* Navbar */
.home-nav {
    display: flex;
    justify-content: flex-end;
    padding: 20px 0;
    margin-bottom: 10px;
    position: relative;
    z-index: 999;
}
.home-nav ul {
    display: flex;
    list-style: none;
    gap: 15px;
    align-items: center;
}
.nav-item {
    text-decoration: none;
    color: #555;
    font-weight: 600; /* Poppins SemiBold */
    font-size: 14px;
    padding: 8px 20px;
    border-radius: 20px;
    transition: 0.3s;
}
.nav-item.active {
    background-color: #dbeafe;
    color: #004e64;
}
.nav-item:hover { color: #004e64; }

/* Hero Teal Top */
.hero-teal-top {
    background-color: #005060; /* Teal Gelap */
    border-radius: 40px;
    padding: 60px 80px;
    position: relative;
    color: white;
    min-height: 380px; 
    display: flex;
    align-items: center;
    margin-bottom: 25px;
    overflow: hidden; 
}

/* Dekorasi pattern abstrak di background */
.hero-teal-top::before {
    content: '';
    position: absolute;
    right: -50px; top: -50px;
    width: 300px; height: 300px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
    pointer-events: none;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 50%;
}
.hero-content h1 {
    font-size: 42px;
    font-weight: 700; /* Poppins Bold */
    margin-bottom: 15px;
    line-height: 1.2;
}
.hero-content p {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.9;
    line-height: 1.5;
}

/* Gambar Siswa */
.student-image-wrapper {
    position: absolute;
    right: 50px;
    bottom: 0;
    height: 90%;
    z-index: 3;
    display: flex;
    align-items: flex-end;
}
.student-img-home {
    height: 100%;
    width: auto;
    object-fit: contain;
    filter: drop-shadow(-10px 0 10px rgba(0,0,0,0.2));
}

/* Info Bottom */
.info-teal-bottom {
    background-color: #005060;
    border-radius: 40px;
    padding: 40px 60px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 250px;
}
.info-left { width: 35%; }
.info-left h2 {
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 15px;
}
.info-left p {
    font-size: 14px;
    margin-bottom: 25px;
    opacity: 0.9;
}

/* SOCIAL ICONS (UPDATED WITH BETTER HOVER) */
.social-icons { 
    display: flex; 
    gap: 15px; 
}

.social-icons a {
    display: flex; 
    align-items: center; 
    justify-content: center;
    width: 45px; /* Sedikit diperbesar */
    height: 45px; 
    border: 2px solid white; 
    border-radius: 50%;
    color: white; 
    text-decoration: none; 
    font-size: 20px; 
    
    /* Transisi yang lebih halus */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275); 
}

.social-icons a:hover { 
    background: white; 
    color: #005060; 
    
    /* Efek Pop-up & Shadow */
    transform: translateY(-5px) scale(1.1); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
    border-color: white;
}

/* Cards Kanan Bawah */
.info-right-cards {
    display: flex;
    gap: 25px;
    flex: 1;
    justify-content: flex-end;
}
.feature-card {
    background: white;
    border-radius: 30px;
    width: 170px; height: 170px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    text-align: center; padding: 20px;
    color: #005060;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}
.feature-card:hover { transform: translateY(-5px); }
.icon-box { font-size: 40px; margin-bottom: 15px; color: #005060; }
.feature-card h3 { font-size: 14px; font-weight: 600; line-height: 1.4; }

/* Footer */
.home-footer {
    text-align: center; padding: 30px 0; font-size: 13px; color: #666; margin-top: 10px;
}

/* Responsif Home */
@media (max-width: 900px) {
    .hero-teal-top { flex-direction: column; text-align: center; padding: 40px 20px; height: auto; justify-content: center; }
    .hero-content { max-width: 100%; margin-bottom: 20px; }
    .student-image-wrapper { position: relative; right: auto; bottom: auto; height: 200px; width: 100%; justify-content: center; margin-top: 20px; }
    .info-teal-bottom { flex-direction: column; padding: 40px 20px; gap: 40px; text-align: center; }
    .info-left { width: 100%; }
    .info-right-cards { width: 100%; flex-direction: column; align-items: center; }
    .feature-card { width: 100%; max-width: 300px; flex-direction: row; justify-content: flex-start; gap: 20px; height: auto; text-align: left; }
    .icon-box { margin-bottom: 0; }
}

/* ========================================= */
/* 8. AUTH MODAL STYLES (SESUAI GAMBAR)      */
/* ========================================= */

/* Overlay Background */
.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(3px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000; /* Pastikan di atas segalanya */
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Kotak Putih Modal */
.modal-content {
    background: white;
    width: 100%;
    max-width: 480px; /* Lebar sesuai gambar */
    padding: 40px 45px; /* Padding luas */
    border-radius: 20px; /* Sudut melengkung */
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2);
    text-align: left; /* Default text align left untuk input */
    animation: slideUp 0.3s ease;
}

@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

/* Judul "Masuk" */
.auth-title {
    font-size: 28px;
    font-weight: 800; /* Bold tebal */
    color: #333;
    margin-bottom: 30px;
    text-align: left;
}

/* Tombol Close (X Merah) */
.close-btn {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 28px;
    font-weight: 700;
    color: #ef5350; /* Warna Merah */
    cursor: pointer;
    line-height: 1;
    transition: 0.2s;
}
.close-btn:hover { color: #d32f2f; transform: scale(1.1); }

/* Input Fields */
.form-group { margin-bottom: 20px; }

.form-input {
    width: 100%;
    padding: 14px 16px; /* Input agak tinggi */
    border: 1px solid #ccc;
    border-radius: 10px;
    font-size: 15px;
    outline: none;
    color: #555;
    transition: 0.3s;
}

.form-input:focus {
    border-color: #005060;
    box-shadow: 0 0 0 3px rgba(0, 80, 96, 0.1);
}

.form-input::placeholder { color: #999; }

/* Remember Me & Lupa Password */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 25px;
    color: #666;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.forgot-pass {
    color: #005060; /* Teal color */
    font-weight: 700;
    text-decoration: none;
}
.forgot-pass:hover { text-decoration: underline; }

/* Tombol Login (Teal) */
.btn-login-submit {
    width: 100%;
    padding: 14px;
    background-color: #005060; /* Warna Teal Gelap sesuai gambar */
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 80, 96, 0.2);
    transition: 0.2s;
}
.btn-login-submit:hover { background-color: #003e4d; transform: translateY(-1px); }

/* Divider 'atau' */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 25px 0;
    color: #999;
    font-size: 14px;
}
.auth-divider::before, .auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #ddd;
}
.auth-divider span { padding: 0 15px; }

/* Tombol Google */
.btn-google {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #ccc;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 15px;
    font-weight: 600;
    color: #444;
    cursor: pointer;
    transition: 0.2s;
}
.btn-google:hover { background-color: #f9f9f9; border-color: #bbb; }
.btn-google img { width: 22px; height: 22px; }

/* Footer Link (Daftar) */
.auth-footer-link {
    text-align: center;
    margin-top: 30px;
    font-size: 15px;
    color: #555;
}
.auth-footer-link a {
    color: #2196f3; /* Biru terang untuk kata Daftar */
    font-weight: 700;
    text-decoration: none;
}

/* Legal Text */
.legal-text {
    text-align: center;
    margin-top: 30px;
    font-size: 11px;
    color: #888;
    line-height: 1.6;
}
.legal-text a {
    color: #666;
    text-decoration: underline;
}

/* Responsif Mobile */
@media (max-width: 500px) {
    .modal-content {
        width: 90%;
        padding: 30px 20px;
    }
    .auth-title { font-size: 24px; }
    .form-options { font-size: 12px; flex-direction: row; }
}
/* Sidebar khusus untuk Dashboard Page */
.dashboard-body .sidebar {
    background-color: #003e52; /* Dark Teal sesuai gambar */
}

/* Menu Item Aktif (Pill Shape Putih) */
.sidebar .menu-item.active {
    background-color: white;
    color: #003e52;
    font-weight: 700;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* Icon React 3D di Hero Card */
.react-icon-3d {
    font-size: 80px; 
    color: #61dafb; 
    filter: drop-shadow(0 10px 15px rgba(97, 218, 251, 0.4));
    animation: spin 10s linear infinite; 
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* Radar Chart Wrapper */
.radar-wrapper {
    height: 220px; 
    width: 100%; 
    display: flex; 
    justify-content: center;
}
/* ========================================= */
/* MY PROGRESS PAGE STYLES                   */
/* ========================================= */

/* Header Search Wide */
.progress-header {
    margin-bottom: 25px;
}
.search-bar-wide input {
    width: 100%;
    max-width: 400px;
    padding: 10px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
    outline: none;
}

/* Progress Overview Card */
.progress-overview-card {
    padding: 25px;
    margin-bottom: 30px;
}
.progress-overview-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 5px;
}
.progress-overview-card p {
    font-size: 12px;
    color: #666;
    margin-bottom: 15px;
}
.progress-container-wide {
    width: 100%;
    height: 12px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 5px;
}
.progress-bar-orange {
    height: 100%;
    background-color: #ffa000; /* Warna Orange */
    border-radius: 10px;
}
.progress-text-right {
    text-align: right;
    font-size: 12px;
    font-weight: 700;
    color: #333;
}

/* Tabs */
.tab-section {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}
.btn-tab {
    padding: 8px 16px;
    border-radius: 5px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.btn-tab.active {
    background-color: #003e52; /* Primary Dark */
    color: white;
}
.btn-tab.inactive {
    background-color: transparent;
    color: #888;
}
.divider-line {
    border: 0;
    border-top: 1px solid #eee;
    margin-bottom: 25px;
}

/* Course List */
.course-list-section {
    background: white;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    margin-bottom: 30px;
}
.list-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 15px;
}

/* Alert Box */
.alert-box-yellow {
    background-color: #fffde7;
    border: 1px solid #fff9c4;
    padding: 12px 15px;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: #fbc02d;
    font-weight: 600;
    margin-bottom: 20px;
}

/* Course Rows */
.course-item-row {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 10px;
    background: white;
}
.course-icon {
    color: #ccc;
    margin-right: 15px;
    font-size: 16px;
}
.course-name {
    flex: 1;
    font-size: 13px;
    font-weight: 500;
    color: #333;
}
.btn-continue {
    background-color: #e0f2f1;
    color: #00695c;
    border: none;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.btn-continue:hover {
    background-color: #b2dfdb;
}

/* Small progress for course list row */
.course-mini-progress { display:flex; align-items:center; gap:8px; margin-top:6px; }
.mini-track { width: 160px; height: 8px; background: #f1f5f9; border-radius: 6px; overflow:hidden; }
.mini-fill { height: 100%; background: #ff8a00; border-radius: 6px; }
.mini-percent { font-size: 12px; color: #888; min-width:36px; text-align:right; }

/* Recommendations */
.recommendation-section {
    margin-bottom: 40px;
}
.rec-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}
.rec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}
@media (max-width: 768px) {
    .rec-grid { grid-template-columns: 1fr; }
}

.rec-card {
    background: white;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
}
.rec-card h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
}
.rec-card p {
    font-size: 12px;
    color: #666;
    margin-bottom: 20px;
    line-height: 1.5;
}
.link-start {
    font-size: 12px;
    color: #2196f3;
    font-weight: 600;
    text-decoration: none;
}
.link-start:hover {
    text-decoration: underline;
}
.dash-footer {
    text-align: center;
    font-size: 12px;
    color: #aaa;
    margin-top: 20px;
}
/* ========================================= */
/* TAMBAHAN UNTUK HALAMAN COMPLETED (MY PROGRESS) */
/* ========================================= */

/* Ikon Centang Hijau Bulat */
.icon-check-green {
    width: 40px;
    height: 40px;
    background-color: #dcfce7; /* Hijau muda soft */
    color: #16a34a; /* Hijau tua */
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    flex-shrink: 0;
    font-size: 14px;
}

/* Teks Info Kursus */
.course-info-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Tanggal Completed (Teks abu-abu kecil di bawah judul) */
.course-date {
    font-size: 11px;
    color: #9ca3af; /* Abu-abu slate-400 */
    margin-top: 4px;
    font-weight: 400;
}

/* Tombol View Certificate (Hitam) */
.btn-view-certificate {
    background-color: #0f172a; /* Slate-900 (Hitam kebiruan) */
    color: white;
    border: none;
    padding: 8px 20px;
    border-radius: 20px; /* Pill shape */
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s;
}

.btn-view-certificate:hover {
    background-color: #334155;
}

/* Certificate page layout */
.certificate-card { max-width: 900px; margin: 30px auto; background: white; box-shadow: var(--card-shadow); border-radius: 12px; }
.cert-title { font-size: 28px; color:#0e677d; }
.cert-sub { color: #777; }
.cert-name { color: #222; }

/* Print rules to ensure only certificate is printed */
@media print {
    body * { visibility: hidden; }
    .certificate-card, .certificate-card * { visibility: visible; }
    .certificate-card { position: absolute; left: 0; top: 0; width: 100%; }
}

/* Tab Button Colors Override (Supaya Active = Biru Gelap) */
.btn-tab.active {
    background-color: #0e7490; /* Cyan-700 / Teal Gelap sesuai gambar */
    color: white;
}

/* Styling Utama Halaman Progress */
.progress-container {
  padding: 2rem;
  background-color: #121212; /* Background Gelap */
  color: white;
  min-height: 100vh;
  font-family: 'Segoe UI', sans-serif;
}

/* Header Summary */
.progress-header { margin-bottom: 2rem; }

.progress-summary {
  display: flex;
  align-items: center;
  background: #1E1E1E;
  border: 1px solid #333;
  padding: 1.5rem;
  border-radius: 8px;
  gap: 1.5rem;
}

.progress-summary p { margin: 0; white-space: nowrap; }

.progress-bar-track {
  width: 100%;
  height: 8px;
  background: #333;
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: #00DBB5; /* Hijau Dicoding */
}

.percentage-text { font-weight: bold; color: #00DBB5; }

/* Tabs */
.tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #333;
  margin-bottom: 20px;
}

.tab-btn {
  background: none;
  border: none;
  color: #888;
  padding: 10px 0;
  cursor: pointer;
  font-size: 16px;
  position: relative;
}

.tab-btn.active {
  color: #00DBB5;
  font-weight: bold;
}

.tab-btn.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: #00DBB5;
}

/* Banner */
.info-banner {
  background: #162430;
  color: #64B5F6;
  padding: 12px;
  border-radius: 6px;
  margin-bottom: 24px;
  font-size: 14px;
}

/* Grid System */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Card Styling */
.course-card {
  background: #1E1E1E;
  border: 1px solid #333;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.course-image {
  height: 140px;
  background: #2D2D2D;
}

.course-content {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.badge-level {
    background: var(--primary-dark);
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.course-title {
  font-size: 16px;
  margin: 12px 0;
  line-height: 1.4;
  flex: 1;
}

/* Card Progress Bar */
.card-progress-section {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.card-track {
  flex: 1;
  height: 6px;
  background: #333;
  border-radius: 3px;
}

.card-fill {
  height: 100%;
  background: #00DBB5;
}

.card-percent {
  font-size: 12px;
  color: #888;
}

.completed-date {
  font-size: 12px;
  color: #888;
  margin-bottom: 16px;
}

/* Action Buttons */
.btn-action {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  box-sizing: border-box; /* Penting agar padding tidak merusak lebar */
}

.btn-continue {
  border: 1px solid #00DBB5;
  color: #00DBB5;
  background: transparent;
  transition: 0.3s;
}

.btn-continue:hover {
  background: #00DBB5;
  color: black;
}

.btn-completed-view {
  background: #333;
  color: white;
  border: none;
}