html, body {
    height: 100%;
    margin: 0;
    overflow-x: hidden;
    background-color: #f8f9fa;
    }

.wrapper {
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.header, .footer {
    background-color: #0d6efd;
    color: white;
    padding: 10px 20px;
}

.header {
    position: relative;
    background: linear-gradient(rgba(13,110,253,0.8), rgba(13,110,253,0.8)),url('../assets/img/siswaujian.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 10px 20px;
    overflow: hidden;
}

/* Supaya teks & logo di atas overlay */
.header > * {
    position: relative;
    z-index: 2;
}

.footer {
    font-size: 10px;
    text-align: center;
}

.content {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.login-card {
    width: 350px;
}

.login-wrapper {
    position: relative;
    display: inline-block;
}

.login-card {
    width: 350px;
    position: relative;
    z-index: 2;
}

.eye-icon {
    position: absolute;
    right: 17px;
    top: 59%;
    transform: translateY(-50%);
    cursor: pointer;
    font-size: 18px;
}

/* CBT Profesional   */

.cbt-option {
    display: block;
    margin-bottom: 12px;
    cursor: pointer;
}

.cbt-option input {
    display: none;
}

.option-content {
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 7px 9px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: 0.25s ease;
}

.option-left {
    display: flex;
    align-items: center;
}

.option-letter {
    background: #f1f1f1;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    text-align: center;
    line-height: 30px;
    font-weight: bold;
    margin-right: 10px;
}

.option-check {
    font-size: 18px;
    color: white;
    opacity: 0;
    transition: 0.2s;
}

.cbt-option input:checked + .option-content {
    border-color: #0d6efd;
    background-color: #e7f1ff;
}

.cbt-option input:checked + .option-content .option-letter {
    background-color: #0d6efd;
    color: white;
}

.container-fluid {
    overflow-x: hidden;
}

.cbt-option input:checked + .option-content .option-check {
    opacity: 1;
    color: #0d6efd;
}

.cbt-option:hover .option-content {
    border-color: #0d6efd;
}

/* Container pilihan jawaban scrollable di HP */
/* Desktop */
/* Default untuk Laptop/Desktop */
.cbt-option-container {
    overflow: visible;
    max-height: none;
}

/* Khusus HP */
@media (max-width: 768px) {
    .cbt-option-container {
        max-height: calc(100vh - 180px);
        overflow-y: auto;
    }
}

/* Opsi jawaban */
.cbt-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    flex-wrap: wrap; /* otomatis turun di HP */
}

.nomor-soal-modal {
    width: 50px;      /* kecil tapi mudah diklik di HP */
    margin: 2px;
}

.cbt-option input {
    display: none;
}

.option-left {
    display: flex;
    gap: 0.5rem;
    flex: 1 1 auto; /* fleksibel lebar */
}

.option-check {
    font-size: 1.2rem;
    color: green;
    display: none;
}

.cbt-option input:checked + .option-content .option-check {
    display: block;
}

/* Gambar soal responsive */
.card-body img {
    max-width: 100%;
    height: auto;
}

/* Wrapper untuk soal + pilihan agar scrollable di HP */
/* Default Desktop */
.soal-wrapper {
    max-height: none;
    overflow: visible;
    padding-right: 0;
}

/* Khusus HP */
@media (max-width: 768px) {
    .soal-wrapper {
        max-height: calc(100vh - 300px);
        overflow-y: auto;
        overflow-x: hidden;
        padding-right: 5px;
    }
}

.card-body {
    padding-bottom: 1rem; /* beri sedikit ruang bawah */
}

/* Opsi jawaban fleksibel */
.cbt-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem;
    border: 1px solid #ccc;
    border-radius: 5px;
    margin-bottom: 0.5rem;
    cursor: pointer;
    flex-wrap: wrap; /* turun otomatis di HP */
}

.cbt-option input {
    display: none;
}

.option-left {
    display: flex;
    gap: 0.5rem;
    flex: 1 1 auto;
}

.option-check {
    font-size: 1.2rem;
    color: green;
    display: none;
}

.cbt-option input:checked + .option-content .option-check {
    display: block;
}


