:root {
    --primary-blue: #0ea5e9;
    --light-bg: #f8fafc;
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.05);
}

body {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    margin: 0;
}

body.page-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-wrapper,
.registration-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
}

.glass-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4), inset 0 0 5px rgba(14, 165, 233, 0.05);
}

/* --- NEW STUDENT DASHBOARD --- */
.student-hero-card {
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    border-radius: 20px;
    padding: 40px;
    color: white;
    box-shadow: 0 15px 30px rgba(14, 165, 233, 0.2);
    position: relative;
    overflow: hidden;
}

.student-hero-card::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: url('data:image/svg+xml;utf8,<svg width="100" height="100" viewBox="0 0 100 100" xmlns="http://www.w3.org/2000/svg"><circle cx="50" cy="50" r="40" stroke="rgba(255,255,255,0.1)" stroke-width="2" fill="none"/></svg>') repeat;
    opacity: 0.5;
    pointer-events: none;
}

.student-hero-card * {
    position: relative;
    z-index: 1;
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
    transition: all 0.3s ease;
    border: 1px solid rgba(14, 165, 233, 0.3);
    height: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.6);
    border-color: rgba(14, 165, 233, 0.5);
}

.stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
}

.stat-info h3 {
    margin: 0;
    color: var(--text-dark);
}

.stat-info p {
    margin: 0;
}

/* Logout link tetap merah */
.nav-link.text-danger,
.nav-link.text-danger:hover,
.nav-link.text-danger:focus,
.nav-link.text-danger.active {
    color: #ef4444 !important;
    background-color: rgba(239, 68, 68, 0.08) !important;
}

.header-section {
    text-align: center;
    margin-bottom: 40px;
}

.header-section i {
    font-size: 3.5rem;
    color: var(--primary-blue);
}

.header-section h2 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    margin-top: 20px;
    color: var(--text-dark);
    letter-spacing: 2px;
    text-transform: uppercase;
}

.input-group-custom {
    position: relative;
    margin-bottom: 25px;
}

.input-group-custom input,
.input-group-custom select {
    width: 100%;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px 10px 12px 40px;
    color: var(--text-dark);
    font-size: 1rem;
    font-weight: 500;
    appearance: none;
    transition: 0.3s;
}

.select-wrapper {
    position: relative;
}

.select-wrapper::after {
    content: "\F285";
    font-family: "bootstrap-icons";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
    font-size: 0.8rem;
}

.input-group-custom i.main-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.2rem;
    transition: 0.3s;
}

.input-group-custom input:focus,
.input-group-custom select:focus {
    outline: none;
    background: #ffffff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(14, 165, 233, 0.15);
}

.input-group-custom input:focus~i.main-icon,
.input-group-custom select:focus~i.main-icon {
    color: var(--primary-blue);
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text-dark);
    -webkit-box-shadow: 0 0 0px 1000px #f1f5f9 inset;
    transition: background-color 5000s ease-in-out 0s;
}

.btn-cyber {
    background: var(--primary-blue);
    border: none;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 16px;
    border-radius: 15px;
    width: 100%;
    letter-spacing: 1px;
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 10px;
    transition: 0.3s ease;
}

.btn-cyber:hover {
    background: #0284c7;
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.3);
    transform: translateY(-2px);
}

.footer-links {
    text-align: center;
    margin-top: 30px;
    font-size: 0.85rem;
    font-weight: 400;
    color: var(--text-muted);
}

.footer-links a {
    color: var(--primary-blue);
    text-decoration: none;
    font-weight: 600;
}

.footer-links a:hover {
    text-decoration: underline;
}

option {
    background: #ffffff;
    color: var(--text-dark);
}



/* --- dashboard.css (Siswa) --- */
body.page-siswa-dashboard {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

body.page-siswa-dashboard .sidebar {
    width: 300px;
    background: var(--card-bg);
    border-right: 1px solid #e2e8f0;
    padding: 40px 20px;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 5px 0 20px rgba(0, 0, 0, 0.02);
    z-index: 100;
}

body.page-siswa-dashboard .brand-section {
    text-align: center;
    margin-bottom: 30px;
}

body.page-siswa-dashboard .brand-section h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    letter-spacing: 3px;
    font-size: 1.5rem;
    font-weight: 800;
}

body.page-siswa-dashboard .pilot-info {
    background: #f1f5f9;
    padding: 15px;
    border-radius: 15px;
    border-left: 4px solid var(--primary-blue);
    margin-bottom: 40px;
}

body.page-siswa-dashboard .pilot-info small {
    font-size: 0.7rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 1px;
}

body.page-siswa-dashboard .pilot-info p {
    margin: 0;
    font-weight: 700;
    color: var(--text-dark);
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 1px;
}

body.page-siswa-dashboard .nav-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

body.page-siswa-dashboard .nav-item {
    text-decoration: none;
    color: var(--text-muted);
    padding: 15px 20px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: 0.3s ease;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid transparent;
}

body.page-siswa-dashboard .nav-item:hover {
    background: #f0f9ff;
    color: var(--primary-blue);
    transform: translateX(5px);
}

body.page-siswa-dashboard .btn-logout {
    text-decoration: none;
    color: #ef4444;
    padding: 15px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    transition: 0.3s;
    background: rgba(239, 68, 68, 0.05);
}

