/* --- GLOBAL & RESET --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #121212; /* Tema gelap untuk Admin Panel */
    color: #ffffff;
}


/* --- ADMIN PANEL STYLES --- */
.admin-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 30px;
    background: #1e1e1e;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    border: 1px solid #333;
}

.header {
    text-align: center;
    margin-bottom: 25px;
}

#admin-time {
    font-size: 3rem;
    font-variant-numeric: tabular-nums; /* Agar angka tidak goyang saat berubah */
    margin: 10px 0;
    color: #3b82f6;
}

.input-group, .presets, .controls {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

input[type="number"] {
    padding: 12px;
    border-radius: 8px;
    border: 1px solid #444;
    background: #2a2a2a;
    color: white;
    width: 80px;
    text-align: center;
    font-size: 1.1rem;
}

button {
    padding: 12px 18px;
    border: none;
    border-radius: 8px;
    background: #3b82f6;
    color: white;
    cursor: pointer;
    font-weight: 600;
    transition: background 0.2s, transform 0.1s;
}

button:hover { background: #2563eb; }
button:active { transform: scale(0.95); } /* Efek klik */

button.danger { background: #ef4444; }
button.danger:hover { background: #dc2626; }

button.success { background: #10b981; }
button.success:hover { background: #059669; }


/* --- OBS OVERLAY STYLES --- */
.overlay-body {
    /* PENTING: Background transparan agar game/kamera di OBS tidak tertutup */
    background: transparent !important; 
    overflow: hidden; /* Mencegah scrollbar muncul di OBS */
    display: flex;
    justify-content: center;
}

/* Desain Notch / Pony yang turun dari atas */
.notch {
    position: fixed;
    top: -150px; /* Posisi awal tersembunyi di atas layar */
    background: rgba(15, 15, 15, 0.95);
    border: 2px solid #333;
    border-top: none; /* Tidak ada border di atas karena menempel ke ujung layar */
    padding: 15px 50px;
    border-radius: 0 0 30px 30px; /* Melengkung di bawah */
    text-align: center;
    box-shadow: 0 10px 40px rgba(0,0,0,0.7);
    
    /* Animasi membal (bouncy) yang smooth saat muncul */
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); 
    min-width: 320px;
}

/* Class ini akan ditambahkan via JavaScript untuk memunculkan notch */
.notch.show {
    transform: translateY(150px); 
}

.timer-label {
    font-size: 12px;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 5px;
    font-weight: bold;
}

.timer-display {
    font-size: 54px;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.1);
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

/* --- STATE: WAKTU KRITIS (5 DETIK TERAKHIR) --- */
.critical .timer-display {
    color: #ef4444;
    text-shadow: 0 0 20px rgba(239, 68, 68, 0.8);
}
.critical .timer-label {
    color: #ef4444;
}

/* --- STATE: WAKTU HABIS --- */
.finished {
    /* Memanggil animasi shake dan glow secara bersamaan */
    animation: shake 0.5s ease-in-out infinite, glow 1s alternate infinite;
    border-color: #ef4444;
}

.finished .timer-display {
    color: #ef4444;
}

/* Keyframes untuk efek getar */
@keyframes shake {
    0% { transform: translateY(150px) translateX(0); }
    25% { transform: translateY(150px) translateX(-5px); }
    50% { transform: translateY(150px) translateX(5px); }
    75% { transform: translateY(150px) translateX(-5px); }
    100% { transform: translateY(150px) translateX(0); }
}

/* Keyframes untuk efek menyala merah */
@keyframes glow {
    from { box-shadow: 0 10px 30px rgba(239, 68, 68, 0.3); }
    to { box-shadow: 0 10px 50px rgba(239, 68, 68, 0.8); }
}