/* =========================================
   TEMA: SANDI REMAJA - EDUFLIP RESPONSIVE
   ARSITEKTUR KELAS INTERNASIONAL (TKT 4)
   ========================================= */
:root {
    --primary-blue: #0056b3;
    --turqoise-kemenkes: #00bfa5;
    --hijau-kemenkes: #8bc34a;
    --bg-light: #f4f8f9;
    --text-dark: #2c3e50;
    --danger: #dc3545;
    --warning: #ffc107;
    --success: #28a745;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
    height: 100%; width: 100%; margin: 0; padding: 0; overflow: hidden;
    background-color: #1a1a1a; 
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    color: var(--text-dark);
}

#app-container {
    position: relative; width: 100%; height: 100dvh; max-width: 100%; margin: 0 auto;
    display: flex; flex-direction: column; background-color: var(--bg-light); 
    box-shadow: 0 0 20px rgba(0,0,0,0.5); overflow: hidden;
}

/* =========================================
   TOMBOL NAVIGASI DESKTOP (AKSES EDIT LAPTOP)
   ========================================= */
.desktop-nav-btn {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0, 86, 179, 0.85); color: white;
    border: 2px solid white; border-radius: 50%;
    width: 60px; height: 60px; font-size: 28px;
    cursor: pointer; z-index: 9999; box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: 0.3s; display: flex; justify-content: center; align-items: center;
}
.desktop-nav-btn:hover { background: var(--turqoise-kemenkes); transform: translateY(-50%) scale(1.1); }
#desktop-prev { left: 30px; }
#desktop-next { right: 30px; }

@media screen and (max-width: 800px) {
    .desktop-nav-btn { display: none !important; }
}

/* =========================================
   FILTER WARNA LOGO POLTEKKES (HANYA UNTUK SANDI REMAJA)
   ========================================= */
.logo-sandi {
    filter: brightness(0) saturate(100%) invert(18%) sepia(88%) saturate(3028%) hue-rotate(195deg) brightness(92%) contrast(105%);
}

#student-header { background: var(--primary-blue); color: white; padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; font-size: 0.85rem; font-weight: bold; z-index: 10; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }

/* HALAMAN LOGIN */
.page-login { 
    display: none !important; flex-direction: column; height: 100%; justify-content: center; align-items: center; padding: 20px; 
    background-image: url('https://admin.wahyujokosaputra.com/wp-content/uploads/2026/03/Gambar1.jpg'); 
    background-size: cover; background-position: center; position: relative; overflow-y: auto; 
}
.page-login.active { display: flex !important; }
.page-login::before { content: ""; position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(255, 255, 255, 0.88); z-index: 0; }

.login-box { 
    background: #fff; padding: 30px 20px; border-radius: 15px; width: 100%; max-width: 480px; text-align: center; 
    border-top: 5px solid var(--turqoise-kemenkes); box-shadow: 0 10px 30px rgba(0,0,0,0.08); position: relative; z-index: 10; 
}
.login-main-logo { width: 100px; margin-bottom: 15px; }

