/* === VARIABLES === */
:root {
    --primary: #3b82f6;
    --primary-light: #60a5fa;
    --primary-dark: #2563eb;
    --success: #10b981;
    --success-light: #34d399;
    --success-bg: #ecfdf5;
    --danger: #ef4444;
    --danger-light: #f87171;
    --danger-bg: #fef2f2;
    --warning: #f59e0b;
    --warning-light: #fbbf24;
    --warning-bg: #fffbeb;
    --info: #06b6d4;
    --purple: #8b5cf6;
    
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    
    --white: #ffffff;
    --black: #000000;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    
    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    
    --transition: all 0.3s ease;
}

/* === RESET & BASE STYLES === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: var(--gray-800);
    line-height: 1.6;
    min-height: 100vh;
}

/* === CONTAINER === */
.container {
    max-width: 900px;
    margin: 0 auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--gray-200);
    position: relative;
}

.container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

/* === HEADINGS === */
h1 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(135deg, var(--primary), var(--purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    margin: 30px 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--gray-200);
}

/* === ALERTS === */
.alert {
    padding: 20px;
    border-radius: var(--radius-lg);
    margin-bottom: 25px;
    border-left: 4px solid;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 12px;
}

.alert-error {
    background: var(--danger-bg);
    border-color: var(--danger);
    color: #991b1b;
}

.alert-success {
    background: var(--success-bg);
    border-color: var(--success);
    color: #065f46;
}

/* === INFO BOX === */
.info-box {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin: 25px 0;
    border-left: 4px solid var(--primary);
}

.info-box p {
    margin: 0;
    color: var(--gray-700);
    font-size: 15px;
}

.question-counter {
    color: var(--gray-600);
    font-size: 14px;
    margin-top: 8px;
}

/* === QUIZ SETTINGS === */
.quiz-settings {
    background: var(--gray-50);
    padding: 25px;
    border-radius: var(--radius-lg);
    margin: 25px 0;
    border: 1px solid var(--gray-200);
}

.quiz-settings h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.setting-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 12px 0;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-200);
}

.setting-label {
    font-weight: 600;
    color: var(--gray-700);
}

.setting-value {
    font-weight: 700;
    color: var(--primary);
}

.setting-value.active {
    color: var(--success);
}

/* === ATTEMPT BADGE === */
.attempt-badge {
    background: var(--primary);
    color: var(--white);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    margin-left: 8px;
}

/* === FORM ELEMENTS === */
.form-group {
    margin-bottom: 25px;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 15px;
}

input[type="text"] {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 16px;
    transition: var(--transition);
    background: var(--white);
}

input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
input[type="password"] {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.name-note {
    color: var(--gray-500);
    font-size: 13px;
    margin-top: 8px;
    font-style: italic;
}

/* === BUTTONS === */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: var(--primary);
    color: var(--white);
    border: none;
    padding: 16px 30px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-success {
    background: var(--success);
}

.btn-success:hover {
    background: var(--success-light);
}

.btn-warning {
    background: var(--warning);
}

.btn-warning:hover {
    background: var(--warning-light);
}

.btn-danger {
    background: var(--danger);
}

.btn-danger:hover {
    background: var(--danger-light);
}

.btn-info {
    background: var(--info);
}

.btn-info:hover {
    background: #0891b2;
}

.btn-group {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

/* === QUESTIONS === */
.question {
    background: var(--white);
    padding: 30px;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-lg);
    margin: 25px 0;
    transition: var(--transition);
    position: relative;
}

.question:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.question-number {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
}

.question p {
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
    margin-bottom: 20px;
    line-height: 1.5;
}

/* === CHOICES === */
.choice {
    display: block;
    padding: 18px 20px;
    margin: 12px 0;
    background: var(--gray-50);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius);
    cursor: pointer;
    transition: var(--transition);
    font-size: 15px;
}

