/* css/style.css - Styling Aplikasi Kuis Anak (Versi Final Diperbarui) */

/* Import Google Fonts Fredoka One (untuk judul) dan Open Sans (untuk teks umum) */
@import url('https://fonts.googleapis.com/css2?family=Fredoka+One&family=Open+Sans:wght@400;600;700&display=swap');

body {
    font-family: 'Open Sans', sans-serif; /* Font dasar yang mudah dibaca */
    margin: 0;
    padding: 0;
    /* Latar belakang gradien biru muda dengan awan atau pola ceria */
    background: linear-gradient(180deg, #bbdefb 0%, #e3f2fd 100%);
    background-image: radial-gradient(circle at top left, rgba(255,255,255,0.2) 0%, transparent 40%),
                      radial-gradient(circle at bottom right, rgba(255,255,255,0.1) 0%, transparent 50%); /* Awan-awan samar */
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: #333;
    overflow-x: hidden; /* Mencegah scroll horizontal */
}

.container {
    background-color: #ffffff;
    border-radius: 25px; /* Sudut lebih bulat */
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25); /* Bayangan lebih dalam dan nyata */
    width: 90%;
    max-width: 750px; /* Lebar container sedikit lebih besar untuk dashboard/admin */
    padding: 40px;
    text-align: center;
    position: relative;
    border: 6px solid #ffd700; /* Kuning emas yang menonjol sebagai border utama */
    overflow: hidden; /* Memastikan dekorasi tidak keluar dari container */
    animation: fadeInScale 0.8s ease-out forwards; /* Animasi saat muncul */
    transform-origin: center;
}