body.page-siswa-dashboard .btn-logout:hover {
    background: #ef4444;
    color: #fff;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

body.page-siswa-dashboard .main-panel {
    flex-grow: 1;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 300px;
}

body.page-siswa-dashboard .welcome-card {
    background: var(--card-bg);
    border: 1px solid rgba(14, 165, 233, 0.3);
    padding: 60px;
    border-radius: 40px;
    text-align: center;
    max-width: 800px;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

body.page-siswa-dashboard .welcome-card h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: 3px;
    margin-bottom: 20px;
    color: var(--text-dark);
}

/* --- quiz.css (Siswa) --- */
body.page-siswa-quiz {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
}

body.page-siswa-quiz #sky {
    display: none;
}

body.page-siswa-quiz .header-quiz {
    background: var(--card-bg);
    border-bottom: 2px solid #e2e8f0;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

body.page-siswa-quiz .header-quiz h1 {
    font-family: 'Montserrat', sans-serif;
    letter-spacing: 4px;
    color: var(--primary-blue);
    font-weight: 800;
}

body.page-siswa-quiz .quiz-card {
    background: var(--card-bg);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 25px;
    padding: 30px;
    margin-bottom: 25px;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4);
}

body.page-siswa-quiz .radar-label {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
    letter-spacing: 1px;
}

body.page-siswa-quiz .opsi-label {
    display: block;
    background: #f8fafc;
    padding: 15px;
    margin: 10px 0;
    border-radius: 15px;
    cursor: pointer;
    border: 1px solid #e2e8f0;
    transition: 0.3s;
    color: var(--text-dark);
    font-weight: 500;
}

body.page-siswa-quiz .opsi-label:hover {
    background: #f0f9ff;
    border-color: var(--primary-blue);
    transform: scale(1.01);
}

body.page-siswa-quiz input[type="radio"]:checked+.opsi-label {
    background: var(--primary-blue);
    color: #ffffff;
    border-color: var(--primary-blue);
}

body.page-siswa-quiz input[type="radio"] {
    display: none;
}

body.page-siswa-quiz .btn-submit {
    background: var(--primary-blue);
    color: #ffffff;
    border: none;
    padding: 15px 50px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.page-siswa-quiz .btn-submit:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.4);
    background: #0284c7;
}

body.page-siswa-quiz .result-panel {
    background: var(--card-bg);
    border: 2px solid var(--primary-blue);
    border-radius: 40px;
    padding: 50px;
    margin-top: 50px;
    box-shadow: var(--shadow-soft);
}

/* --- score_quiz.css (Siswa) --- */
body.page-siswa-score {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    height: 100vh;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

body.page-siswa-score #sky {
    display: none;
}

body.page-siswa-score .scene {
    width: 100%;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.page-siswa-score .neon-title {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 2.5rem;
    text-align: center;
    margin-bottom: 40px;
}

body.page-siswa-score .card-misi-3d {
    background: var(--card-bg);
    border: 1px solid rgba(14, 165, 233, 0.3);
    border-radius: 30px;
    padding: 2.5rem;
    width: 100%;
    box-shadow: 0 0 20px rgba(14, 165, 233, 0.5);
}

body.page-siswa-score .table-3d {
    width: 100%;
    border-collapse: collapse;
}

body.page-siswa-score .table-3d thead th {
    color: var(--text-muted);
    border-bottom: 2px solid #e2e8f0;
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    font-size: 0.85rem;
    padding: 15px;
    text-align: center;
    letter-spacing: 2px;
}

body.page-siswa-score .table-3d tbody td {
    border-bottom: 1px solid #f1f5f9;
    padding: 15px;
    vertical-align: middle;
    text-align: center;
    color: var(--text-dark);
    font-size: 1rem;
}

body.page-siswa-score .pilot-name-cell {
    text-align: left !important;
    padding-left: 40px !important;
    font-weight: 600;
    text-transform: uppercase;
}

body.page-siswa-score .score-cell {
    color: var(--primary-blue) !important;
    font-weight: bold;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.3rem !important;
}

body.page-siswa-score .rank-cell {
    color: var(--text-muted);
    font-weight: bold;
}

body.page-siswa-score .btn-back {
    margin-top: 40px;
    border: 2px solid var(--primary-blue);
    color: var(--primary-blue);
    background: transparent;
    text-decoration: none;
    padding: 12px 40px;
    border-radius: 50px;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
    font-size: 0.8rem;
    letter-spacing: 2px;
    transition: 0.3s;
    display: inline-block;
}

body.page-siswa-score .btn-back:hover {
    background: var(--primary-blue);
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

/* --- forum.css (Siswa) --- */
body.page-siswa-forum {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    height: 100vh;
    overflow: hidden;
}

body.page-siswa-forum .main-wrapper {
    height: 100vh;
    display: flex;
    flex-direction: column;
}

body.page-siswa-forum .chat-header {
    height: 80px;
    padding: 0 30px;
    background: var(--card-bg);
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

body.page-siswa-forum .brand-text {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    letter-spacing: 2px;
    margin: 0;
    font-weight: 800;
}

body.page-siswa-forum .chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

body.page-siswa-forum .chat-body::-webkit-scrollbar {
    width: 5px;
}

body.page-siswa-forum .chat-body::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 10px;
}

body.page-siswa-forum .msg-row {
    display: flex;
    gap: 12px;
    max-width: 80%;
}

body.page-siswa-forum .msg-incoming {
    align-self: flex-start;
}

body.page-siswa-forum .msg-outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
}

body.page-siswa-forum .avatar {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

body.page-siswa-forum .bubble {
    padding: 12px 18px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    color: var(--text-dark);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.02);
}

body.page-siswa-forum .msg-outgoing .bubble {
    background: var(--primary-blue);
    border-color: var(--primary-blue);
    color: #ffffff;
}

body.page-siswa-forum .sender-info {
    font-family: 'Montserrat', sans-serif;
    font-size: 0.7rem;
    color: var(--text-muted);
    margin-bottom: 4px;
    display: block;
}

body.page-siswa-forum .msg-outgoing .sender-info {
    text-align: right;
}

body.page-siswa-forum .chat-footer {
    padding: 20px 40px;
    background: #ffffff;
    border-top: 1px solid #e2e8f0;
}

body.page-siswa-forum .input-group-custom {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 15px;
    display: flex;
    padding: 5px;
    max-width: 900px;
    margin: auto;
    transition: 0.3s;
}

body.page-siswa-forum .input-group-custom:focus-within {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

body.page-siswa-forum .input-box {
    background: transparent !important;
    border: none !important;
    color: var(--text-dark) !important;
    padding: 10px 20px !important;
    outline: none !important;
    box-shadow: none !important;
    font-weight: 500;
}

body.page-siswa-forum .input-box::placeholder {
    color: #94a3b8 !important;
}

body.page-siswa-forum .btn-send {
    width: 45px;
    height: 45px;
    border-radius: 10px;
    background: var(--primary-blue);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    transition: 0.3s;
}

body.page-siswa-forum .btn-send:hover {
    background: #0284c7;
}

/* --- belajar.css (Siswa) --- */
body.page-siswa-belajar {
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    line-height: 1.8;
}

body.page-siswa-belajar #reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 4px;
    background: var(--primary-blue);
    z-index: 9999;
    transition: width 0.2s ease;
}

body.page-siswa-belajar .reader-container {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 40px;
    margin-top: 30px;
    box-shadow: var(--shadow-soft);
}

body.page-siswa-belajar .materi-section {
    padding: 20px 0;
    border-bottom: 1px solid #f1f5f9;
}

body.page-siswa-belajar .materi-section:last-child {
    border-bottom: none;
}

body.page-siswa-belajar h2,
body.page-siswa-belajar h3 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    font-weight: 800;
    letter-spacing: -0.5px;
}