.choice:hover {
    background: var(--gray-100);
    border-color: var(--gray-400);
}

.choice.selected {
    background: #dbeafe;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.choice input {
    margin-right: 12px;
    transform: scale(1.2);
}

/* === SCORE DISPLAY === */
.score-display {
    font-size: 48px;
    font-weight: 900;
    color: var(--primary);
    text-align: center;
    margin: 30px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.1);
}

.result-info {
    text-align: center;
    margin: 20px 0;
    color: var(--gray-600);
}

.result-info p {
    margin: 8px 0;
    font-size: 16px;
}

/* === PROGRESS BAR === */
.progress-bar {
    height: 12px;
    background: var(--gray-200);
    border-radius: 6px;
    margin: 30px 0;
    overflow: hidden;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--purple));
    transition: width 0.5s ease;
    border-radius: 6px;
}

/* === STATUS BADGES === */
.status {
    padding: 8px 16px;
    border-radius: var(--radius);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.correct {
    background: var(--success-bg);
    color: #065f46;
    border: 1px solid var(--success);
}

.wrong {
    background: var(--danger-bg);
    color: #991b1b;
    border: 1px solid var(--danger);
}

.password-field {
    position: relative;
    width: 100%;
}

.password-field input {
    padding-right: 50px !important;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 18px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: all 0.3s ease;
}

.toggle-password:hover {
    background: var(--gray-200);
    color: var(--gray-700);
}

/* Style khusus untuk form login/register */
.registration-container .form-group {
    margin-bottom: 24px;
}

.registration-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--gray-700);
    font-size: 14px;
}

.registration-container input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-lg);
    font-size: 15px;
    transition: all 0.3s ease;
    background: var(--white);
    font-family: inherit;
}

.registration-container input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}
/* === HISTORY TABLE === */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.history-table th,
.history-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.history-table th {
    background: var(--gray-50);
    font-weight: 600;
    color: var(--gray-700);
}

.history-table tr:hover {
    background: var(--gray-50);
}

.no-history {
    text-align: center;
    color: var(--gray-500);
    font-style: italic;
    padding: 40px;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
}

/* === TIMER === */
.timer {
    position: fixed;
    top: 20px;
    right: 20px;
    background: var(--primary);
    color: var(--white);
    padding: 15px 20px;
    border-radius: var(--radius-lg);
    font-weight: 700;
    box-shadow: var(--shadow-lg);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    transition: var(--transition);
}

.timer.warning {
    background: var(--warning);
    animation: pulse 1s infinite;
}

.timer.danger {
    background: var(--danger);
    animation: pulse 0.5s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* === HISTORY BOX === */
.history-box {
    background: var(--warning-bg);
    padding: 20px;
    border-radius: var(--radius-lg);
    margin: 20px 0;
    border: 1px solid var(--warning);
}

.history-box h4 {
    color: var(--gray-900);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.history-box ul {
    list-style: none;
    padding: 0;
}

.history-box li {
    padding: 8px 0;
    border-bottom: 1px solid rgba(245, 158, 11, 0.2);
    color: var(--gray-700);
}

.history-box li:last-child {
    border-bottom: none;
}

/* === LOGIN/REGISTER STYLES === */
.registration-container {
    max-width: 600px;
    margin: 50px auto;
    background: var(--white);
    padding: 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    position: relative;
    overflow: hidden;
}

.registration-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
}

.tabs {
    display: flex;
    margin-bottom: 30px;
    border-bottom: 2px solid var(--gray-200);
}

.tab {
    padding: 15px 25px;
    cursor: pointer;
    font-weight: 600;
    border-bottom: 3px solid transparent;
    transition: all 0.3s ease;
    color: var(--gray-600);
}

.tab.active {
    border-bottom-color: var(--primary);
    color: var(--primary);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.password-field {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--gray-500);
    font-size: 18px;
}

/* === TOKEN ENTRY STYLES === */
.token-container {
    background: var(--white);
    padding: 50px 40px;
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    text-align: center;
    max-width: 480px;
    width: 100%;
    position: relative;
    overflow: hidden;
}

.token-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary), var(--purple));
}

