body { font-family: 'Segoe UI', system-ui, sans-serif; }

/* ---------- Navbar compact mobile ---------- */
@media (max-width: 991.98px) {
  .navbar-collapse {
    background: #212529;
    border-radius: .75rem;
    padding: .5rem .75rem;
    margin-top: .75rem;
    border: 1px solid rgba(255,255,255,.08);
  }

  .navbar-collapse .navbar-nav .nav-link {
    padding: .45rem .75rem;
    font-size: .88rem;
    border-radius: .5rem;
    transition: background .15s;
  }

  .navbar-collapse .navbar-nav .nav-link:hover,
  .navbar-collapse .navbar-nav .nav-link:active {
    background: rgba(255,255,255,.1);
  }

  .navbar-collapse .navbar-nav + .navbar-nav {
    margin-top: .35rem;
    padding-top: .35rem;
    border-top: 1px solid rgba(255,255,255,.08);
  }
}

.card-soal { border-radius: .75rem; box-shadow: 0 .125rem .5rem rgba(0,0,0,.08); }

.opsi-btn {
    text-align: left;
    white-space: normal;
}

.opsi-btn.benar {
    background-color: #d1e7dd !important;
    border-color: #198754 !important;
}

.opsi-btn.salah {
    background-color: #f8d7da !important;
    border-color: #dc3545 !important;
}

.badge-kesulitan-1, .badge-kesulitan-2 { background-color: #198754; }
.badge-kesulitan-3 { background-color: #fd7e14; }
.badge-kesulitan-4, .badge-kesulitan-5 { background-color: #dc3545; }

#mastery-bar { height: 10px; }

/* ---------- Dashboard siswa ---------- */
.text-teal   { color: #0d9488; }
.text-indigo { color: #6366f1; }
.bg-indigo   { background-color: #6366f1; color: #fff; }

.dashboard-hero {
    background: linear-gradient(135deg, #1e293b 0%, #334155 50%, #0f172a 100%);
    border-radius: 1rem;
    color: #fff;
    padding: 2rem;
    position: relative;
    overflow: hidden;
}

.dashboard-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 85% 20%, rgba(99,102,241,.35), transparent 55%),
                radial-gradient(circle at 15% 90%, rgba(13,148,136,.30), transparent 55%);
    pointer-events: none;
}

.hero-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    flex-shrink: 0;
}

.hero-stat {
    background: rgba(255,255,255,.08);
    border: 1px solid rgba(255,255,255,.12);
    border-radius: .75rem;
    padding: .75rem 1rem;
    backdrop-filter: blur(4px);
}

.menu-card {
    border: none;
    border-radius: 1rem;
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 1.5rem;
    height: 100%;
    transition: transform .18s ease, box-shadow .18s ease;
    box-shadow: 0 .25rem .75rem rgba(0,0,0,.12);
}

.menu-card:hover {
    transform: translateY(-6px);
    color: #fff;
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.20);
}

.menu-card .menu-icon {
    width: 52px;
    height: 52px;
    border-radius: .75rem;
    background: rgba(255,255,255,.18);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.menu-card--materi { background: linear-gradient(135deg, #0d9488, #14b8a6); }
.menu-card--video  { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.menu-card--kuis   { background: linear-gradient(135deg, #f59e0b, #f97316); }
.menu-card--lapor  { background: linear-gradient(135deg, #0ea5e9, #2563eb); }
.menu-card--buat   { background: linear-gradient(135deg, #a855f7, #d946ef); }
.menu-card--ujian  { background: linear-gradient(135deg, #e11d48, #f43f5e); }
.menu-card--chat   { background: linear-gradient(135deg, #059669, #34d399); }
.bg-purple { background-color: #a855f7 !important; color: #fff; }

.video-thumb { cursor: default; }
.btn-putar { cursor: pointer; }

.materi-uraian {
    background: #f0fdfa;
    border-left: 4px solid #0d9488;
    border-radius: .5rem;
    padding: .9rem 1.1rem;
}

/* ---------- List video ala YouTube ---------- */
.yt-card { cursor: pointer; }

.yt-thumb {
    position: relative;
    overflow: hidden;
    background: #0f0f0f;
    border-radius: .75rem;
}

.yt-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .2s ease;
}

.yt-card:hover .yt-thumb img { transform: scale(1.03); }

.yt-play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,.10);
    opacity: 0;
    transition: opacity .15s ease;
}

.yt-card:hover .yt-play-overlay { opacity: 1; }

.yt-play-btn {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(255, 0, 0, .92);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    border: none;
    box-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.yt-meta-row { display: flex; gap: .6rem; margin-top: .6rem; }

.yt-channel-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #6366f1, #0d9488);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    flex-shrink: 0;
    font-size: .9rem;
}

.yt-title {
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.yt-subtitle { font-size: .8rem; color: #606060; }

.yt-desc {
    font-size: .8rem;
    color: #606060;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