body.page-siswa-belajar .highlight-box {
    background: #f0f9ff;
    border-left: 4px solid var(--primary-blue);
    padding: 20px;
    border-radius: 0 15px 15px 0;
    margin: 20px 0;
}

body.page-siswa-belajar .sidebar-nav {
    position: sticky;
    top: 100px;
    background: #ffffff;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    border: 1px solid #e2e8f0;
}

body.page-siswa-belajar .nav-link-custom {
    display: block;
    padding: 10px 15px;
    color: var(--text-muted);
    text-decoration: none;
    border-left: 2px solid #e2e8f0;
    transition: 0.3s;
    font-size: 0.95rem;
    font-weight: 500;
}

body.page-siswa-belajar .nav-link-custom:hover,
body.page-siswa-belajar .nav-link-custom.active {
    color: var(--primary-blue);
    border-left-color: var(--primary-blue);
    background: #f0f9ff;
}

body.page-siswa-belajar .organ-badge {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 10px 20px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
    color: var(--text-dark);
}

body.page-siswa-belajar .organ-badge:hover {
    border-color: var(--primary-blue);
    background: #f0f9ff;
    transform: translateY(-2px);
}

body.page-siswa-belajar .btn-action {
    background: var(--primary-blue);
    border: none;
    color: #ffffff;
    font-weight: 700;
    padding: 15px 35px;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

body.page-siswa-belajar .btn-action:hover {
    background: #0284c7;
    box-shadow: 0 8px 20px rgba(14, 165, 233, 0.4);
    transform: translateY(-2px);
    color: white;
}

/* --- dashboard_guru.css (Guru) --- */
body.page-guru-dashboard {
    --sidebar-width: 280px;
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

body.page-guru-dashboard #sky {
    display: none;
}

body.page-guru-dashboard .sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--card-bg);
    border-right: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

body.page-guru-dashboard .sidebar-brand h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
    margin-bottom: 30px;
}

body.page-guru-dashboard .nav-pills .nav-link {
    color: var(--text-muted);
    padding: 12px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
}