.token-hint {
    color: var(--gray-500);
    font-size: 14px;
    margin-top: 10px;
}

/* === STATS STYLES === */
.stats-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    border-left: 4px solid var(--primary);
    transition: transform 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-5px);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary);
    margin-bottom: 5px;
}

.stat-label {
    color: var(--gray-600);
    font-size: 0.9rem;
    font-weight: 600;
}

.section-title {
    font-size: 1.5rem;
    color: var(--gray-900);
    margin: 30px 0 20px 0;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--gray-200);
}

/* === SCORE COLOR CLASSES === */
.score-excellent { color: var(--success); font-weight: bold; }
.score-good { color: #3b82f6; font-weight: bold; }
.score-average { color: var(--warning); font-weight: bold; }
.score-poor { color: var(--danger); font-weight: bold; }

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .container {
        padding: 25px;
        margin: 10px;
    }
    
    h1 {
        font-size: 28px;
    }
    
    h2 {
        font-size: 22px;
    }
    
    .question {
        padding: 25px 20px;
    }
    
    .choice {
        padding: 15px;
    }
    
    .btn-group {
        flex-direction: column;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .timer {
        position: static;
        margin-bottom: 20px;
        display: inline-block;
    }
    
    .setting-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .history-table {
        font-size: 14px;
    }
    
    .history-table th,
    .history-table td {
        padding: 12px 8px;
    }
    
    .stats-container {
        grid-template-columns: 1fr;
    }
    
    .registration-container {
        padding: 30px 25px;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab {
        text-align: center;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 20px;
    }
    
    h1 {
        font-size: 24px;
    }
    
    .score-display {
        font-size: 36px;
    }
    
    .question {
        padding: 20px 15px;
    }
    
    .choice {
        padding: 12px;
        font-size: 14px;
    }
    
    .stat-number {
        font-size: 2rem;
    }
    
    .token-container {
        padding: 30px 25px;
    }
}

/* === UTILITY CLASSES === */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.mt-10 { margin-top: 10px; }
.mt-20 { margin-top: 20px; }
.mb-10 { margin-bottom: 10px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.gap-10 { gap: 10px; }
.gap-20 { gap: 20px; }
.w-full { width: 100%; }

/* === CUSTOM SCROLLBAR === */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--gray-100);
}

::-webkit-scrollbar-thumb {
    background: var(--gray-400);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gray-500);
}
/* Style untuk indikator kamera */
.camera-indicator {
    position: fixed;
    top: 10px;
    right: 10px;
    background: #dc3545;
    color: white;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 12px;
    z-index: 1000;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.5; }
    100% { opacity: 1; }
}
/* Styling untuk gambar di halaman hasil */
.detailed-results .question-text img,
.detailed-results .answer-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border: 2px solid #e9ecef;
    display: block;
}

.detailed-results .correct .answer-text img {
    border-color: #28a745;
}

.detailed-results .incorrect .answer-text img {
    border-color: #dc3545;
}

/* Untuk gambar dalam pilihan jawaban */
.detailed-results .choice-text img {
    max-width: 200px;
    height: auto;
    border-radius: 6px;
    margin: 5px 0;
    display: inline-block;
    vertical-align: middle;
}

/* Pastikan kontainer gambar responsive */
.question-text, .answer-text {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.question-text img, .answer-text img {
    max-width: 100% !important;
    height: auto !important;
}
.readonly-field {
    background-color: #f8f9fa !important;
    color: #6c757d !important;
    cursor: not-allowed !important;
}

.auto-login-notice {
    margin-top: 10px;
    font-size: 12px;
    color: #28a745;
    text-align: center;
    padding: 8px;
    background: #d4edda;
    border-radius: 4px;
    border: 1px solid #c3e6cb;
}

.password-field {
    position: relative;
}

.password-field input[readonly] {
    padding-right: 15px; /* Tetap ada ruang untuk konsistensi */
}

/* PERBAIKAN: Pastikan konten kuis memiliki style yang tepat */
#quiz-content {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

#quiz-content[style*="display: block"] {
    opacity: 1;
}

