* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Top Bar */
.top-bar {
    background-color: #198754; /* Hijau khas */
    color: white;
    display: flex;
    justify-content: center;
    gap: 30px;
    padding: 8px 20px;
    font-size: 14px;
}

.top-bar span i { margin-right: 5px; }

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 50px;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #2c3e50;
}

.logo h1 {
    font-size: 16px;
    line-height: 1.2;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    text-decoration: none;
    color: #495057;
    font-weight: 500;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-links a:hover { color: #198754; }
.nav-links a i { margin-right: 5px; }

/* Tombol Khusus */
.search-btn {
    background-color: #198754;
    color: white !important;
    padding: 8px 12px;
    border-radius: 5px;
}

.login-btn {
    background-color: #198754;
    color: white !important;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: bold;
}

.search-btn:hover, .login-btn:hover {
    background-color: #146c43;
}

/* Area Konten Utama */
#content-area {
    
    background-color: #f8f9fa;
}

/* Contoh Style untuk Halaman Beranda */
.hero-section {
    text-align: center;
    padding: 50px 20px;
    background: linear-gradient(to bottom, #fde4ce, #fad0c4);
    min-height: 600px;
  
}

.hero-section img {
    max-width: 100%;
    margin-top: 20px;
}

/* Sembunyikan tombol hamburger di layar laptop/komputer */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #198754;
}

/* --- TAMPILAN RESPONSIVE UNTUK HP (Maksimal lebar 768px) --- */
@media screen and (max-width: 768px) {
    /* Merapikan Top Bar agar memanjang ke bawah, tidak menyamping */
    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        padding: 10px 15px;
    }

    /* Merapikan Header */
    .navbar {
        padding: 15px;
        flex-wrap: wrap; 
    }

    /* Munculkan tombol hamburger */
    .menu-toggle {
        display: block;
    }

    /* Sembunyikan menu link secara default di HP */
    .nav-links {
        display: none; 
        flex-direction: column;
        width: 100%;
        margin-top: 15px;
        padding-top: 10px;
        border-top: 1px solid #ddd;
        gap: 15px;
    }

    /* Class ini akan ditambahkan oleh JavaScript saat tombol ditekan */
    .nav-links.active {
        display: flex;
    }

    /* Sesuaikan ukuran tombol login agar penuh di layar HP */
    .nav-links a {
        text-align: left;
        width: 100%;
        padding: 5px 0;
    }

    .login-btn {
        text-align: center;
        padding: 10px;
        margin-top: 10px;
    }

    /* Rapikan gambar di halaman beranda agar tidak keluar layar */
    .hero-section img {
        width: 100%;
        height: auto;
    }
}


/* ... (kode sebelumnya) ... */

/* --- CSS UNTUK CBT PROFESIONAL --- */

/* Gaya untuk wadah soal */
.wadah-soal {
    padding: 20px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    background: #fafafa;
    margin-bottom: 20px;
}