body.page-guru-dashboard .nav-pills .nav-link:hover,
body.page-guru-dashboard .nav-pills .nav-link.active {
    background: #f0f9ff;
    color: var(--primary-blue);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

body.page-guru-dashboard .main-content {
    margin-left: var(--sidebar-width);
    padding: 50px 60px;
    min-height: 100vh;
}

body.page-guru-dashboard .box {
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

body.page-guru-dashboard h2 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    font-weight: 800;
    margin-bottom: 25px;
}

body.page-guru-dashboard .form-control {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1;
    color: var(--text-dark) !important;
    padding: 12px;
    border-radius: 12px;
    font-weight: 500;
    transition: 0.3s;
}

body.page-guru-dashboard .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

body.page-guru-dashboard .btn-primary {
    background-color: var(--primary-blue);
    border: none;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
    transition: 0.3s;
}

body.page-guru-dashboard .btn-primary:hover {
    background: #0284c7;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

body.page-guru-dashboard .btn-logout {
    text-decoration: none;
    color: #ef4444;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: 0.3s;
    background: rgba(239, 68, 68, 0.05);
}

body.page-guru-dashboard .btn-logout:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

/* --- mengelola_materi.css (Guru) --- */
body.page-guru-materi {
    background-color: #f0f2f5;
    font-family: 'Segoe UI', Arial, sans-serif;
}

body.page-guru-materi .navbar {
    background-color: #ffffff;
    border-bottom: 2px solid #0d6efd;
}

body.page-guru-materi .box {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 25px;
    border: 1px solid #e0e0e0;
}

body.page-guru-materi h5 {
    color: #0d6efd;
    font-weight: bold;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.page-guru-materi .btn-utama {
    background-color: #0d6efd;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    width: 100%;
}

body.page-guru-materi .btn-utama:hover {
    background-color: #0b5ed7;
}

body.page-guru-materi .btn-logout {
    color: #dc3545;
    border: 1px solid #dc3545;
    border-radius: 8px;
    padding: 5px 15px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

body.page-guru-materi .btn-logout:hover {
    background-color: #dc3545;
    color: white;
}

body.page-guru-materi label {
    font-weight: 600;
    margin-bottom: 5px;
    font-size: 0.9rem;
    color: #444;
}

/* --- nilai.css (Guru) --- */
body.page-guru-nilai {
    background: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
}

body.page-guru-nilai .glass-card {
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow-soft);
}

body.page-guru-nilai .table-custom {
    color: var(--text-dark);
    border-color: #e2e8f0;
}

/* --- admin_module.css (Admin) --- */
body.page-admin-dashboard,
body.page-admin-kelola {
    --sidebar-width: 280px;
    background-color: var(--light-bg);
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    margin: 0;
    overflow-x: hidden;
}

body.page-admin-dashboard .sidebar,
body.page-admin-kelola .sidebar {
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--card-bg);
    border-right: 1px solid #e2e8f0;
    position: fixed;
    top: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    padding: 30px 20px;
    z-index: 1000;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.02);
}

body.page-admin-dashboard .sidebar-brand h4,
body.page-admin-kelola .sidebar-brand h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--primary-blue);
    font-weight: 800;
    letter-spacing: 2px;
    text-align: center;
}

body.page-admin-dashboard .nav-pills .nav-link,
body.page-admin-kelola .nav-pills .nav-link {
    color: var(--text-muted);
    padding: 12px 18px;
    margin-bottom: 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
}

body.page-admin-dashboard .nav-pills .nav-link:hover,
body.page-admin-dashboard .nav-pills .nav-link.active,
body.page-admin-kelola .nav-pills .nav-link:hover,
body.page-admin-kelola .nav-pills .nav-link.active {
    background: #f0f9ff;
    color: var(--primary-blue);
    border: 1px solid rgba(14, 165, 233, 0.2);
}

body.page-admin-dashboard .main-content,
body.page-admin-kelola .main-content {
    margin-left: var(--sidebar-width);
    padding: 50px 60px;
    min-height: 100vh;
}

body.page-admin-dashboard .box,
body.page-admin-kelola .box {
    background: var(--card-bg);
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 35px;
    margin-bottom: 30px;
    box-shadow: var(--shadow-soft);
}

body.page-admin-dashboard h2,
body.page-admin-kelola h2,
body.page-admin-kelola h4 {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-dark);
    font-weight: 800;
}

body.page-admin-dashboard .form-control,
body.page-admin-kelola .form-control {
    background-color: #f8fafc !important;
    border: 1px solid #cbd5e1;
    color: var(--text-dark) !important;
    padding: 12px;
    border-radius: 12px;
    font-weight: 500;
}

body.page-admin-dashboard .form-control:focus,
body.page-admin-kelola .form-control:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1);
}

body.page-admin-dashboard .btn-primary,
body.page-admin-kelola .btn-primary {
    background-color: var(--primary-blue);
    border: none;
    color: #ffffff;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    padding: 12px;
    border-radius: 12px;
    transition: 0.3s;
}

body.page-admin-dashboard .btn-primary:hover,
body.page-admin-kelola .btn-primary:hover {
    background: #0284c7;
    box-shadow: 0 5px 15px rgba(14, 165, 233, 0.3);
}

body.page-admin-dashboard .btn-logout,
body.page-admin-kelola .btn-logout {
    text-decoration: none;
    color: #ef4444;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(239, 68, 68, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 700;
    transition: 0.3s;
    background: rgba(239, 68, 68, 0.05);
}

body.page-admin-dashboard .btn-logout:hover,
body.page-admin-kelola .btn-logout:hover {
    background: #ef4444;
    color: white;
    box-shadow: 0 5px 15px rgba(239, 68, 68, 0.3);
}

body.page-admin-kelola .table-custom {
    color: var(--text-dark);
    border-color: #e2e8f0;
}

body.page-admin-kelola .table-custom td {
    padding: 15px;
    border-bottom: 1px solid #e2e8f0;
}

body.page-admin-kelola .table-custom th {
    padding: 15px;
    color: var(--baby-blue);
    border-bottom: 2px solid var(--baby-blue);
}

@keyframes moveDown {
    from {
        transform: translateY(-10vh);
    }

    to {
        transform: translateY(110vh);
    }
}

/* Hide Hamburger by Default (Desktop) */
.hamburger-btn {
    display: none;
}