/* Keyframes untuk animasi container muncul */
@keyframes fadeInScale {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

/* Header dengan gradien biru dan kuning yang ceria */
.header {
    background: linear-gradient(90deg, #42a5f5 0%, #ffeb3b 100%); /* Gradien biru langit ke kuning cerah */
    color: white;
    padding: 30px 0;
    margin: -40px -40px 40px -40px; /* Menutupi area padding container */
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Bayangan lebih kuat untuk header */
    font-family: 'Fredoka One', cursive; /* Font playful untuk judul */
    text-shadow: 3px 3px 6px rgba(0,0,0,0.45); /* Bayangan teks lebih jelas */
    animation: slideInTop 0.6s ease-out; /* Animasi header meluncur dari atas */
}

@keyframes slideInTop {
    0% { transform: translateY(-50px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.header h1 {
    margin: 0;
    font-size: 3.2em; /* Ukuran font lebih besar */
    letter-spacing: 2px; /* Spasi antar huruf */
}

.header p {
    font-size: 1.3em;
    margin-top: 10px;
    font-weight: 600; /* Lebih tebal */
}

.content {
    padding: 20px 0;
}

.intro-section {
    position: relative; /* Untuk penempatan dekorasi */
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 2px dashed #ffe082; /* Garis putus-putus kuning sebagai pemisah */
}

.intro-section p {
    font-size: 1.3em;
    line-height: 1.8;
    color: #555;
    max-width: 80%; /* Batasi lebar paragraf */
    margin: 0 auto; /* Tengah-kan paragraf */
}

/* Dekorasi seperti bintang atau gelembung */
.decoration-item {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #ffcc80; /* Oranye muda */
    border-radius: 50%; /* Bentuk lingkaran */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    animation: floatBubble 5s infinite ease-in-out alternate; /* Animasi melayang */
    opacity: 0.8;
    z-index: 0; /* Pastikan di belakang teks */
}

.star-left {
    top: 10px;
    left: 20px;
    width: 25px;
    height: 25px;
    background-color: #81c784; /* Hijau muda */
    animation-delay: 0.5s;
    /* Bentuk bintang (menggunakan pseudo-elements) */
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border-radius: 0; /* Hapus border-radius default */
}

.star-right {
    bottom: 10px;
    right: 30px;
    width: 35px;
    height: 35px;
    background-color: #ff8a65; /* Oranye salmon */
    animation-delay: 1.2s;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    border-radius: 0;
}

@keyframes floatBubble {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-10px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}


.quiz-form-section, .auth-section, .dashboard-content, .profile-content, .scores-content, .admin-table-content, .admin-form-table-content {
    position: relative;
    padding-top: 20px;
    text-align: center; /* Default text align for these sections */
}


.character-illustration {
    width: 100px;
    height: 100px;
    background-image: url('../assets/profile_pics/home.webp'); /* Ilustrasi emoji/gambar placeholder */
    background-size: cover;
    background-position: center;
    border-radius: 50%;
    border: 3px solid #ffcc80;
    margin: -70px auto 20px auto; /* Geser ke atas agar overlap dengan bagian atas */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 2; /* Pastikan di atas elemen lain */
    position: relative; /* Untuk z-index */
    animation: bounceIn 1s ease-out; /* Animasi muncul untuk karakter */
}

/* Karakter spesifik untuk Login/Register */
.character-illustration.login-char {
    background-image: url('https://placehold.co/100x100/FFD54F/000000?text=🔑'); /* Contoh ikon kunci untuk login */
}

.character-illustration.register-char {
    background-image: url('https://placehold.co/100x100/8BC34A/FFFFFF?text=✨'); /* Contoh ikon bintang untuk register */
}


.form-instruction, .auth-instruction { /* Diperbarui untuk auth-instruction juga */
    font-family: 'Fredoka One', cursive;
    font-size: 1.5em;
    color: #1a237e; /* Biru gelap yang kuat */
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
}

.input-group {
    margin-bottom: 25px;
    text-align: center; /* Tengah-kan label dan input */
}

.input-group label {
    display: block;
    font-size: 1.1em;
    font-weight: 600;
    color: #424242;
    margin-bottom: 10px;
}

input[type="text"],
input[type="password"],
textarea,
select { /* Ditambahkan input type password, textarea, dan select */
    width: calc(80% - 40px); /* Lebar disesuaikan */
    padding: 18px 20px;
    border: 3px solid #81d4fa; /* Biru muda */
    border-radius: 15px; /* Lebih bulat */
    font-size: 1.25em; /* Ukuran font lebih besar */
    box-sizing: border-box;
    outline: none; /* Hilangkan outline default */
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    text-align: center; /* Teks di tengah */
    color: #333;
    font-family: 'Open Sans', sans-serif;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.1); /* Bayangan ke dalam */
}

input[type="text"]:focus,
input[type="password"]:focus,
textarea:focus,
select:focus { /* Ditambahkan input type password, textarea, dan select */
    border-color: #ffc107; /* Kuning saat fokus */
    box-shadow: 0 0 15px rgba(255, 193, 7, 0.5), inset 0 2px 5px rgba(0,0,0,0.1);
}

textarea {
    resize: vertical; /* Izinkan resize vertikal */
    min-height: 80px;
    text-align: left; /* Teks textarea rata kiri */
}

select {
    appearance: none; /* Hapus gaya default select */
    background-color: #e0f7fa;
    cursor: pointer;
    text-align-last: center; /* Tengah-kan teks option */
}
select option {
    text-align: center;
}


/* Styling untuk tombol umum */
button, .auth-button, .dashboard-button, .action-button, .cancel-button { /* Kelas baru */
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%); /* Gradien kuning-oranye */
    color: #fff;
    border: none;
    padding: 18px 35px;
    border-radius: 50px; /* Bentuk pil/sangat bulat */
    font-size: 1.4em;
    cursor: pointer;
    transition: all 0.3s ease; /* Transisi untuk semua properti */
    display: inline-block;
    margin-top: 30px;
    font-weight: bold;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); /* Bayangan lebih kuat */
    text-decoration: none; /* Penting untuk tombol yang juga link */
    letter-spacing: 1px;
    position: relative; /* Untuk efek gelembung */
    overflow: hidden;
    transform: scale(1); /* Default scale untuk animasi */
}

button::before, .auth-button::before, .dashboard-button::before, .action-button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3); /* Efek kilat saat hover */
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
    z-index: 0;
}

button:hover::before, .auth-button:hover::before, .dashboard-button:hover::before, .action-button:hover::before {
    width: 200%;
    height: 200%;
}

button:hover, .auth-button:hover, .dashboard-button:hover, .action-button:hover {
    background: linear-gradient(135deg, #ffd700 0%, #ffbb33 100%); /* Perubahan gradien saat hover */
    transform: translateY(-7px) scale(1.03); /* Efek melayang dan sedikit membesar */
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.4); /* Bayangan lebih menonjol */
}

