/* ========== GLOBAL ========== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #f0f9f0, #e3f2e9);
    color: #333;
    transition: all 0.3s ease;
}

/* Dark Theme */
body.dark {
    background: linear-gradient(135deg, #1a2a1a, #0f1a0f);
    color: #fff;
}

body.dark .soal-card,
body.dark .modal-content,
body.dark .materi-item,
body.dark .materi-detail,
body.dark .soal-header {
    background-color: #2a372a;
    color: #fff;
    border-color: #4a5a4a;
}

body.large {
    font-size: 16px;
}

body.larger {
    font-size: 18px;
}

/* ========== HEADER ========== */
header {
    background: linear-gradient(135deg, #2e7d32, #1b5e20);
    color: white;
    padding: 0.5rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    border-bottom: 3px solid #ffc107;
    min-height: 70px;
    width: 100%;
    position: relative;
}

/* Settings button - kiri */
.settings-btn {
    background: rgba(255,255,255,0.15);
    border: 1.5px solid white;
    font-size: 1rem;
    cursor: pointer;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.settings-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: rotate(90deg);
}

/* Profile section - TENGAH BENERAN */
.header-left {
    display: flex;
    align-items: center;
    gap: 1rem;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.profile-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid white;
    box-shadow: 0 0 10px rgba(255,255,255,0.3);
}

.user-info {
    display: flex;
    flex-direction: column;
}

.user-name {
    font-weight: bold;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.2);
    white-space: nowrap;
}

.user-class {
    font-size: 0.85rem;
    opacity: 0.9;
    white-space: nowrap;
}

/* Academy icon - kanan */
.header-right {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.academy-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffc107;
    box-shadow: 0 0 10px rgba(255,193,7,0.4);
}

/* Spacer biar seimbang */
.header-spacer {
    width: 30px;
    visibility: hidden;
    flex-shrink: 0;
}

/* ========== MAIN ========== */
main {
    max-width: 1400px;
    margin: 1.5rem auto;
    padding: 0 1.5rem;
}

.welcome-section {
    text-align: center;
    margin-bottom: 2rem;
    background: white;
    padding: 1.5rem;
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    border: 2px solid #4CAF50;
}

.welcome-section h1 {
    color: #2e7d32;
    margin-bottom: 0.5rem;
    font-size: 1.8rem;
    font-weight: 700;
}

.welcome-section p {
    font-size: 1.1rem;
    color: #555;
}

.quick-access h2 {
    margin-bottom: 1.5rem;
    color: #2e7d32;
    font-size: 1.6rem;
    text-align: center;
    position: relative;
}

.quick-access h2:after {
    content: "🐉";
    margin-left: 8px;
    font-size: 1.6rem;
}

.button-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
}

.academy-btn {
    background: linear-gradient(145deg, #4CAF50, #2e7d32);
    color: white;
    border: 2px solid #ffc107;
    padding: 1.5rem 0.8rem;
    border-radius: 15px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 15px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}

.academy-btn:hover {
    transform: translateY(-5px) scale(1.01);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.4);
    border-color: white;
}

.academy-btn:active {
    transform: translateY(-2px) scale(0.99);
}

.btn-icon {
    font-size: 2.5rem;
    filter: drop-shadow(2px 4px 6px black);
}

/* ========== MODAL ========== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.6);
    backdrop-filter: blur(5px);
}

.modal-content {
    background: linear-gradient(145deg, #ffffff, #f5f5f5);
    margin: 8% auto;
    padding: 2rem;
    border-radius: 20px;
    width: 90%;
    max-width: 450px;
    position: relative;
    border: 3px solid #4CAF50;
    box-shadow: 0 15px 30px rgba(0,0,0,0.3);
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        transform: translateY(-80px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    position: absolute;
    right: 1.2rem;
    top: 0.8rem;
    font-size: 2rem;
    cursor: pointer;
    color: #999;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close:hover {
    background: #ff4444;
    color: white;
    transform: rotate(90deg);
}

.settings-option {
    margin: 1.2rem 0;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.settings-option label {
    min-width: 80px;
    font-weight: 600;
    font-size: 0.95rem;
}

.settings-option input,
.settings-option select {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.9rem;
    transition: all 0.2s;
}

.settings-option input:focus,
.settings-option select:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

.save-settings {
    background: linear-gradient(145deg, #4CAF50, #2e7d32);
    color: white;
    border: 2px solid #ffc107;
    padding: 1rem;
    border-radius: 12px;
    cursor: pointer;
    width: 100%;
    margin-top: 1.2rem;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.save-settings:hover {
    background: linear-gradient(145deg, #5cb860, #3e9142);
    transform: scale(1.01);
    border-color: white;
}

/* ========== RESULT MODAL ========== */
.result-modal {
    max-width: 500px;
}