/* --- ENHANCEMENT: RESPONSIVENESS (MOBILE & TABLET) --- */
@media (max-width: 991px) {

    /* Login Page */
    .login-wrapper {
        padding: 15px;
    }

    .glass-card {
        padding: 30px;
    }

    /* Hamburger Menu Button */
    .hamburger-btn {
        display: block;
        position: fixed;
        top: 15px;
        left: 15px;
        z-index: 1000;
        background: var(--primary-blue);
        color: white;
        border: none;
        border-radius: 8px;
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
        display: flex;
        align-items: center;
        justify-content: center;
        box-shadow: 0 4px 10px rgba(14, 165, 233, 0.3);
        cursor: pointer;
    }

    /* Siswa Dashboard */
    body.page-siswa-dashboard {
        display: block;
        height: auto;
        overflow: visible;
    }

    body.page-siswa-dashboard .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--card-bg);
        z-index: 999;
        padding: 20px;
        transition: 0.3s ease;
        flex-direction: column;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        border-right: none;
    }

    body.page-siswa-dashboard .sidebar.active {
        left: 0;
    }

    body.page-siswa-dashboard .brand-section {
        margin-bottom: 30px;
    }

    body.page-siswa-dashboard .nav-menu {
        flex-direction: column;
        overflow-x: visible;
        white-space: normal;
        padding-bottom: 0;
    }

    body.page-siswa-dashboard .pilot-info {
        display: block;
        margin-bottom: 20px;
    }

    body.page-siswa-dashboard .nav-item {
        padding: 15px 20px;
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    body.page-siswa-dashboard .main-panel {
        margin-left: 0;
        padding: 70px 20px 20px;
    }

    /* Guru & Admin Dashboard */
    body.page-guru-dashboard .sidebar,
    body.page-admin-dashboard .sidebar,
    body.page-admin-kelola .sidebar {
        position: fixed;
        top: 0;
        left: -100%;
        width: 280px;
        height: 100vh;
        background: var(--card-bg);
        z-index: 999;
        padding: 20px;
        transition: 0.3s ease;
        display: flex;
        flex-direction: column;
        box-shadow: 5px 0 15px rgba(0, 0, 0, 0.1);
        border-right: none;
    }

    body.page-guru-dashboard .sidebar.active,
    body.page-admin-dashboard .sidebar.active,
    body.page-admin-kelola .sidebar.active {
        left: 0;
    }

    body.page-guru-dashboard .nav-pills,
    body.page-admin-dashboard .nav-pills,
    body.page-admin-kelola .nav-pills {
        flex-direction: column !important;
        overflow-x: visible;
        white-space: normal;
    }

    body.page-guru-dashboard .nav-link,
    body.page-admin-dashboard .nav-link,
    body.page-admin-kelola .nav-link {
        margin-right: 0;
        margin-bottom: 10px;
        padding: 12px 15px;
    }

    body.page-guru-dashboard .sidebar-bottom,
    body.page-admin-dashboard .sidebar-bottom {
        display: block;
        margin-top: auto;
    }

    body.page-guru-dashboard .main-content,
    body.page-admin-dashboard .main-content,
    body.page-admin-kelola .main-content {
        margin-left: 0;
        padding: 70px 20px 20px;
    }

    body.page-guru-dashboard .box,
    body.page-admin-dashboard .box,
    body.page-admin-kelola .box {
        padding: 20px;
    }

    body.page-guru-dashboard table,
    body.page-admin-kelola table {
        font-size: 0.85rem;
    }

    /* Score & Quiz */
    body.page-siswa-score .neon-title {
        font-size: 1.8rem;
    }

    body.page-siswa-score .card-misi-3d {
        padding: 1.5rem;
    }

    body.page-siswa-score .table-3d th,
    body.page-siswa-score .table-3d td {
        padding: 10px;
        font-size: 0.9rem;
    }
}

/* --- ENHANCEMENT: LOGIN BACKGROUND --- */
body.page-login {
    background-color: var(--light-bg);
    background-image:
        radial-gradient(at 0% 0%, rgba(14, 165, 233, 0.1) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(14, 165, 233, 0.05) 0px, transparent 50%);
}

/* --- PRINT STYLES --- */
@media print {

    .sidebar,
    .navbar,
    .btn,
    .hide-on-print {
        display: none !important;
    }

    .main-content {
        margin-left: 0 !important;
        padding: 0 !important;
    }

    .box {
        border: none !important;
        box-shadow: none !important;
        padding: 0 !important;
    }

    .d-print-block {
        display: block !important;
    }

    body {
        background-color: white;
        color: black;
    }
}

/* --- SCIENCE EXPLORER THEME --- */
:root {
    --explorer-teal: #0ea5e9;
    --explorer-teal-dark: #0284c7;
    --explorer-amber: #fef3c7;
    --explorer-amber-dark: #f59e0b;
    --explorer-bg: #f8fafc;
    --explorer-card-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

.page-explorer {
    background-color: var(--explorer-bg);
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    color: #1e293b;
}

/* Navbar */
.explorer-navbar {
    background: white;
    padding: 0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.02);
    margin-bottom: 40px;
    border-bottom: 1px solid #f1f5f9;
}

.navbar-brand-explorer {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    color: var(--explorer-teal);
    font-size: 1.6rem;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 0;
}

.nav-link-explorer {
    font-weight: 700;
    color: #475569;
    padding: 25px 5px;
    /* Vertical padding to push underline to bottom */
    margin: 0 15px;
    transition: 0.3s;
    position: relative;
    display: inline-block;
    text-decoration: none;
    font-size: 1.1rem;
}

.nav-link-explorer:hover {
    color: var(--explorer-teal);
}

.nav-link-explorer.active {
    color: var(--explorer-teal);
}

.nav-link-explorer.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--explorer-teal);
    border-radius: 0;
}

/* Hero Card */
.explorer-hero-card {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.02);
    display: flex;
    align-items: center;
    gap: 40px;
    margin-bottom: 30px;
    border: 1px solid #f1f5f9;
}

.hero-illustration {
    width: 250px;
    height: 250px;
    object-fit: cover;
    border-radius: 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 15px;
}

.hero-content p {
    color: #475569;
    font-size: 1.1rem;
    line-height: 1.6;
}