/* Gaya untuk teks pertanyaan */
.pertanyaan {
    font-weight: bold;
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* Gaya untuk indikator poin soal */
.poin-soal {
    font-size: 0.9rem;
    color: #198754;
    font-weight: normal;
    float: right;
    margin-left: 10px;
}

/* Gaya untuk pilihan jawaban (radio/checkbox) */
.wadah-pilihan {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    background: white;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.wadah-pilihan:hover {
    background-color: #f1f8f5;
}

/* Gaya input di dalam pilihan */
.wadah-pilihan input {
    margin-right: 10px;
    transform: scale(1.1);
}

/* Gaya untuk area Tarik Garis (Matching Dropdown) agar rapi */
.wadah-tarik-garis {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.item-tarik-garis {
    flex: 1;
    background: #e9ecef;
    padding: 12px;
    border-radius: 4px;
    font-weight: bold;
    color: #495057;
}

.select-tarik-garis {
    flex: 1;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

/* Gaya untuk Isian Singkat dan Esai */
.input-isian, .input-esai {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

.input-esai {
    resize: vertical;
}

/* --- LAYOUT CBT PROFESIONAL --- */
.cbt-layout {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.cbt-main {
    flex: 3;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.cbt-sidebar {
    flex: 1;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    padding: 20px;
}

.cbt-header {
    display: flex;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #eaeaea;
    align-items: center;
}

.soal-no { font-weight: bold; color: #555; }
.badge-blue {
    background-color: #2b6cb0;
    color: white;
    padding: 4px 10px;
    border-radius: 4px;
    margin-left: 5px;
}

.sisa-waktu { display: flex; align-items: center; }
.label-waktu { background-color: #6b46c1; color: white; padding: 4px 10px; border-radius: 4px 0 0 4px; font-size: 12px; font-weight: bold;}
.sisa-waktu .badge-blue { margin-left: 0; border-radius: 0 4px 4px 0; background-color: #3182ce; }

.cbt-question-box {
    padding: 30px 20px;
    min-height: 300px;
}

.cbt-actions {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #f8f9fa;
    border-top: 1px solid #eaeaea;
}

.btn-cbt {
    padding: 10px 15px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    cursor: pointer;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.btn-blue { background-color: #2b6cb0; color: white; }
.btn-blue:hover { background-color: #1a4971; }
.btn-orange { background-color: #d69e2e; color: white; }
.btn-red { background-color: #e53e3e; color: white; }

/* Grid Nomor Soal */
.sidebar-title {
    font-weight: bold;
    color: #4a5568;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 10px;
    margin-bottom: 15px;
    font-size: 14px;
}

.grid-soal {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
    gap: 10px;
}

.btn-nomor {
    background-color: white;
    border: 1px solid #cbd5e0;
    color: #4a5568;
    padding: 10px 0;
    text-align: center;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
}

.btn-nomor.dijawab { background-color: #4a5568; color: white; border-color: #4a5568; }
.btn-nomor.aktif { border: 2px solid #2b6cb0; background-color: #ebf8ff; color: #2b6cb0; }
.btn-nomor.ragu { background-color: #d69e2e; color: white; border-color: #d69e2e; }

@media screen and (max-width: 768px) {
    .cbt-layout { flex-direction: column; }
    .cbt-main, .cbt-sidebar { width: 100%; }
    .cbt-actions { flex-direction: column; gap: 10px; }
    .btn-cbt { justify-content: center; }
}

/* --- FORM BUAT SOAL --- */
.form-group {
    margin-bottom: 15px;
}
.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    color: #495057;
}
.form-group input[type="text"], 
.form-group input[type="number"], 
.form-group select, 
.form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}


/* --- STYLING TABEL LIHAT SOAL --- */
.tabel-stylish {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    background-color: white;
}
.tabel-stylish th, .tabel-stylish td {
    border: 1px solid #dee2e6;
    padding: 12px 10px;
    vertical-align: middle;
}
.tabel-stylish th {
    background-color: #e9ecef;
    color: #495057;
    text-align: center;
    font-weight: bold;
}
.tabel-stylish tbody tr:nth-child(even) {
    background-color: #f8f9fa;
}
.tabel-stylish tbody tr:hover {
    background-color: #e2e3e5;
}
.tabel-stylish td {
    color: #333;
}
.btn-hapus-soal {
    background-color: #dc3545;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: bold;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}
.btn-hapus-soal:hover {
    background-color: #bb2d3b;
}
.btn-hapus-soal:disabled {
    background-color: #e9ecef;
    color: #adb5bd;
    cursor: not-allowed;
}

/* --- STYLING DROPDOWN MENU GURU --- */
.dropdown-guru {
    position: relative;
    display: inline-block;
}

.dropdown-guru .dropbtn {
    display: flex;
    align-items: center;
    gap: 8px;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #ffffff;
    min-width: 180px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.15);
    z-index: 1000;
    border-radius: 8px;
    top: 100%;
    left: 0;
    overflow: hidden;
    border: 1px solid #eaeaea;
}

.dropdown-content a {
    color: #495057;
    padding: 12px 16px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid #f1f1f1;
    font-size: 14px;
}

.dropdown-content a:last-child {
    border-bottom: none;
}

.dropdown-content a:hover {
    background-color: #e8f5e9; /* Hijau muda yang elegan */
    color: #198754;
}

/* Tampilkan dropdown saat di-hover (di Laptop/PC) */
.dropdown-guru:hover .dropdown-content {
    display: block;
}

/* Penyesuaian untuk layar HP / Mobile */
@media screen and (max-width: 768px) {
    /* Paksa menu guru membentang penuh 100% dan rata kiri */
    .dropdown-guru {
        display: block ;
        width: 100%;
    }
    
    .dropdown-guru .dropbtn {
        justify-content: flex-start; /* Memastikan ikon dan teks berada di kiri */
        width: 100%;
    }

    /* Membuat isi dropdown tidak melayang, tapi mendorong menu lain ke bawah */
    .dropdown-content {
        position: static;
        box-shadow: none;
        background-color: #f8f9fa;
        border: none;
        border-radius: 0;
        padding-left: 20px;
    }
}