.result-content {
    text-align: center;
    margin: 1.5rem 0;
    padding: 1.5rem;
    background: linear-gradient(145deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 2px solid #4CAF50;
}

.result-content h3 {
    color: #2e7d32;
    font-size: 1.8rem;
    margin-bottom: 1rem;
}

.result-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 1.5rem 0;
}

.stat-box {
    padding: 1.2rem 0.5rem;
    border-radius: 12px;
    border: 2px solid;
    transition: transform 0.2s;
}

.stat-box:hover {
    transform: scale(1.03);
}

.stat-box.correct {
    background-color: #d4edda;
    border-color: #28a745;
}

.stat-box.incorrect {
    background-color: #f8d7da;
    border-color: #dc3545;
}

.stat-box.empty {
    background-color: #fff3cd;
    border-color: #ffc107;
}

.stat-number {
    font-size: 2.2rem;
    font-weight: bold;
}

.stat-label {
    font-size: 1rem;
    font-weight: 600;
}

/* ========== SOAL PAGE ========== */
.soal-container {
    max-width: 1100px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.soal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem 1.5rem;
    background-color: white;
    border-radius: 12px;
    border: 2px solid #4CAF50;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.timer {
    font-size: 1.6rem;
    font-weight: bold;
    color: #4CAF50;
    background: #f0f0f0;
    padding: 0.4rem 1.2rem;
    border-radius: 40px;
    border: 2px solid currentColor;
}

.timer.warning {
    color: #ffc107;
    animation: pulse 1s infinite;
}

.timer.danger {
    color: #dc3545;
    animation: dangerPulse 0.5s infinite;
    background: #fff0f0;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.03); }
}