/* Progress Bar Explorer */
.explorer-progress-container {
    margin-top: 35px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 700;
    color: #844d36;
    /* Brownish color */
    font-size: 0.9rem;
}

.explorer-progress {
    height: 16px;
    background: #e2e8f0;
    border-radius: 10px;
    overflow: hidden;
}

.explorer-progress-bar {
    height: 100%;
    background: var(--explorer-teal);
    border-radius: 10px;
}

/* Quest Card */
.quest-card {
    background: #fff5f2;
    border: 2px dashed #f9d8d1;
    border-radius: 30px;
    padding: 35px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.quest-card h5 {
    font-weight: 800;
    color: #844d36;
    font-size: 1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.quest-card h4 {
    font-weight: 800;
    font-size: 1.9rem;
    margin-bottom: 15px;
    color: #1e293b;
    line-height: 1.2;
}

.quest-card p {
    font-size: 1rem;
    color: #64748b;
    line-height: 1.5;
}

.btn-quest {
    background: #006b94;
    color: white;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 800;
    font-size: 1rem;
    margin-top: auto;
    display: flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-left: auto;
    text-decoration: none;
}

/* Quest Card */
.quest-card {
    background: #fff5f2;
    /* Peach color from image */
    border: 2px dashed #f9d8d1;
    border-radius: 30px;
    padding: 35px;
    height: 100%;
}

.quest-card h5 {
    font-weight: 800;
    color: #844d36;
    font-size: 1rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.quest-card h4 {
    font-weight: 800;
    font-size: 1.8rem;
    margin-bottom: 15px;
    color: #1e293b;
    line-height: 1.2;
}

.quest-card p {
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.btn-quest {
    background: #006b94;
    color: white;
    padding: 12px 25px;
    border-radius: 12px;
    font-weight: 800;
    font-size: 0.95rem;
    margin-top: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    margin-left: auto;
}

.btn-quest:hover {
    background: var(--explorer-teal-dark);
    transform: translateY(-3px);
}

/* Lesson Grid */
.section-title {
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.lesson-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: var(--explorer-card-shadow);
    transition: 0.3s;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.02);
    position: relative;
    text-decoration: none;
    color: inherit;
    display: block;
}

.lesson-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    color: inherit;
}

.lesson-thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 180px;
}

.lesson-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lesson-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.9);
    padding: 5px 15px;
    border-radius: 10px;
    font-size: 0.75rem;
    font-weight: 700;
}

.lesson-content {
    padding: 20px;
}

.lesson-content h5 {
    font-weight: 800;
    margin-bottom: 10px;
}

.lesson-content p {
    font-size: 0.9rem;
    color: #64748b;
    line-height: 1.5;
}

/* Locked State */
.lesson-card.locked {
    opacity: 0.7;
    filter: grayscale(0.5);
    cursor: not-allowed;
}

.lock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 2;
}

@media (max-width: 991px) {
    .explorer-hero-card {
        flex-direction: column;
        padding: 30px;
        text-align: center;
    }

    .hero-illustration {
        width: 100%;
        max-width: 200px;
        height: 200px;
    }

    .hero-content p {
        margin: auto;
    }
}

/* --- QUIZ EXPLORER THEME --- */
.quiz-header {
    margin-bottom: 40px;
}

.quiz-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 5px 15px;
    border-radius: 10px;
    margin-right: 8px;
    text-transform: uppercase;
    display: inline-block;
}

.badge-biology {
    background: #fef2f2;
    color: #ef4444;
}

.badge-quest {
    background: #eff6ff;
    color: #3b82f6;
}

.quiz-title {
    font-weight: 800;
    font-size: 2.5rem;
    color: #1e293b;
    margin: 15px 0;
}

.quiz-subtitle {
    color: #64748b;
    font-size: 1.1rem;
    max-width: 700px;
}

.quiz-progress-section {
    margin: 30px 0;
}

