/* style.css */
body { font-family: 'Outfit', sans-serif; }

/* --- Cards (Glassmorphism Dark) --- */
.card-dark {
    background: rgba(30, 41, 59, 0.75);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1.5rem;
    box-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.card-dark:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    border-color: rgba(99, 102, 241, 0.4);
}

/* --- QR Container --- */
#qrcode-container {
    padding: 1rem;
    background: white; /* QR wajib putih agar terbaca kamera */
    border-radius: 1rem;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
    transition: all 0.3s;
}
#qrcode-container img { margin: auto; }

/* --- Buttons & Inputs --- */
.input-dark {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255,255,255,0.1);
    color: white;
    transition: all 0.3s;
}
.input-dark:focus {
    border-color: #6366f1;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
    background: rgba(15, 23, 42, 0.9);
}

.btn-primary {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
    border: 1px solid rgba(255,255,255,0.1);
    transition: all 0.3s;
}
.btn-primary:hover {
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
    transform: scale(1.02);
}

.btn-secondary {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #cbd5e1;
    transition: all 0.3s;
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* --- Toggle Switch (Pilihan QR) --- */
.qr-toggle-btn {
    flex: 1;
    padding: 0.75rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-radius: 0.75rem;
    transition: all 0.3s;
    border: 1px solid transparent;
    cursor: pointer;
}
.qr-toggle-btn.active-in {
    background: #10b981; /* Emerald */
    color: white;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.4);
}
.qr-toggle-btn.active-out {
    background: #f43f5e; /* Rose */
    color: white;
    box-shadow: 0 0 15px rgba(244, 63, 94, 0.4);
}
.qr-toggle-btn.inactive {
    background: rgba(15, 23, 42, 0.6);
    color: #94a3b8;
    border-color: rgba(255,255,255,0.05);
}
.qr-toggle-btn.inactive:hover {
    background: rgba(255,255,255,0.1);
    color: white;
}

/* --- Calendar --- */
.calendar-grid {
    display: grid; grid-template-columns: repeat(7, 1fr); gap: 0.5rem;
}
.calendar-day {
    aspect-ratio: 1; display: flex; align-items: center; justify-content: center;
    border-radius: 0.75rem; font-size: 0.8rem; font-weight: 600;
}

/* --- Animation --- */
.animate-in { animation: fadeUp 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
@keyframes fadeUp { 
    from { opacity: 0; transform: translateY(20px) scale(0.98); } 
    to { opacity: 1; transform: translateY(0) scale(1); } 
}

/* Scrollbar */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0f172a; }
::-webkit-scrollbar-thumb { background: #334155; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #475569; }