@keyframes dangerPulse {
    0%, 100% { transform: scale(1); background: #fff0f0; }
    50% { transform: scale(1.05); background: #ffe0e0; }
}

.progress {
    font-size: 1.1rem;
    font-weight: 600;
    background: #4CAF50;
    color: white;
    padding: 0.6rem 1.5rem;
    border-radius: 40px;
    border: 2px solid #ffc107;
}

/* ========== SOAL CARD ========== */
.soal-card {
    background-color: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid #4CAF50;
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
    margin-bottom: 1.8rem;
    transition: all 0.3s;
}

.soal-card:hover {
    box-shadow: 0 20px 30px rgba(76, 175, 80, 0.2);
}

.soal-nomor {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.2rem;
    font-weight: bold;
    background: #f0f7f0;
    display: inline-block;
    padding: 0.4rem 1.5rem;
    border-radius: 40px;
    border: 2px solid #4CAF50;
}

.soal-text {
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
    font-weight: 500;
}

.soal-gambar {
    max-width: 100%;
    max-height: 300px;
    margin: 1rem 0;
    border-radius: 15px;
    border: 3px solid #ddd;
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* ========== PILIHAN GANDA ========== */
.pilihan-container {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    margin: 1.5rem 0;
}

.pilihan-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    transition: all 0.2s ease;
    font-size: 1rem;
}

.pilihan-item:hover {
    background: linear-gradient(145deg, #e8f5e9, #d8f0d8);
    border-color: #4CAF50;
    transform: translateX(5px);
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.2);
}

.pilihan-item.selected {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
    border-color: #ffc107;
    border-width: 3px;
    box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

.pilihan-item input[type="radio"] {
    width: 20px;
    height: 20px;
    margin-right: 1.2rem;
    cursor: pointer;
    accent-color: #4CAF50;
}

/* ========== PG KOMPLEKS ========== */
.pg-kompleks-item {
    display: flex;
    align-items: center;
    padding: 1rem 1.2rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
    margin-bottom: 0.8rem;
    transition: all 0.2s ease;
    font-size: 1rem;
}

.pg-kompleks-item:hover {
    background: linear-gradient(145deg, #e3f2fd, #d4e9ff);
    border-color: #2196F3;
    transform: translateX(5px);
}

.pg-kompleks-item.selected {
    background: linear-gradient(145deg, #2196F3, #1976D2);
    color: white;
    border-color: #ffc107;
    border-width: 3px;
    box-shadow: 0 0 15px rgba(33, 150, 243, 0.4);
}

.pg-kompleks-item input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 1.2rem;
    cursor: pointer;
    accent-color: #2196F3;
}

/* ========== BENAR/SALAH ========== */
.pernyataan-item {
    margin: 1.2rem 0;
    padding: 1.2rem;
    border: 2px solid #ddd;
    border-radius: 15px;
    background: linear-gradient(145deg, #fafafa, #f5f5f5);
}

.pernyataan-text {
    margin-bottom: 1rem;
    font-size: 1rem;
    font-weight: 600;
    padding-bottom: 0.8rem;
    border-bottom: 2px dashed #4CAF50;
}

.pernyataan-options {
    display: flex;
    gap: 1.5rem;
}

.pernyataan-options label {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.8rem 1.5rem;
    border: 2px solid #ddd;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
}

.pernyataan-options label:hover {
    background: #e8f5e9;
    border-color: #4CAF50;
}

.pernyataan-options label.selected {
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
    border-color: #ffc107;
    border-width: 3px;
}

.pernyataan-options input[type="radio"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #4CAF50;
}

/* ========== NAVIGASI SOAL ========== */
.soal-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.8rem;
}

.nav-btn {
    background: linear-gradient(145deg, #4CAF50, #2e7d32);
    color: white;
    border: 2px solid #ffc107;
    padding: 1rem 2rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.2s;
    flex: 1;
}

.nav-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 15px rgba(76, 175, 80, 0.3);
    border-color: white;
}

.nav-btn:disabled {
    background: linear-gradient(145deg, #ccc, #bbb);
    border-color: #999;
    cursor: not-allowed;
    opacity: 0.5;
}

.submit-btn {
    background: linear-gradient(145deg, #ff5722, #e64a19);
    color: white;
    border: 2px solid #ffc107;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    cursor: pointer;
    font-size: 1.1rem;
    font-weight: bold;
    transition: all 0.2s;
    flex: 1;
    animation: glow 1.5s infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 8px #ff5722; }
    50% { box-shadow: 0 0 20px #ff5722; }
}

.submit-btn:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 0 30px #ff5722;
    border-color: white;
}

/* ========== RANGKUMAN PAGE ========== */
.rangkuman-container {
    max-width: 1200px;
    margin: 1.5rem auto;
    padding: 0 1rem;
}

.materi-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.materi-item {
    background: linear-gradient(145deg, white, #f8f9fa);
    padding: 1.5rem 1rem;
    border-radius: 15px;
    cursor: pointer;
    text-align: center;
    border: 3px solid #4CAF50;
    box-shadow: 0 8px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.materi-item:hover {
    transform: translateY(-6px) scale(1.01);
    background: linear-gradient(145deg, #4CAF50, #45a049);
    color: white;
    border-color: #ffc107;
    box-shadow: 0 15px 25px rgba(76, 175, 80, 0.3);
}

.materi-item h3 {
    font-size: 1.2rem;
    margin-bottom: 0.3rem;
}

.materi-detail {
    background: white;
    padding: 2rem;
    border-radius: 20px;
    border: 3px solid #4CAF50;
    box-shadow: 0 15px 25px rgba(0,0,0,0.1);
    margin-top: 1.5rem;
}

.materi-detail h2 {
    color: #2e7d32;
    font-size: 1.8rem;
    margin-bottom: 1.2rem;
    border-bottom: 2px solid #ffc107;
    padding-bottom: 0.8rem;
}

.materi-detail h3 {
    margin: 1.5rem 0 0.8rem;
    color: #333;
    font-size: 1.3rem;
}

.materi-detail p {
    font-size: 1rem;
    line-height: 1.6;
    margin: 0.8rem 0;
}

.materi-detail ul,
.materi-detail ol {
    margin-left: 2rem;
    line-height: 1.6;
    font-size: 1rem;
}

.back-btn {
    background: linear-gradient(145deg, #6c757d, #5a6268);
    color: white;
    border: 2px solid #ffc107;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    margin-bottom: 1.2rem;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.2s;
}

.back-btn:hover {
    background: linear-gradient(145deg, #5a6268, #495057);
    transform: translateX(-3px);
    border-color: white;
}

/* ========== LOGIN MODAL ========== */
.login-modal {
    max-width: 400px;
    text-align: center;
    padding: 2rem 2rem 1.5rem;
}

.login-header {
    margin-bottom: 1.5rem;
}

.login-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    margin-bottom: 1rem;
    border: 3px solid #4CAF50;
}

.login-header h2 {
    color: #2e7d32;
    margin-bottom: 0.3rem;
}

.login-header p {
    color: #666;
    font-size: 0.9rem;
}

.login-form {
    text-align: left;
}

.form-group {
    margin-bottom: 1.2rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.2s;
}

.form-group input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
    outline: none;
}

.password-hint {
    display: block;
    margin-top: 0.3rem;
    color: #666;
    font-size: 0.85rem;
    font-style: italic;
}

.login-error {
    color: #dc3545;
    text-align: center;
    margin: 1rem 0;
    font-weight: bold;
    padding: 0.5rem;
    background: #ffe0e0;
    border-radius: 8px;
    border-left: 4px solid #dc3545;
}

.login-btn {
    background: linear-gradient(145deg, #4CAF50, #2e7d32);
    color: white;
    border: 2px solid #ffc107;
    padding: 1rem;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-size: 1.2rem;
    font-weight: bold;
    transition: all 0.3s;
    margin-top: 0.5rem;
}

.login-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 15px rgba(76, 175, 80, 0.4);
    border-color: white;
}

.login-footer {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px dashed #ccc;
    color: #777;
    font-size: 0.85rem;
}

/* ========== SETTINGS DISPLAY & EDIT ========== */
.settings-section {
    margin: 1.5rem 0;
}

.settings-section h3 {
    color: #4CAF50;
    margin-bottom: 1rem;
    font-size: 1.1rem;
    border-bottom: 2px solid #4CAF50;
    padding-bottom: 0.5rem;
}

.settings-divider {
    height: 1px;
    background-color: #ddd;
    margin: 1.5rem 0;
}

.data-display {
    flex: 1;
    padding: 0.6rem 0.8rem;
    background-color: #f5f5f5;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid #ddd;
}

/* Settings input untuk edit profile */
.settings-input {
    flex: 1;
    padding: 0.6rem 0.8rem;
    border: 1.5px solid #ddd;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: all 0.2s;
}

.settings-input:focus {
    border-color: #4CAF50;
    box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
    outline: none;
}

.save-profile-btn {
    background: linear-gradient(145deg, #4CAF50, #2e7d32);
    color: white;
    border: 2px solid #ffc107;
    padding: 0.8rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    margin-top: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s;
}

.save-profile-btn:hover {
    background: linear-gradient(145deg, #5cb860, #3e9142);
    transform: scale(1.02);
    border-color: white;
}

/* ========== DARK THEME OVERRIDES ========== */
body.dark .welcome-section,
body.dark .soal-header,
body.dark .soal-card,
body.dark .modal-content,
body.dark .materi-item,
body.dark .materi-detail,
body.dark .pilihan-item,
body.dark .pg-kompleks-item,
body.dark .pernyataan-item {
    background: linear-gradient(145deg, #2a372a, #1f2a1f);
    color: #fff;
    border-color: #4CAF50;
}

body.dark .pilihan-item:hover,
body.dark .pg-kompleks-item:hover,
body.dark .pernyataan-options label:hover {
    background: linear-gradient(145deg, #3a4a3a, #2a3a2a);
}

body.dark .soal-text,
body.dark .pernyataan-text {
    color: #fff;
}

body.dark .timer {
    background: #2a372a;
    color: #4CAF50;
}

body.dark .progress {
    background: #2a372a;
    color: #fff;
}

body.dark .data-display {
    background-color: #3a4a3a;
    border-color: #4a5a4a;
    color: #fff;
}

body.dark .settings-input {
    background-color: #3a4a3a;
    border-color: #4a5a4a;
    color: #fff;
}

body.dark .settings-input:focus {
    border-color: #4CAF50;
}

/* ========== UPLOAD PROFILE PICTURE ========== */
.upload-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: #f9f9f9;
    border-radius: 12px;
    border: 2px dashed #4CAF50;
}

.current-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    border: 3px solid #4CAF50;
    box-shadow: 0 0 10px rgba(0,0,0,0.2);
}

.profile-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.upload-controls {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    flex-wrap: wrap;
}

.upload-btn {
    background: linear-gradient(145deg, #6c757d, #5a6268);
    color: white;
    border: 2px solid #ffc107;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    text-align: center;
    flex: 1;
    transition: all 0.3s;
}

.upload-btn:hover {
    background: linear-gradient(145deg, #5a6268, #495057);
    transform: scale(1.02);
    border-color: white;
}

.save-avatar-btn {
    background: linear-gradient(145deg, #4CAF50, #2e7d32);
    color: white;
    border: 2px solid #ffc107;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    flex: 1;
    transition: all 0.3s;
}

.save-avatar-btn:hover {
    background: linear-gradient(145deg, #5cb860, #3e9142);
    transform: scale(1.02);
    border-color: white;
}

.reset-avatar-btn {
    background: linear-gradient(145deg, #dc3545, #c82333);
    color: white;
    border: 2px solid #ffc107;
    padding: 0.6rem 1rem;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    flex: 1;
    transition: all 0.3s;
}

.reset-avatar-btn:hover {
    background: linear-gradient(145deg, #c82333, #b11f2b);
    transform: scale(1.02);
    border-color: white;
}

.upload-hint {
    color: #666;
    font-size: 0.8rem;
    font-style: italic;
    margin: 0;
}

/* Dark mode */
body.dark .upload-container {
    background: #2a372a;
    border-color: #4CAF50;
}

body.dark .upload-hint {
    color: #aaa;
}

/* ========== RESULT MODAL ACTIONS ========== */
.result-actions {
    margin-top: 1.5rem;
    text-align: center;
}

.lobby-btn {
    background: linear-gradient(145deg, #4CAF50, #2e7d32);
    color: white;
    border: 3px solid #ffc107;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    box-shadow: 0 8px 15px rgba(0,0,0,0.2);
    transition: all 0.3s ease;
    width: auto;
    min-width: 220px;
}

.lobby-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.5);
    border-color: white;
    background: linear-gradient(145deg, #5cb860, #3e9142);
}

.lobby-btn:active {
    transform: translateY(0) scale(0.98);
}

.lobby-btn .btn-icon {
    font-size: 1.5rem;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

/* Dark theme */
body.dark .lobby-btn {
    background: linear-gradient(145deg, #2e7d32, #1b5e20);
    border-color: #ffc107;
}

body.dark .lobby-btn:hover {
    background: linear-gradient(145deg, #3e9142, #2e7d32);
    box-shadow: 0 12px 25px rgba(76, 175, 80, 0.7);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
    header {
        padding: 0.5rem 1rem;
        min-height: 60px;
    }
    
    .settings-btn {
        width: 25px;
        height: 25px;
        font-size: 0.9rem;
    }
    
    .profile-icon, .academy-icon {
        width: 35px;
        height: 35px;
    }
    
    .user-name {
        font-size: 0.9rem;
    }
    
    .user-class {
        font-size: 0.75rem;
    }
    
    .header-spacer {
        width: 25px;
    }
    
    .button-grid {
        grid-template-columns: 1fr;
    }
    
    .soal-navigation {
        flex-direction: column;
    }
    
    .nav-btn,
    .submit-btn {
        width: 100%;
    }
    
    .pernyataan-options {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .soal-header {
        flex-direction: column;
        gap: 0.8rem;
        text-align: center;
    }
    
    .timer {
        font-size: 1.4rem;
    }
    
    .modal-content {
        margin: 15% auto;
        padding: 1.2rem;
    }
}

@media (max-width: 480px) {
    .upload-controls {
        flex-direction: column;
    }
    
    .lobby-btn {
        padding: 1rem 1.8rem;
        font-size: 1.1rem;
        max-width: 300px;
    }
    
    .lobby-icon {
        font-size: 1.4rem;
    }
    
    .lobby-text {
        font-size: 1.1rem;
    }
    
    /* ========== QUESTION NAVIGATOR ========== */
.question-navigator {
    background: white;
    border-radius: 15px;
    border: 2px solid #4CAF50;
    padding: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.navigator-title {
    font-size: 1rem;
    color: #2e7d32;
    margin-bottom: 0.8rem;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navigator-info {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}

.info-dot {
    width: 12px;
    height: 12px;
    border-radius: 3px;
}

.navigator-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
}

.navigator-item {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: 2px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    transition: all 0.2s;
    font-size: 0.9rem;
}

.navigator-item:hover {
    transform: scale(1.05);
    box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.navigator-item.unanswered {
    background: white;
    border-color: #ddd;
    color: #333;
}

.navigator-item.answered {
    background: #4CAF50;
    border-color: #2e7d32;
    color: white;
}

.navigator-item.partial {
    background: #ffc107;
    border-color: #ff9800;
    color: #333;
}

.navigator-item.bookmarked {
    background: #ff9800;
    border-color: #f57c00;
    color: white;
    position: relative;
}

.navigator-item.bookmarked::after {
    content: '⭐';
    position: absolute;
    top: -5px;
    right: -5px;
    font-size: 0.7rem;
}

/* Header soal dengan bookmark */
.soal-header-with-bookmark {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.bookmark-btn {
    background: linear-gradient(145deg, #f0f0f0, #e0e0e0);
    border: 2px solid #ffc107;
    padding: 0.5rem 1rem;
    border-radius: 30px;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.2s;
}

.bookmark-btn.active {
    background: linear-gradient(145deg, #ff9800, #f57c00);
    color: white;
    border-color: #ffeb3b;
}

.bookmark-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 3px 10px rgba(255, 193, 7, 0.4);
}

.bookmark-icon {
    font-size: 1.2rem;
}

/* Dark theme */
body.dark .question-navigator {
    background: #2a372a;
    border-color: #4CAF50;
}

body.dark .navigator-title {
    color: #4CAF50;
}

body.dark .navigator-item.unanswered {
    background: #3a4a3a;
    border-color: #4a5a4a;
    color: #fff;
}

body.dark .navigator-item.answered {
    background: #2e7d32;
    border-color: #4CAF50;
}

body.dark .navigator-item.partial {
    background: #ffb74d;
    border-color: #ff9800;
    color: #333;
}

body.dark .navigator-item.bookmarked {
    background: #ff9800;
    border-color: #f57c00;
}

/* Responsive */
@media (max-width: 480px) {
    .navigator-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 0.3rem;
    }
    
    .navigator-item {
        font-size: 0.8rem;
    }
    
    .navigator-info {
        flex-direction: column;
        gap: 0.3rem;
    }
}

/* ========== SESI SELECTOR ========== */
.sesi-selector {
    background: white;
    border-radius: 12px;
    border: 2px solid #4CAF50;
    padding: 1rem 1.5rem;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.sesi-selector label {
    font-weight: bold;
    color: #2e7d32;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.sesi-selector select {
    padding: 0.6rem 1rem;
    border: 2px solid #ffc107;
    border-radius: 8px;
    font-size: 1rem;
    background: white;
    cursor: pointer;
    min-width: 220px;
}

.sesi-selector select:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.2);
}

.sesi-selector select option:disabled {
    color: #999;
    font-style: italic;
}

/* Dark theme */
body.dark .sesi-selector {
    background: #2a372a;
    border-color: #4CAF50;
}

body.dark .sesi-selector label {
    color: #4CAF50;
}

body.dark .sesi-selector select {
    background: #3a4a3a;
    color: white;
    border-color: #ffc107;
}

/* Responsive */
@media (max-width: 768px) {
    .sesi-selector {
        flex-direction: column;
        text-align: center;
        padding: 1rem;
    }
    
    .sesi-selector select {
        width: 100%;
        min-width: auto;
    }
    
    /* ========== LOGOUT BUTTON ========== */
.logout-btn {
    background: linear-gradient(145deg, #dc3545, #c82333);
    color: white;
    border: 2px solid #ffc107;
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
    width: 100%;
    font-size: 1.1rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s;
}

.logout-btn:hover {
    background: linear-gradient(145deg, #c82333, #b11f2b);
    transform: scale(1.02);
    border-color: white;
}

.logout-btn i {
    font-size: 1.2rem;
}
}