.quiz-step-info {
    display: flex;
    justify-content: space-between;
    font-weight: 700;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

/* Question Card */
.question-container {
    background: white;
    border-radius: 30px;
    padding: 40px;
    box-shadow: var(--explorer-card-shadow);
    min-height: 500px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

.question-text {
    font-weight: 700;
    font-size: 1.4rem;
    margin-bottom: 30px;
    line-height: 1.4;
    z-index: 2;
}

/* Decoration inside card */
.card-decoration {
    position: absolute;
    top: -50px;
    right: -50px;
    width: 200px;
    height: 200px;
    background: rgba(14, 165, 233, 0.05);
    border-radius: 50%;
    z-index: 1;
}

/* Custom Radio Options */
.option-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex-grow: 1;
    z-index: 2;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 18px 25px;
    border: 2px solid #f1f5f9;
    border-radius: 20px;
    cursor: pointer;
    transition: 0.3s;
    position: relative;
}

.option-item:hover {
    border-color: var(--explorer-teal);
    background: rgba(14, 165, 233, 0.02);
}

.option-item.selected {
    border-color: var(--explorer-teal);
    background: rgba(14, 165, 233, 0.05);
}

.option-radio {
    width: 24px;
    height: 24px;
    border: 2px solid #cbd5e1;
    border-radius: 50%;
    margin-right: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.option-item.selected .option-radio {
    border-color: var(--explorer-teal);
    background: var(--explorer-teal);
}

.option-radio::after {
    content: '';
    width: 10px;
    height: 10px;
    background: white;
    border-radius: 50%;
    display: none;
}

.option-item.selected .option-radio::after {
    display: block;
}

.option-text {
    font-weight: 600;
    font-size: 1.1rem;
    color: #334155;
}

.option-item.selected .option-text {
    color: var(--explorer-teal-dark);
}

.check-icon {
    margin-left: auto;
    color: var(--explorer-teal);
    display: none;
}

.option-item.selected .check-icon {
    display: block;
}

/* Quiz Navigation */
.quiz-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
    z-index: 2;
}

.btn-quiz-prev {
    border: 2px solid var(--explorer-teal);
    color: var(--explorer-teal);
    background: transparent;
    padding: 12px 30px;
    border-radius: 15px;
    font-weight: 700;
    transition: 0.3s;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-quiz-prev:hover {
    background: rgba(14, 165, 233, 0.05);
    color: var(--explorer-teal);
}

.btn-quiz-next {
    background: var(--explorer-teal-dark);
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 15px;
    font-weight: 700;
    transition: 0.3s;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-quiz-next:hover {
    background: #0369a1;
    transform: translateY(-2px);
    color: white;
}

.btn-quiz-next:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
}

/* Sidebar Quiz */
.field-journal-card {
    background: #fffcf2;
    border: 2px dashed #fde68a;
    border-radius: 30px;
    padding: 30px;
    text-align: center;
    margin-bottom: 30px;
    position: relative;
}

.field-journal-card::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 20px;
    background: #ef4444;
    border-radius: 50%;
    border: 4px solid white;
}

.journal-icon {
    font-size: 2rem;
    color: #92400e;
    margin-bottom: 15px;
}

.journal-upload-area {
    border: 2px dashed #e2e8f0;
    background: white;
    padding: 20px;
    border-radius: 20px;
    margin-top: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.journal-upload-area:hover {
    border-color: var(--explorer-teal);
    background: rgba(14, 165, 233, 0.02);
}

.tip-card {
    background: #f0f9ff;
    border-radius: 24px;
    padding: 25px;
    border-left: 6px solid var(--explorer-teal);
}

.tip-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    color: var(--explorer-teal-dark);
    margin-bottom: 10px;
    font-size: 0.9rem;
}

@media (max-width: 991px) {
    .quiz-title {
        font-size: 1.8rem;
    }

    .question-container {
        padding: 25px;
    }

    .quiz-nav {
        flex-direction: column;
        gap: 15px;
    }

    .btn-quiz-next,
    .btn-quiz-prev {
        width: 100%;
        justify-content: center;
    }
}

/* --- MATERIAL EXPLORER THEME --- */
.material-sidebar-modern {
    background: white;
    border-radius: 24px;
    padding: 25px;
    box-shadow: var(--explorer-card-shadow);
    margin-bottom: 30px;
}

.module-nav-item {
    padding: 12px 18px;
    border-radius: 12px;
    text-decoration: none;
    color: #64748b;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: 0.3s;
}

.module-nav-item:hover,
.module-nav-item.active {
    background: rgba(14, 165, 233, 0.05);
    color: var(--explorer-teal);
}

.material-hero-banner {
    border-radius: 24px;
    height: 250px;
    position: relative;
    overflow: hidden;
    margin-bottom: 30px;
    box-shadow: var(--explorer-card-shadow);
}

.material-hero-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.material-hero-banner .overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7), transparent);
    color: white;
}

.fact-callout {
    background: #e0f2fe;
    border-left: 5px solid var(--explorer-teal);
    padding: 20px;
    border-radius: 15px;
    margin: 20px 0;
    color: #0369a1;
    font-weight: 600;
}

/* Circular Progress for Mobile */
.circle-progress {
    position: relative;
    width: 80px;
    height: 80px;
}

.circle-progress svg {
    transform: rotate(-90deg);
}

.circle-bg {
    fill: none;
    stroke: #e2e8f0;
    stroke-width: 8;
}

.circle-val {
    fill: none;
    stroke: var(--explorer-teal);
    stroke-width: 8;
    stroke-linecap: round;
    transition: stroke-dashoffset 1s ease;
}

.circle-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-weight: 800;
    font-size: 1.1rem;
}

/* Bottom Navigation - Hidden by default on Desktop */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    display: none;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.05);
    z-index: 10000;
    border-top: 1px solid #f1f5f9;
    pointer-events: auto;
}
.bottom-nav-item {
    pointer-events: auto;
    position: relative;
    z-index: 10001;
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #94a3b8;
    font-size: 0.7rem;
    font-weight: 700;
    gap: 4px;
}

.bottom-nav-item i {
    font-size: 1.4rem;
}

.bottom-nav-item.active {
    color: var(--explorer-teal);
}

.nav-icon-bg {
    width: 50px;
    height: 35px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
}