.input-form { width: 100%; padding: 12px; margin-bottom: 12px; border: 1.5px solid #ddd; border-radius: 8px; font-size: 0.95rem; font-family: inherit; transition: 0.3s; }
.input-form:focus { border-color: var(--turqoise-kemenkes); outline: none; box-shadow: 0 0 8px rgba(0,191,165,0.2); }
textarea.input-form { resize: vertical; min-height: 80px; }

.btn-primary { width: 100%; padding: 14px; background: linear-gradient(to right, var(--turqoise-kemenkes), var(--primary-blue)); color: white; border: none; border-radius: 8px; font-size: 1rem; font-weight: bold; cursor: pointer; transition: transform 0.2s, opacity 0.2s; }
.btn-primary:active { transform: scale(0.97); opacity: 0.9; }

.sinergi-section { margin-top: 20px; border-top: 1px dashed #ccc; padding-top: 15px; }
.logos { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.logos img { height: 35px; width: auto; object-fit: contain; }
.copyright { font-size: 0.7rem; color: #888; margin-top: 15px; line-height: 1.4; }

#flipbook-viewer { flex: 1; position: relative; overflow: hidden; background: #fff; }

.page { 
    display: none; height: 100%; width: 100%; flex-direction: column; overflow-y: auto; 
    background-image: url('https://admin.wahyujokosaputra.com/wp-content/uploads/2026/03/Gambar1.jpg');
    background-size: cover; background-position: center; background-attachment: local;
}
.page.active { display: flex; animation: fadeInPage 0.4s ease forwards; }

@keyframes fadeInPage { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }

.page-content {
    padding: 25px 20px; flex: 1; display: flex; flex-direction: column; max-width: 650px; margin: 0 auto; width: 100%;
    background-color: rgba(255, 255, 255, 0.95); min-height: 100%; box-shadow: 0 0 20px rgba(0,0,0,0.05);
}

.inner-logo { width: 80px; align-self: center; margin-bottom: 10px; }
.page-title { text-align: center; color: var(--primary-blue); font-size: 1.2rem; margin-bottom: 20px; border-bottom: 2px solid var(--turqoise-kemenkes); padding-bottom: 8px; display: inline-block; align-self: center; text-transform: uppercase; font-weight: 900;}

/* KOTAK TEKS SOLID UNTUK KETERBACAAN */
.text-box-solid {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    margin-bottom: 15px;
    border: 1px solid #eaeaea;
}

.case-study-box { background: #f8f9fa; border-left: 4px solid var(--primary-blue); padding: 15px; border-radius: 6px; margin-bottom: 15px; font-size: 0.85rem; line-height: 1.5; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.focus-box { background: #fff3cd; border: 1px solid #ffeeba; padding: 12px; border-radius: 8px; text-align: center; font-size: 0.85rem; margin-bottom: 15px; color: #856404; }
.instruction-text { font-weight: bold; font-size: 0.85rem; color: var(--text-dark); margin-bottom: 8px; }

.video-wrapper { position: relative; width: 100%; padding-top: 56.25%; background: #000; border-radius: 10px; overflow: hidden; margin-bottom: 10px; box-shadow: 0 4px 10px rgba(0,0,0,0.2); }
.video-container video { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.video-overlay-timer { position: absolute; top: 10px; right: 10px; background: rgba(220, 53, 69, 0.9); color: white; padding: 4px 8px; border-radius: 4px; font-weight: bold; z-index: 5; font-size: 0.8rem; letter-spacing: 1px; }

.feedback-box { padding: 10px; border-radius: 6px; margin-top: 10px; text-align: center; font-size: 0.85rem; font-weight: bold; }
.draft-box { background: #fff; border: 1px solid #ddd; padding: 20px; border-radius: 8px; margin-bottom: 15px; box-shadow: 0 4px 8px rgba(0,0,0,0.05); }
.draft-result { color: var(--primary-blue); font-style: italic; background: #f4f8f9; padding: 10px; border-radius: 4px; font-size: 0.8rem; margin-bottom: 15px; }

.gamification-status { text-align: center; font-weight: bold; font-size: 0.9rem; margin-bottom: 15px; padding: 10px; background: #eef2ff; border-radius: 8px; }
.quiz-card { background: #fff; padding: 15px; border-radius: 8px; border: 1px solid #eee; margin-bottom: 15px; }
.btn-answer-modern { width: 100%; text-align: left; padding: 12px 15px; margin-bottom: 8px; background: #f8f9fa; border: 1px solid #ccc; border-radius: 8px; cursor: pointer; transition: 0.2s; font-size: 0.85rem; display: flex; align-items: center; }
.btn-answer-modern:hover { background: #e9ecef; }
.btn-answer-modern .opt-letter { background: var(--primary-blue); color: white; padding: 4px 8px; border-radius: 4px; margin-right: 10px; font-weight: bold; }
.btn-answer-modern.correct { background: var(--success) !important; color: white !important; border-color: var(--success) !important; }
.btn-answer-modern.correct .opt-letter { background: white; color: var(--success); }
.btn-answer-modern.wrong { background: var(--danger) !important; color: white !important; border-color: var(--danger) !important; }
.btn-answer-modern.wrong .opt-letter { background: white; color: var(--danger); }

.likert-item { margin-bottom: 20px; padding-bottom: 15px; border-bottom: 1px dashed #eee; }
.likert-question { font-weight: bold; font-size: 0.85rem; margin-bottom: 10px; color: #333; }
.likert-options { display: flex; justify-content: space-between; gap: 5px; }
.likert-label { display: flex; flex-direction: column; align-items: center; font-size: 0.7rem; color: #555; text-align: center; cursor: pointer; }
.likert-label input { margin-bottom: 5px; width: 18px; height: 18px; accent-color: var(--primary-blue); cursor: pointer; }

.navigation { background: var(--primary-blue); padding: 12px 15px; display: flex; justify-content: space-between; align-items: center; z-index: 10; box-shadow: 0 -2px 10px rgba(0,0,0,0.1); }
.nav-btn { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.3); padding: 8px 16px; border-radius: 20px; font-weight: bold; cursor: pointer; font-size: 0.85rem; transition: 0.2s; }
.nav-btn:active { background: white; color: var(--primary-blue); }

#cheat-warning, #exit-confirmation { position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: rgba(0,0,0,0.95); z-index: 9999; display: none; justify-content: center; align-items: center; padding: 20px; }
.cheat-box { background: #fff; padding: 25px; border-radius: 12px; width: 100%; max-width: 350px; text-align: center; border-top: 5px solid var(--danger); box-shadow: 0 10px 30px rgba(0,0,0,0.5); }
.emoji-box { background: #fff; padding: 30px 20px; border-radius: 12px; text-align: center; max-width: 350px; border-top: 5px solid var(--turqoise-kemenkes); box-shadow: 0 10px 30px rgba(0,0,0,0.3); }
.emoji-container { display: flex; justify-content: space-around; margin: 20px 0; }
.emoji-btn { font-size: 3rem; background: none; border: none; cursor: pointer; transition: transform 0.2s; outline: none; }
.emoji-btn:active { transform: scale(0.8); }
.emoji-text { font-weight: bold; font-size: 0.85rem; margin-top: 5px; }

@keyframes pulse {
    0% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0.7); }
    70% { transform: scale(1.05); box-shadow: 0 0 0 10px rgba(40, 167, 69, 0); }
    100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(40, 167, 69, 0); }
}