/* Tombol spesifik */
.start-button {
    background: linear-gradient(135deg, #4CAF50 0%, #66bb6a 100%); /* Gradien hijau ceria untuk mulai */
}
.start-button:hover {
    background: linear-gradient(135deg, #388e3c 0%, #4caf50 100%);
}

.next-button {
    background: linear-gradient(135deg, #2196F3 0%, #64b5f6 100%); /* Gradien biru ceria untuk selanjutnya */
}
.next-button:hover {
    background: linear-gradient(135deg, #1565c0 0%, #1e88e5 100%);
}

.restart-button {
    background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%); /* Gradien kuning-oranye untuk main lagi */
}
.restart-button:hover {
    background: linear-gradient(135deg, #e0a800 0%, #ffc107 100%);
}

/* Tombol autentikasi */
.auth-buttons { /* Untuk mengelompokkan tombol login/register di index.php */
    display: flex;
    justify-content: center;
    gap: 20px; /* Jarak antar tombol */
    margin-top: 40px;
}

.auth-button {
    flex: 1; /* Agar tombol memiliki lebar yang sama */
    max-width: 200px; /* Batasi lebar tombol */
    font-size: 1.3em;
    padding: 15px 25px;
}

.login-button {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); /* Biru tua untuk login */
}
.login-button:hover {
    background: linear-gradient(135deg, #0056b3 0%, #007bff 100%);
}

.register-button {
    background: linear-gradient(135deg, #28a745 0%, #218838 100%); /* Hijau tua untuk register */
}
.register-button:hover {
    background: linear-gradient(135deg, #218838 0%, #28a745 100%);
}

/* Pesan Error dan Sukses */
.error-message {
    color: #dc3545; /* Merah untuk error */
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 0.95em;
    font-weight: 600;
}

.success-message {
    color: #28a745; /* Hijau untuk sukses */
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 10px 15px;
    margin-bottom: 20px;
    font-size: 0.95em;
    font-weight: 600;
}

.auth-link {
    margin-top: 25px;
    font-size: 1em;
    color: #555;
}

.auth-link a {
    color: #007bff;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.auth-link a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Footer */
.footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px dashed #cfe9f2; /* Garis putus-putus biru muda */
    color: #999;
    font-size: 0.95em;
}

/* Kuis Content */
.quiz-content .question {
    font-family: 'Fredoka One', cursive;
    font-size: 1.8em;
    margin-bottom: 35px;
    color: #1976d2; /* Biru yang kuat untuk pertanyaan */
    font-weight: bold;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.15);
}

.options {
    text-align: left;
    margin-top: 30px;
}

.options label {
    display: block;
    background-color: #e0f7fa; /* Aqua muda sebagai latar belakang pilihan */
    border: 2px solid #81d4fa; /* Biru muda */
    border-radius: 15px; /* Sudut lebih bulat */
    margin-bottom: 20px;
    padding: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    font-size: 1.25em;
    color: #444;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.options label:hover {
    background-color: #fff9c4; /* Kuning sangat pucat saat hover */
    border-color: #ffd700; /* Kuning emas */
    transform: translateY(-5px); /* Efek melayang lebih dramatis */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.options input[type="radio"] {
    margin-right: 20px;
    transform: scale(1.6); /* Memperbesar radio button */
    vertical-align: middle;
    accent-color: #ffc107; /* Warna kuning pada radio button saat terpilih */
    cursor: pointer;
}

.options span {
    vertical-align: middle;
    font-weight: 500;
}

/* Hasil Kuis Content */
.result-content h1 {
    font-family: 'Fredoka One', cursive;
    color: #4CAF50; /* Hijau cerah untuk judul hasil */
    font-size: 3.5em;
    margin-bottom: 25px;
    text-shadow: 2px 2px 5px rgba(0,0,0,0.2);
}

.result-content p {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #555;
}

.result-content strong {
    color: #ff8f00; /* Oranye untuk skor */
    font-size: 2.2em; /* Ukuran skor lebih besar lagi */
    padding: 0 8px;
    animation: pulse 1.5s infinite ease-in-out alternate; /* Animasi denyut pada skor */
    display: inline-block; /* Penting untuk animasi transform */
}

/* Animasi denyut untuk skor */
@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* --- Gaya Baru untuk Dashboard, Profil, dan Admin --- */

.dashboard-menu, .admin-menu {
    display: grid; /* Gunakan grid untuk tata letak tombol */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Kolom responsif */
    gap: 25px; /* Jarak antar tombol */
    margin-top: 40px;
    padding: 20px;
    background-color: #e3f2fd; /* Latar belakang biru muda untuk menu */
    border-radius: 15px;
    box-shadow: inset 0 2px 10px rgba(0,0,0,0.05);
}

.dashboard-button {
    font-size: 1.2em;
    padding: 15px 20px;
    border-radius: 15px; /* Sedikit lebih kotak dari tombol utama */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
    margin-top: 0; /* Override margin-top default button */
    text-shadow: 1px 1px 3px rgba(0,0,0,0.2);
}

/* Warna spesifik untuk tombol dashboard */
.quiz-button { background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%); }
.quiz-button:hover { background: linear-gradient(135deg, #ffd700 0%, #ffbb33 100%); }

.profile-button { background: linear-gradient(135deg, #007bff 0%, #0056b3 100%); }
.profile-button:hover { background: linear-gradient(135deg, #0056b3 0%, #007bff 100%); }

.scores-button { background: linear-gradient(135deg, #28a745 0%, #218838 100%); }
.scores-button:hover { background: linear-gradient(135deg, #218838 0%, #28a745 100%); }

.questions-button { background: linear-gradient(135deg, #673ab7 0%, #512da8 100%); /* Ungu */ }
.questions-button:hover { background: linear-gradient(135deg, #5e35b1 0%, #4527a0 100%); }

.users-button { background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%); /* Merah */ }
.users-button:hover { background: linear-gradient(135deg, #e53935 0%, #c62828 100%); }

.logout-button { background: linear-gradient(135deg, #6c757d 0%, #495057 100%); /* Abu-abu */ }
.logout-button:hover { background: linear-gradient(135deg, #5a6268 0%, #343a40 100%); }

/* Profil */
.profile-content .profile-pic-large {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid #ffeb3b; /* Kuning cerah */
    box-shadow: 0 8px 15px #00000033;
    margin-bottom: 25px;
    transition: transform 0.3s ease;
}

.profile-content .profile-pic-large:hover {
    transform: scale(1.05);
}

.profile-content h3 {
    font-size: 1.8em;
    color: #1a237e;
    margin-bottom: 10px;
}

.profile-tip {
    font-size: 1.1em;
    color: #777;
    margin-bottom: 30px;
}

.profile-upload-form .input-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 30px;
}

/* Gaya baru untuk label input file kustom */
.custom-file-upload {
    display: inline-block;
    background: linear-gradient(135deg, #81d4fa 0%, #42a5f5 100%); /* Biru muda */
    color: white;
    padding: 12px 25px;
    border-radius: 50px; /* Bentuk pil */
    cursor: pointer;
    font-weight: 600;
    font-size: 1em;
    margin-bottom: 15px; /* Jarak dari display nama file */
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.custom-file-upload:hover {
    background: linear-gradient(135deg, #42a5f5 0%, #2196F3 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}


.file-input {
    display: none; /* Sembunyikan input file asli */
}

.file-name-display {
    display: block;
    width: calc(80% - 40px); /* Sesuaikan lebar */
    padding: 18px 20px;
    border: 3px dashed #81d4fa; /* Border putus-putus */
    border-radius: 15px;
    font-size: 1.1em; /* Ukuran font lebih kecil sedikit dari input text biasa */
    color: #666;
    background-color: #f0f8ff;
    cursor: pointer;
    transition: border-color 0.3s ease, background-color 0.3s ease;
    margin-top: 10px; /* Jarak dari label */
}

.file-name-display:hover {
    border-color: #ffc107;
    background-color: #fff9e6;
}

.profile-upload-button {
    background: linear-gradient(135deg, #ffa000 0%, #ff6f00 100%); /* Oranye lebih gelap */
}
.profile-upload-button:hover {
    background: linear-gradient(135deg, #ff8f00 0%, #ff5722 100%);
}

.back-button {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%); /* Abu-abu seperti logout */
    color: #fff;
    border: none;
    padding: 12px 25px;
    border-radius: 50px;
    font-size: 1.1em;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-block;
    margin-top: 30px;
    font-weight: bold;
    text-decoration: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}
.back-button:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
}


/* Tabel Umum */
.data-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* Jarak antar baris */
    margin: 30px auto;
    background-color: #ffffff;
    border-radius: 15px;
    overflow: hidden; /* Penting untuk border-radius pada tabel */
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
}

.data-table thead {
    background: linear-gradient(90deg, #81d4fa 0%, #42a5f5 100%); /* Biru gradien */
    color: white;
    font-family: 'Fredoka One', cursive;
    font-size: 1.1em;
}

.data-table th, .data-table td {
    padding: 18px;
    text-align: center;
    border-bottom: 1px solid #e0f2f7; /* Garis pemisah antar baris */
}

.data-table th:first-child { border-top-left-radius: 15px; }
.data-table th:last-child { border-top-right-radius: 15px; }

.data-table tbody tr {
    background-color: #f8f8ff; /* Latar belakang baris */
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05); /* Bayangan kecil per baris */
}

.data-table tbody tr:hover {
    background-color: #fffde7; /* Kuning pucat saat hover */
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.data-table tbody tr:last-child td {
    border-bottom: none;
}

.score-value {
    font-weight: bold;
    color: #ff8f00;
    font-size: 1.1em;
}

.table-profile-pic {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #ffd700;
}

.role-user { color: #007bff; font-weight: bold; }
.role-admin { color: #dc3545; font-weight: bold; }

.action-button {
    padding: 8px 15px;
    font-size: 0.9em;
    border-radius: 20px; /* Lebih kecil */
    margin: 0 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transform: scale(1); /* Reset scale */
    display: inline-block; /* Pastikan tidak menjadi block */
    margin-top: 0; /* Override default margin */
}
.action-button:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.edit-button { background: linear-gradient(135deg, #ffc107 0%, #ffa000 100%); }
.edit-button:hover { background: linear-gradient(135deg, #ffd700 0%, #ffbb33 100%); }

.delete-button { background: linear-gradient(135deg, #dc3545 0%, #c82333 100%); }
.delete-button:hover { background: linear-gradient(135deg, #e53935 0%, #b21f2d 100%); }

.add-button { background: linear-gradient(135deg, #28a745 0%, #218838 100%); }
.add-button:hover { background: linear-gradient(135deg, #218838 0%, #28a745 100%); }

.cancel-button {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
    color: #fff;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9em;
    margin-left: 10px;
    margin-top: 30px; /* Sesuaikan dengan tombol submit */
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}
.cancel-button:hover {
    background: linear-gradient(135deg, #5a6268 0%, #343a40 100%);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.table-responsive {
    overflow-x: auto; /* Untuk tabel yang responsif */
    margin-bottom: 30px;
}

.section-title {
    font-family: 'Fredoka One', cursive;
    font-size: 2em;
    color: #1a237e;
    margin-top: 40px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1);
    border-bottom: 2px solid #81d4fa;
    padding-bottom: 10px;
    display: inline-block; /* Agar border hanya selebar teks */
}

/* KHUSUS UNTUK DASHBOARD PROFILE PIC - Pastikan ukuran diterapkan! */
.profile-pic-dashboard {
    /* Pastikan gambar tampil sebagai blok agar width/height diterapkan konsisten */
    display: block; 
    /* Setel ukuran secara eksplisit dan paksa */
    width: 200px; 
    height: 200px; 
    /* Pastikan gambar mengisi area tanpa terdistorsi */
    object-fit: cover; 
    border-radius: 50%; /* Membuat gambar menjadi lingkaran */
    border: 4px solid #42a5f5; /* Border biru */
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15); /* Bayangan lembut */
    margin: 0 auto 20px auto; /* Tengah-kan gambar dan beri margin bawah */
    transition: transform 0.3s ease; /* Transisi untuk efek hover */
    outline: 2px dashed red; /* DEBUG: Outline merah untuk memastikan kelas diterapkan */
}

.profile-pic-dashboard:hover {
    transform: scale(1.05); /* Efek membesar saat di-hover */
}


/* Responsiveness */
@media (max-width: 768px) {
    .container {
        width: 95%;
        padding: 30px;
        border-radius: 20px;
    }

    .header h1 {
        font-size: 2.5em;
    }

    .intro-section p, .form-instruction, .auth-instruction {
        font-size: 1.2em;
    }

    .question {
        font-size: 1.5em;
    }

    .options label {
        padding: 15px;
        font-size: 1.1em;
        border-radius: 12px;
    }

    input[type="text"], input[type="password"], textarea, select {
        padding: 15px;
        font-size: 1.1em;
        border-radius: 12px;
        width: calc(90% - 30px);
    }

    button, .auth-button, .dashboard-button, .action-button {
        padding: 15px 30px;
        font-size: 1.2em;
        border-radius: 40px;
    }

    .character-illustration {
        width: 80px;
        height: 80px;
        margin: -60px auto 15px auto;
    }

    .auth-buttons {
        flex-direction: column; /* Tumpuk tombol di mobile */
        gap: 15px;
    }

    .auth-button {
        max-width: 100%; /* Lebar penuh di mobile */
    }

    .result-content h1 {
        font-size: 3em;
    }

    .result-content p {
        font-size: 1.3em;
    }

    .result-content strong {
        font-size: 2em;
    }

    .dashboard-menu, .admin-menu {
        grid-template-columns: 1fr; /* Satu kolom di mobile */
        gap: 15px;
    }

    .profile-content .profile-pic-large {
        width: 120px;
        height: 120px;
    }

    .file-name-display, .custom-file-upload {
        width: calc(90% - 30px);
        font-size: 1em;
        padding: 15px;
    }

    .data-table th, .data-table td {
        padding: 12px;
        font-size: 0.9em;
    }

    .table-profile-pic {
        width: 40px;
        height: 40px;
    }

    .action-button {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
        border-radius: 15px;
        border-width: 4px;
    }

    .header {
        padding: 25px 0;
        margin: -20px -20px 30px -20px;
        border-top-left-radius: 10px;
        border-top-right-radius: 10px;
    }

    .header h1 {
        font-size: 2em;
        letter-spacing: 1px;
    }

    .header p {
        font-size: 1em;
    }

    .intro-section p {
        font-size: 1em;
        max-width: 90%;
    }

    .decoration-item {
        width: 20px;
        height: 20px;
    }

    .star-left { top: 5px; left: 10px; }
    .star-right { bottom: 5px; right: 10px; }


    .question {
        font-size: 1.4em;
        margin-bottom: 25px;
    }

    .options label {
        padding: 12px;
        font-size: 1em;
        margin-bottom: 15px;
        border-radius: 10px;
    }

    .options input[type="radio"] {
        transform: scale(1.3);
        margin-right: 15px;
    }

    input[type="text"], input[type="password"], textarea, select {
        padding: 12px;
        font-size: 1em;
        border-radius: 10px;
        width: calc(90% - 24px); /* Adjusted for padding */
    }

    button, .auth-button, .dashboard-button, .action-button {
        padding: 12px 25px;
        font-size: 1.1em;
        border-radius: 30px;
        margin-top: 20px;
    }

    .character-illustration {
        width: 70px;
        height: 70px;
        margin: -50px auto 10px auto;
        border-width: 2px;
    }

    .form-instruction, .auth-instruction {
        font-size: 1.2em;
        margin-bottom: 20px;
    }

    .result-content h1 {
        font-size: 2.5em;
    }

    .result-content p {
        font-size: 1.2em;
    }

    .result-content strong {
        font-size: 1.8em;
    }

    .profile-content .profile-pic-large {
        width: 100px;
        height: 100px;
    }

    .file-name-display, .custom-file-upload {
        width: calc(90% - 24px);
        font-size: 0.9em;
        padding: 12px;
    }

    .data-table th, .data-table td {
        padding: 8px;
        font-size: 0.8em;
    }

    .table-profile-pic {
        width: 30px;
        height: 30px;
    }

    .action-button {
        padding: 5px 10px;
        font-size: 0.7em;
        margin: 2px;
    }
}