.bottom-nav-item.active .nav-icon-bg {
    background: rgba(14, 165, 233, 0.1);
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .bottom-nav {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }

    .explorer-navbar {
        display: none;
    }

    .mobile-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 25px;
        padding-top: 20px;
    }

    .mobile-profile {
        display: flex;
        align-items: center;
        gap: 15px;
    }

    .mobile-profile img {
        width: 50px;
        height: 50px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid var(--explorer-teal);
    }

    .mobile-profile-text h4 {
        margin: 0;
        font-weight: 800;
        font-size: 1.2rem;
    }

    .mobile-profile-text p {
        margin: 0;
        font-size: 0.8rem;
        color: #94a3b8;
        font-weight: 600;
    }

    .mobile-lesson-card {
        background: white;
        border-radius: 24px;
        padding: 16px;
        display: flex;
        gap: 18px;
        align-items: center;
        margin-bottom: 16px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
        text-decoration: none;
        color: inherit;
        border: 1px solid rgba(0, 0, 0, 0.02);
    }

    .mobile-lesson-thumb {
        width: 85px;
        height: 85px;
        border-radius: 16px;
        object-fit: cover;
    }

    .mobile-lesson-info {
        flex-grow: 1;
    }

    .mobile-lesson-info h6 {
        margin: 4px 0 8px 0;
        font-weight: 800;
        font-size: 1.1rem;
        color: #1e293b;
    }

    .mobile-lesson-info span {
        font-size: 0.75rem;
        color: #8b5cf6;
        /* Physics Color */
        text-transform: uppercase;
        font-weight: 800;
        letter-spacing: 0.5px;
    }

    .mobile-lesson-info .cat-biology {
        color: #844d36;
    }

    /* Match image brown */
    .mobile-lesson-info .cat-physics {
        color: #844d36;
    }

    /* Match image brown */

    .mobile-lesson-info .explorer-progress {
        height: 10px;
        /* Thicker like image */
        background: #f1f5f9;
    }

    /* Forum Mobile Adjustments */
    body.page-siswa-forum .chat-header {
        height: auto;
        padding: 15px;
    }

    body.page-siswa-forum .chat-body {
        padding: 15px;
        gap: 15px;
    }

    body.page-siswa-forum .msg-row {
        max-width: 95%;
    }

    body.page-siswa-forum .chat-footer {
        padding: 15px;
    }

    body.page-siswa-forum .input-box {
        padding: 8px 15px !important;
        font-size: 0.9rem;
    }

    body.page-siswa-forum .btn-send {
        width: 40px;
        height: 40px;
    }
}

/* Document Preview Styles */
.document-preview-container iframe {
    background: white;
}
.document-preview-container .ratio {
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
}
.document-preview-container .btn-primary {
    background-color: #0ea5e9;
    border: none;
    padding: 8px 16px;
    border-radius: 10px;
    font-weight: 600;
}

/* Sidebar Styling for Siswa (Global) */
.siswa-sidebar { 
    width: 250px; 
    background: #ffffff; 
    border-right: 1px solid #f1f5f9; 
    padding: 40px 20px; 
    height: 100vh;
    position: fixed;
    left: 0;
    top: 0;
    display: flex;
    flex-direction: column;
    z-index: 10000 !important;
    pointer-events: auto !important;
}
.siswa-sidebar .sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--explorer-teal, #0ea5e9);
    margin-bottom: 40px;
    padding-left: 10px;
    text-decoration: none;
}
.siswa-sidebar .sidebar-brand i {
    font-size: 1.8rem;
}
.siswa-sidebar .sidebar-profile {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
    padding-left: 10px;
}
.siswa-sidebar .sidebar-profile img {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--explorer-teal, #0ea5e9);
}
.siswa-sidebar .sidebar-profile h6 { margin: 0; font-weight: 800; color: #1e293b; font-size: 0.95rem; }
.siswa-sidebar .sidebar-profile small { color: #64748b; font-weight: 600; font-size: 0.75rem; }

.siswa-sidebar .nav-pills .nav-link { 
    font-weight: 700; 
    color: #64748b; 
    border-radius: 12px; 
    padding: 12px 20px; 
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s ease;
    font-size: 0.95rem;
    z-index: 10001 !important;
    pointer-events: auto !important;
}
.siswa-sidebar .nav-pills .nav-link i { font-size: 1.2rem; }
.siswa-sidebar .nav-pills .nav-link:hover { background: #f8fafc; color: #0f172a; }
.siswa-sidebar .nav-pills .nav-link.active { 
    background: var(--explorer-teal, #0ea5e9); 
    color: white; 
    box-shadow: 0 10px 20px rgba(14, 165, 233, 0.2);
}

.siswa-sidebar .btn-logout {
    margin-top: auto;
    color: #ef4444;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 20px;
    border-radius: 12px;
    text-decoration: none;
    transition: 0.2s;
}
.siswa-sidebar .btn-logout:hover { background: #fef2f2; }

/* Main Content wrapper for Desktop */
@media (min-width: 992px) {
    .siswa-main-content {
        margin-left: 250px;
        padding: 40px;
        min-height: 100vh;
        position: relative;
        z-index: 1;
        overflow-x: hidden;
    }
    body.page-explorer {
        background-color: #f8fafc;
    }
    .siswa-main-content > .container {
        max-width: 100%;
        padding-left: 20px;
        padding-right: 20px;
    }
}
@media (max-width: 991.98px) {
    .siswa-sidebar { display: none !important; }
    .siswa-main-content { 
        margin-left: 0 !important;
        padding: 20px; 
        padding-bottom: 100px;
    }
    .bottom-nav {
        display: flex !important;
    }
}

/* --- GLOBAL BOOTSTRAP CARD NEON GLOW --- */
.card, .module-card, .builder-box, .modal-content, .dropdown-menu, .content-card, .material-hero-banner, .explorer-hero-card, .lesson-card, .mobile-lesson-card {
    border: 1px solid rgba(14, 165, 233, 0.3) !important;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.4), inset 0 0 5px rgba(14, 165, 233, 0.05) !important;
    transition: all 0.3s ease !important;
}
.card:hover, .module-card:hover, .builder-box:hover, .modal-content:hover, .dropdown-menu:hover, .content-card:hover, .material-hero-banner:hover, .explorer-hero-card:hover, .lesson-card:hover, .mobile-lesson-card:hover {
    box-shadow: 0 0 25px rgba(14, 165, 233, 0.6), inset 0 0 10px rgba(14, 165, 233, 0.1) !important;
}