/* Tes Kecermatan - Custom Styles */

body {
    background-color: #f8f9fa;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Kolom Card */
.kolom-card {
    transition: all 0.3s ease;
    border: 2px dashed #dee2e6;
}

.kolom-card.has-soal {
    border: 2px solid #198754;
    background-color: #f8fff8;
}

.kolom-card .card-header {
    background-color: #6c757d;
    color: white;
    text-align: center;
}

.kolom-card.has-soal .card-header {
    background-color: #198754;
}

/* Karakter Preview */
.karakter-preview {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.karakter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: #e9ecef;
    border-radius: 8px;
    border: 2px solid #6c757d;
}

.label-preview {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.label-huruf {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    font-size: 0.9rem;
    color: #6c757d;
}

/* Timer Styles */
#timer-container {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    border-radius: 15px;
    color: white;
    text-align: center;
    margin-bottom: 30px;
}

#timer {
    font-size: 3rem;
    font-weight: bold;
    font-family: 'Courier New', monospace;
}

#timer.warning {
    color: #ffc107;
    animation: pulse 0.5s infinite;
}

#timer.danger {
    color: #dc3545;
    animation: pulse 0.3s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Soal Display */
.soal-container {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.referensi-karakter {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 20px;
}

.ref-item {
    text-align: center;
}

.ref-char {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    font-size: 2rem;
    font-weight: bold;
    background-color: #e9ecef;
    border-radius: 10px;
    border: 3px solid #495057;
}

.ref-label {
    display: block;
    margin-top: 5px;
    font-size: 1.2rem;
    color: #6c757d;
}

/* Soal Tampil */
.soal-tampil {
    display: flex;
    justify-content: center;
    gap: 30px;
    font-size: 2.5rem;
    font-weight: bold;
    padding: 20px;
    background-color: #f8f9fa;
    border-radius: 10px;
    margin-bottom: 20px;
}


/* Result Page */
.result-summary {
    background: white;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.result-table th {
    background-color: #495057;
    color: white;
}

.result-table .table-success {
    background-color: #d1e7dd !important;
}

.result-table .table-danger {
    background-color: #f8d7da !important;
}

/* Koreksi Detail */
.koreksi-item {
    background: #f8f9fa;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 10px;
    border-left: 4px solid #6c757d;
}

.koreksi-item.benar {
    border-left-color: #198754;
    background-color: #d1e7dd;
}

.koreksi-item.salah {
    border-left-color: #dc3545;
    background-color: #f8d7da;
}

.koreksi-referensi {
    display: flex;
    gap: 10px;
    margin-bottom: 10px;
}

.koreksi-char {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    font-size: 1rem;
    font-weight: bold;
    background-color: #e9ecef;
    border-radius: 5px;
}

.koreksi-char.highlight {
    background-color: #ffc107;
    border: 2px solid #ff9800;
}

/* Kolom Progress Tabs */
.kolom-tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.kolom-tab {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
}

.kolom-tab.completed {
    background-color: #198754;
    color: white;
}

.kolom-tab.active {
    background-color: #0d6efd;
    color: white;
    transform: scale(1.2);
}

.kolom-tab.pending {
    background-color: #e9ecef;
    color: #6c757d;
}

/* Form Input Styles */
.soal-input {
    border: 1px solid #dee2e6;
    border-radius: 8px;
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.2s ease;
    background-color: #fff;
}

.soal-input::placeholder {
    color: #adb5bd;
    font-size: 0.9rem;
}

.soal-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
    outline: none;
}

.soal-input:not(:placeholder-shown) {
    border-color: #198754;
    background-color: #f8fff8;
}

.form-label {
    color: #495057;
    margin-bottom: 8px;
}
/* Tombol Jawaban */
.jawaban-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.btn-jawaban {
    width: 70px;
    height: 70px;
    font-size: 1.8rem;
    font-weight: bold;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.btn-jawaban:hover {
    transform: scale(1.1);
}

/* Progress Info */
.progress-info {
    display: flex;
    justify-content: space-around;
    background: white;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.progress-item {
    text-align: center;
}

.progress-item .value {
    font-size: 1.5rem;
    font-weight: bold;
}

.progress-item .label {
    font-size: 0.9rem;
    color: #6c757d;
}

