:root {
    --bg-gradient: linear-gradient(135deg, #4f6ea2 0%, #f089c8 100%);
    --text-light: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.15);
    --glass-bg-hover: rgba(255, 255, 255, 0.25);
    --glass-border: 1px solid rgba(255, 255, 255, 0.3);
    
    --status-ongoing: #4bb657; 
    --status-finish: #3a5c88;
    --status-complete: #333333;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Inter', sans-serif; }

body {
    background: var(--bg-gradient);
    min-height: 100vh;
    padding: 2rem 3rem;
    color: var(--text-light);
    background-attachment: fixed;
}

.hidden { display: none !important; }

/* Wrapper Proporsional */
.app-wrapper.admin { max-width: 1400px; margin: 0 auto; animation: fadeIn 0.4s ease; }
.app-wrapper.user { max-width: 1000px; margin: 0 auto; animation: fadeIn 0.4s ease; }

/* --- LOGIN WRAPPER --- */
.login-wrapper { width: 100%; height: 80vh; display: flex; justify-content: center; align-items: center; }
.login-card { width: 100%; max-width: 400px; text-align: center; padding: 3rem 2rem; }
.login-card p { margin-bottom: 2rem; color: var(--text-muted); }
.google-icon { width: 20px; height: 20px; margin-right: 10px; object-fit: contain; }
.btn-google { background: white; color: #333; border: none; padding: 14px 24px; border-radius: 30px; font-size: 16px; font-weight: 600; cursor: pointer; width: 100%; display: flex; justify-content: center; align-items: center; gap: 10px; transition: 0.2s; }
.btn-google:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(0,0,0,0.1); }

/* --- HEADER --- */
header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.header-info { display: flex; flex-direction: column; gap: 4px; }
.header-title { font-size: 26px; font-weight: 700; }
.header-periode { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.btn-home-header { display: flex; justify-content: center; align-items: center; gap: 8px; padding: 10px 20px; background: var(--glass-bg-hover); border: var(--glass-border); border-radius: 20px; font-size: 15px; font-weight: 600; color: white; cursor: pointer; transition: 0.2s; }
.btn-home-header:hover { background: rgba(255, 255, 255, 0.4); }
.hamburger-menu { display: none; } 

/* --- LAYOUT & SIDEBAR ADMIN --- */
.main-layout { display: flex; gap: 2rem; align-items: flex-start; }
.content { width: 100%; display: flex; flex-direction: column; gap: 1.5rem; overflow: hidden; }
.left-column { display: flex; flex-direction: column; gap: 35px; align-items: center; width: 80px; padding-top: 15px; }
.profile-icon { width: 60px; height: 60px; background: var(--glass-bg); border: var(--glass-border); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 25px; transition: 0.2s; }
.sidebar { width: 60px; background: var(--glass-bg); border: var(--glass-border); border-radius: 40px; padding: 2rem 0; display: flex; flex-direction: column; align-items: center; }
.sidebar-container { display: flex; flex-direction: column; gap: 1.8rem; }
.icon-btn { width: 40px; height: 40px; display: flex; justify-content: center; align-items: center; font-size: 20px; color: var(--text-light); cursor: pointer; transition: all 0.3s ease; border-radius: 50%; }
.icon-btn:hover { background: var(--glass-bg-hover); }
.icon-btn.active { background: rgba(255, 255, 255, 0.4); box-shadow: 0 0 10px rgba(255, 255, 255, 0.2); }

/* --- TOP CONTROLS & USER HEADER --- */
.top-controls { height: auto; min-height: 60px; display: flex; justify-content: space-between; align-items: center; background: var(--glass-bg); padding: 15px 30px; border-radius: 30px; border: var(--glass-border); }
.user-header-left { display: flex; gap: 20px; align-items: center; flex: 1; }
.profile-edit-wrapper { position: relative; width: 65px; height: 65px; border-radius: 50%; cursor: pointer; border: 2px solid rgba(255,255,255,0.5); transition: transform 0.2s; }
.profile-edit-wrapper img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.profile-edit-wrapper:hover { transform: scale(1.05); }
.edit-icon { position: absolute; bottom: -2px; right: -2px; background: rgba(188, 122, 109, 1); color: white; width: 24px; height: 24px; border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 11px; border: 2px solid #fff; }
.user-name { display: block; font-size: 22px; }
.user-role { color: rgba(255,255,255,0.8); font-size: 14px; }
.header-badges { display: flex; gap: 15px; align-items: center; }
.badge-role { background: rgba(255,255,255,0.2); padding: 8px 20px; border-radius: 20px; font-size: 13px; font-weight: 600; border: var(--glass-border); }
#header-score { display: none; }

/* --- STATISTIK ADMIN --- */
.stats-container { display: grid; grid-template-columns: repeat(4, 1fr); width: 100%; gap: 15px; padding: 15px 25px !important; }
.stat-box { display: flex; align-items: center; gap: 10px; padding-right: 15px; border-right: 1px solid rgba(255, 255, 255, 0.1); }
.stat-box:last-child { border-right: none; padding-right: 0; }
.stat-icon { font-size: 22px; background: rgba(255, 255, 255, 0.1); width: 50px; height: 50px; display: flex; justify-content: center; align-items: center; border-radius: 15px; flex-shrink: 0; }
.stat-icon-white { color: #ffffff; }
.stat-details { display: flex; flex-direction: column; }
.stat-value { font-size: 24px; font-weight: 700; line-height: 1; margin-bottom: 4px; color: var(--text-light); }
.stat-label { font-size: 12px; color: var(--text-muted); letter-spacing: 0.5px; text-transform: uppercase; font-weight: 600; }

/* --- GLASS PANEL & DYNAMIC CONTENT --- */
.glass-panel, .data-container { background: var(--glass-bg); border: var(--glass-border); border-radius: 30px; padding: 2rem; box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1); backdrop-filter: blur(12px); }
.dynamic-content { max-height: 70vh; overflow-y: auto; padding-right: 10px; }
.dynamic-content::-webkit-scrollbar { width: 6px; }
.dynamic-content::-webkit-scrollbar-track { background: transparent; }
.dynamic-content::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.5); border-radius: 10px; }

/* --- VIEWS, TABS & ANIMATION --- */
.view-section { display: none; flex-direction: column; gap: 15px; animation: fadeIn 0.3s ease-in-out; }
.view-section.active { display: flex; }
.view-title { margin-bottom: 20px; font-size: 20px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.card-top-nav { display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 15px; margin-bottom: 10px; }
.nav-home { justify-content: flex-start; border-bottom: none; margin-bottom: 0; }
.view-toggles { display: flex; gap: 10px; background: rgba(255, 255, 255, 0.1); padding: 5px; border-radius: 20px; border: var(--glass-border); }
.btn-view { background: transparent; border: none; color: var(--text-muted); padding: 8px 20px; border-radius: 15px; cursor: pointer; transition: all 0.2s; font-size: 14px; font-weight: 600; }
.btn-view:hover { color: white; background: rgba(255, 255, 255, 0.15); }
.btn-view.active { color: white; background: rgba(255, 255, 255, 0.3); box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
.tab-content { display: none; }
.tab-content.active { display: grid !important; animation: fadeIn 0.3s ease; }

/* --- CARDS & GRID --- */
.desktop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); gap: 20px; }
.data-card { background: rgba(255,255,255,0.15); border: var(--glass-border); border-radius: 20px; padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; gap: 20px; }
.card-info { display: flex; flex-direction: column; gap: 8px; }
.card-title { font-size: 18px; font-weight: 700; }
.asesor-name { font-size: 13px; color: var(--text-muted); }
.card-actions { display: flex; gap: 1rem; width: 100%; }
.btn-action { flex: 1; padding: 10px; border-radius: 20px; border: none; font-weight: 600; font-size: 13px; cursor: pointer; color: white; text-align: center; }
.btn-action.green { background: #68c049; }
.btn-action.dark { background: #333333; }
.btn-action.disabled { background: rgba(255,255,255,0.1); color: var(--text-muted); cursor: not-allowed; border: var(--glass-border); }

/* --- KHUSUS LAYOUT BANK DATA (MATERI & TUGAS) DESKTOP --- */
#view-list-materi .desktop-grid,
#view-list-tugas .desktop-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr !important;
    align-items: start;
    gap: 20px;
}
#view-list-materi .data-card,
#view-list-tugas .data-card {
    grid-column: span 1 !important;
}

/* --- FORMS (GLASSMORPHISM) --- */
.profil-upload-section { display: flex; align-items: center; gap: 20px; margin-bottom: 2rem; }
.avatar-large { width: 100px; height: 100px; border-radius: 20px; object-fit: cover; }
.btn-add { padding: 10px 25px; border-radius: 20px; border: var(--glass-border); background: var(--glass-bg-hover); color: white; font-weight: 600; cursor: pointer; transition: background 0.2s; }
.btn-add:hover { background: rgba(255, 255, 255, 0.4); }

.glass-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-row { display: flex; gap: 2rem; }
.form-group { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.form-group label { font-size: 13px; font-weight: 600; color: var(--text-light); }
.form-group input, 
.form-group select, 
.form-group textarea { 
    padding: 15px; border-radius: 15px; border: var(--glass-border); 
    background: rgba(255,255,255,0.1); color: var(--text-light); 
    font-size: 14px; outline: none; width: 100%; transition: 0.3s;
}
.form-group input:focus, 
.form-group select:focus,
.form-group textarea:focus {
    background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.5); 
    box-shadow: 0 0 15px rgba(255,255,255,0.1);
}
.form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat; background-position: right 15px center; background-size: 16px; cursor: pointer;
}
.form-group select option { color: #333; background: #fff; }

.form-actions { display: flex; gap: 1rem; margin-top: 10px; justify-content: flex-end; }
.btn-cancel { padding: 12px 30px; border-radius: 20px; border: var(--glass-border); background: transparent; color: var(--text-light); font-weight: 600; cursor: pointer; transition: 0.2s;}
.btn-cancel:hover { background: rgba(255,255,255,0.15); }
.btn-save { padding: 12px 30px; border-radius: 20px; border: none; background: rgba(188, 122, 109, 0.9); color: white; font-weight: 600; cursor: pointer; transition: 0.2s; }
.btn-save:hover { background: rgba(188, 122, 109, 1); transform: translateY(-2px); box-shadow: 0 5px 15px rgba(188, 122, 109, 0.3); }

.custom-datetime { color-scheme: dark; cursor: pointer; }

/* --- UPLOAD TUGAS & FILE LIST --- */
.file-input { 
    padding: 8px 12px !important; 
    background: rgba(0, 0, 0, 0.1) !important; 
    border: 2px dashed rgba(255, 255, 255, 0.4) !important;
    border-radius: 15px !important;
    cursor: pointer; 
    color: var(--text-muted) !important; 
    height: auto !important; 
}
.file-input::file-selector-button { 
    background: rgba(255, 255, 255, 0.2); border: 1px solid rgba(255, 255, 255, 0.3); color: white; 
    padding: 8px 15px; border-radius: 10px; cursor: pointer; 
    margin: 0 15px 0 0 !important; font-weight: 600; transition: 0.2s; font-family: inherit; 
}
.file-input::file-selector-button:hover { background: rgba(255, 255, 255, 0.4); }
.file-warning { color: #ff6b6b; font-size: 12px; margin-top: 4px; font-weight: 600; display: none; }

.uploaded-files-list { display: flex; flex-direction: column; gap: 12px; }
.uploaded-file-item { display: flex; justify-content: space-between; align-items: center; background: rgba(255, 255, 255, 0.08); border: var(--glass-border); padding: 12px 15px; border-radius: 15px; transition: 0.3s opacity; }
.file-info-left { display: flex; gap: 15px; align-items: center; overflow: hidden;  }
.file-info-left strong { display: block; font-size: 14px; margin-bottom: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 250px;  }
.file-info-left small { color: var(--text-muted); font-size: 12px; }
.file-actions { display: flex; gap: 8px; flex-shrink: 0; }
.file-btn { width: 35px !important; height: 35px !important; min-width: unset !important; padding: 0 !important; display: flex; justify-content: center; align-items: center; border-radius: 10px !important; }

/* --- SPIN WHEEL GLASSMORPHISM --- */
.spin-wheel-container {
    position: relative; width: 280px; height: 280px; margin: 0 auto; display: flex; justify-content: center; align-items: center;
}
.wheel-pointer {
    position: absolute; top: -20px; z-index: 10; font-size: 40px; color: #ff6b6b; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.3));
}
.spin-wheel {
    width: 100%; height: 100%; border-radius: 50%; border: 6px solid rgba(255, 255, 255, 0.2); overflow: hidden; position: relative;
    transition: transform 5s cubic-bezier(0.17, 0.67, 0.12, 0.99); 
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}
.wheel-center-glass {
    position: absolute; width: 80px; height: 80px; background: rgba(255, 255, 255, 0.1); backdrop-filter: blur(15px);
    border: 2px solid rgba(255, 255, 255, 0.4); border-radius: 50%; z-index: 5; display: flex; justify-content: center; align-items: center; box-shadow: inset 0 0 15px rgba(255,255,255,0.2);
}
.btn-spin-action { background: transparent; border: none; color: white; font-weight: 800; font-size: 16px; letter-spacing: 1px; cursor: pointer; outline: none; }
.btn-spin-action:hover { color: #ffd700; transform: scale(1.1); }
.btn-spin-action:disabled { color: rgba(255,255,255,0.3); cursor: not-allowed; transform: none; }

/* --- EMPTY STATES & UTILITIES --- */
.empty-state-icon { width: 80px; height: 80px; background: rgba(255, 255, 255, 0.05); border: 2px dashed rgba(255, 255, 255, 0.3); border-radius: 50%; display: flex; justify-content: center; align-items: center; font-size: 32px; color: var(--text-light); margin-bottom: 20px; }
.empty-state-wrapper { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 30px; }
.empty-state-title { font-size: 20px; margin-bottom: 10px; font-weight: 700; }
.empty-state-desc { font-size: 14px; color: var(--text-muted); max-width: 400px; line-height: 1.6; }

.centered-form { max-width: 500px; margin: 0 auto; width: 100%; }
.mb-normal { margin-bottom: 1.5rem; }
.mb-large { margin-bottom: 2.5rem; }
.flex-actions { display: flex; gap: 15px; justify-content: space-between; }
.flex-1 { flex: 1; display: flex; justify-content: center; }

/* Display Toggles */
.mobile-only { display: none !important; }
.desktop-only { display: block !important; }

/* --- PROSES PENILAIAN & RANKING --- */
.card-penilaian { background: rgba(255,255,255,0.1); align-items: stretch; }
.presenter-info { display: flex; gap: 20px; align-items: center; }
.presenter-avatar { width: 70px; height: 70px; border-radius: 50%; }
.presenter-status { color: rgba(255,255,255,0.7); }
.presenter-name { font-size: 18px; display: block; margin: 5px 0; }
.presenter-msg { font-size: 13px; }
.rating-wrapper { display: flex; gap: 15px; }
.rating-input { flex: 1; padding: 12px; border-radius: 20px; border: 1px solid rgba(255,255,255,0.3); background: rgba(255,255,255,0.1); color: white; text-align: center; font-weight: bold; outline: none; }
.btn-rating { flex: 1; justify-content: center; font-size: 14px; }
.btn-simulasi { margin-top: 20px; align-self: flex-start; }

.result-card { margin-bottom: 20px; background: rgba(255,255,255,0.1); }
.result-header { display: flex; gap: 20px; align-items: center; }
.icon-clap { color: #ffd700; }
.result-title { font-size: 18px; display: block; margin-bottom: 8px; }
.result-desc { font-size: 13px; line-height: 1.5; color: rgba(255,255,255,0.9); }

.sheet-wrapper { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; border: var(--glass-border); max-height: 300px; overflow-y: auto; }
.sheet-item { padding: 15px 20px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); font-size: 15px; }
.sheet-item:nth-child(odd) { background: rgba(255, 255, 255, 0.05); }
.sheet-item:nth-child(even) { background: rgba(255, 255, 255, 0.15); }
.sheet-item:last-child { border-bottom: none; }
.rank-row { display: grid; grid-template-columns: 60px 100px auto; align-items: center; }
.rank-icon { font-weight: bold; font-size: 16px; }
.rank-icon.gold { color: #ffd700; }
.rank-icon.silver { color: #c0c0c0; }
.rank-icon.bronze { color: #cd7f32; }
.rank-icon.plain { font-size: 14px; padding-left: 5px; }
.rank-score { font-weight: 600; }
.rank-user { background: rgba(188, 122, 109, 0.3); }

.rank-badge-wrapper { position: relative; display: flex; justify-content: center; align-items: center; width: 24px; height: 24px; }
.rank-star { position: absolute; z-index: 1; font-size: 24px; opacity: 0.8; }
.rank-number { position: relative; z-index: 6; font-weight: 600; font-size: 14px; color: #fff; }
.rank-badge-wrapper.gold .rank-star { color: #ffd700; }
.rank-badge-wrapper.silver .rank-star { color: #c0c0c0; }
.rank-badge-wrapper.bronze .rank-star { color: #cd7f32; }
.rank-badge-wrapper.plain .rank-star { color: rgba(255,255,255,0.2); }
.rank-char-img { width: 30px; height: 80px; object-fit: contain; }







/* =========================================
   MOBILE RESPONSIVENESS (MAX 900PX)
   ========================================= */
@media (max-width: 900px) {
    body { padding: 15px; }
    .header-title { font-size: 14px; }
    .header-periode { font-size: 12px !important; }
    .view-title { margin-bottom: 20px; font-size: 14px; border-bottom: 1px solid rgba(255,255,255,0.2); padding-bottom: 10px; }
    .user-name { display: block; font-size: 18px; }
    .presenter-name { font-size: 18px; display: block; margin: 5px 0; }
    .card-title { font-size: 14px; font-weight: 700; }
    
    /* Hamburger & Sidebar */
    .btn-home-header { padding: 0; width: 45px; height: 45px; border-radius: 12px; }
    .home-text { display: none; } 
    .hamburger-menu { display: flex; justify-content: center; align-items: center; width: 45px; height: 45px; background: var(--glass-bg-hover); border: var(--glass-border); border-radius: 12px; font-size: 18px; color: white; cursor: pointer; z-index: 100; transition: 0.2s; border:none; outline:none; }
    .left-column { position: absolute; top: 75px; right: 20px; width: auto; padding-top: 0; z-index: 99; opacity: 0; visibility: hidden; transform: translateY(-20px); transition: all 0.3s ease; }
    .left-column.show-menu { opacity: 1; visibility: visible; transform: translateY(0); }
    .profile-icon { display: none; } 
    .sidebar { padding: 1rem; border-radius: 20px; background: rgba(255, 255, 255, 0.25); backdrop-filter: blur(10px); box-shadow: 0 5px 20px rgba(0,0,0,0.2); }

    /* Forms Mobile */
    .form-group input.file-input { height: auto !important; padding: 10px 15px !important; font-size: 12px !important; display: flex; align-items: center; }
    .form-group input.file-input::file-selector-button { padding: 6px 12px !important; font-size: 12px !important; margin-right: 10px !important; }
    .form-row { display: flex !important; flex-direction: column !important; gap: 1.5rem !important; }
    .form-group { width: 100% !important; }
    .form-group input, .form-group select, .form-group textarea { padding: 12px 15px !important; font-size: 13px !important; height: auto !important; width: 100% !important; }

    /* Tabs & Grids */
    .tab-content.active { display: flex !important; flex-direction: column !important; gap: 15px !important; }
    .dynamic-content::-webkit-scrollbar, .sheet-wrapper::-webkit-scrollbar { display: none !important; }
    .top-controls { flex-direction: column; align-items: flex-start; gap: 15px; padding: 15px; }
    .header-badges { width: 100%; justify-content: space-between; }
    .glass-panel, .data-container { padding: 1.2rem; }
    .desktop-grid { grid-template-columns: 1fr !important; gap: 15px !important; }
    .data-card { padding: 1.2rem; gap: 15px; width: 100% !important; }
    
    /* Tombol Aksi */
    .card-actions { display: flex !important; flex-direction: row !important; flex-wrap: nowrap !important; gap: 10px !important; width: 100% !important; }
    .btn-action { flex: 1 1 0px !important; min-width: 0 !important; width: 100% !important; padding: 10px 5px !important; font-size: 12px !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* Admin Statistik */
    .stats-container { grid-template-columns: repeat(2, 1fr) !important; gap: 15px !important; padding: 15px !important; }
    .stat-box { border-right: none; padding: 10px; background: rgba(255, 255, 255, 0.05); border-radius: 15px; }
    .stat-value { font-size: 20px; }
    .stat-label { font-size: 10px; }
    .stat-icon { width: 40px; height: 40px; font-size: 18px; }

    /* Spin Wheel Mobile */
    #view-room-penilaian .data-card { padding: 1rem !important; overflow: hidden; display: flex; flex-direction: column; align-items: center; width: 100%; max-width: 100%; }
    .spin-wheel-container { width: 180px !important; height: 180px !important; margin: 10px auto !important; }
    .wheel-pointer { top: -10px !important; font-size: 24px !important; }
    .wheel-center-glass { width: 50px !important; height: 50px !important; }
    .btn-spin-action { font-size: 11px !important; }

    /* Bank Data Mobile (Materi & Tugas) */
    #view-list-materi .desktop-grid, #view-list-tugas .desktop-grid {
        display: flex !important; flex-direction: column !important; align-items: stretch !important; gap: 15px !important;
    }
    

/* =========================================
   PERBAIKAN TOTAL PDF VIEWER MOBILE & FULLSCREEN
   ========================================= */

/* 1. Wrapper Thumbnail 16:9 Proporsional di HP */
.pdf-responsive-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9; /* Memaksa rasio pas 1920x1080 landscape */
    border-radius: 15px;
    overflow: hidden;
    background: #000;
}

.pdf-responsive-wrapper iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* 2. Mode Fullscreen Murni Mobile (Melompati Stacking Context Container) */
.pdf-fullscreen-active {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999999 !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    background: #000 !important;
}


/* =========================================
   FIXED MODAL FULLSCREEN PDF (100% OVERLAY)
   ========================================= */
.pdf-modal-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    background: #000000 !important;
    z-index: 9999999 !important; /* Di atas semua elemen web */
    display: flex;
    flex-direction: column;
}

.pdf-modal-overlay iframe {
    width: 100% !important;
    height: 100% !important;
    border: none !important;
}

.btn-close-pdf-overlay {
    position: absolute !important;
    top: 15px !important;
    right: 15px !important;
    z-index: 10000000 !important;
    background: rgba(220, 53, 69, 0.9) !important;
    color: #ffffff !important;
    border: none !important;
    padding: 10px 20px !important;
    border-radius: 25px !important;
    font-weight: 700 !important;
    font-size: 13px !important;
    cursor: pointer !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.5) !important;
}
    /* Display Toggles Mobile */
    .mobile-only { display: block !important; }
    .desktop-only { display: none !important; }
}

/* Ranking & Penilaian Mobile */
    .rank-char-img { width: 50px; object-fit: contain; }
    .rating-wrapper { flex-direction: column !important; }
    .rating-wrapper input, .rating-wrapper button { width: 100% !important; flex: none !important; }
    .sheet-item { padding: 10px 12px !important; font-size: 13px !important; }
    .rank-row { display: grid !important; grid-template-columns: 30px 40px 1fr !important; gap: 5px !important; align-items: center; }
    .rank-icon, .rank-score { font-size: 13px !important; }
    .rank-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px !important; }

@media (max-width: 375px) {
    .spin-wheel-container { width: 160px !important; height: 160px !important; }
    .wheel-center-glass { width: 45px !important; height: 45px !important; }
}