/* Pastikan container soal terlihat dengan jelas */
.question-item {
    display: none; /* Awalnya disembunyikan, akan ditampilkan oleh JavaScript */
}

.question-item[style*="display: block"] {
    display: block !important;
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

#camera-preview {
    width: 100%;
    max-width: 400px;
    height: 300px;
    background: #000;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
}

#camera-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.detailed-results .question-text {
    margin-bottom: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid #007bff;
}

.detailed-results .question-text img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 8px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.detailed-results .answer-text img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 5px 0;
    border: 2px solid #e9ecef;
}

.correct .answer-text img {
    border-color: #28a745;
}

.incorrect .answer-text img {
    border-color: #dc3545;
}

/* Untuk gambar dalam pilihan jawaban di detail */
.detailed-results .choice-text {
    display: block;
    margin-top: 5px;
}

.detailed-results .choice-text img {
    max-width: 200px;
    height: auto;
}
.question-text {
    margin-bottom: 20px;
    line-height: 1.6;
}

.question-text img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.choice-text {
    display: inline-block;
    vertical-align: top;
    line-height: 1.5;
}

.choice-text img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 5px 0;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.choice:hover .choice-text img {
    border-color: #007bff;
}

.choice.selected .choice-text img {
    border-color: #007bff;
    box-shadow: 0 0 0 2px rgba(0,123,255,0.25);
}

/* Untuk gambar dalam pilihan jawaban */
.choice-with-image {
    align-items: flex-start;
}

.choice-with-image .choice-text {
    flex: 1;
}
/* Security Features */
.security-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    font-size: 24px;
    text-align: center;
}

.security-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #dc3545;
    color: white;
    padding: 15px;
    border-radius: 8px;
    z-index: 9998;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    max-width: 300px;
}

.fullscreen-required {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    font-size: 20px;
    text-align: center;
}


.warning-counter {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #ffc107;
    color: #000;
    padding: 8px 12px;
    border-radius: 20px;
    font-weight: bold;
    z-index: 9997;
    font-size: 14px;
}
/* Di bagian CSS, tambahkan style untuk overlay */
.fullscreen-required {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10009;
    backdrop-filter: none; /* Pastikan tidak ada blur pada overlay itself */
}

.security-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10010;
    color: white;
    text-align: center;
    padding: 20px;
}

.security-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ffc107;
    color: #000;
    padding: 15px;
    border-radius: 8px;
    z-index: 10011;
    max-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
}

.warning-counter {
    position: fixed;
    top: 10px;
    left: 10px;
    background: #dc3545;
    color: white;
    padding: 8px 12px;
    border-radius: 5px;
    z-index: 10008;
    font-size: 14px;
}

/* Hapus atau modifikasi blur effect yang mengganggu */
.blur-effect {
    /* Jangan gunakan filter: blur() karena akan membuat tombol tidak jelas */
    /* filter: blur(5px); */
    opacity: 0.7; /* Sebagai ganti blur, gunakan opacity yang lebih halus */
}
.violations-summary {
    background: #fff3cd !important;
    border: 1px solid #ffeaa7 !important;
    border-left: 4px solid #ffc107 !important;
}

.violation-item {
    padding: 10px;
    margin: 5px 0;
    background: white;
    border-radius: 5px;
    border-left: 4px solid #dc3545;
}

.violation-critical {
    border-left-color: #dc3545 !important;
    background: #f8d7da !important;
}

.violation-warning {
    border-left-color: #ffc107 !important;
    background: #fff3cd !important;
}
