/* Global Settings */
body { background-color: #f8fafc; }
.glass { background: rgba(255, 255, 255, 0.95); backdrop-filter: blur(10px); }

/* Transitions */
.fade-in { animation: fadeIn 0.5s ease-out forwards; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.slide-in { animation: slideIn 0.3s ease-out forwards; }
@keyframes slideIn { from { transform: translateX(-20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

.hidden-section { display: none !important; }

/* Loader */
.loader-overlay { position: fixed; inset: 0; background: rgba(255,255,255,0.9); z-index: 100; display: flex; justify-content: center; align-items: center; backdrop-filter: blur(4px); }
.spinner { border: 4px solid #f3f3f3; border-top: 4px solid #0c4a6e; border-radius: 50%; width: 50px; height: 50px; animation: spin 0.8s linear infinite; box-shadow: 0 4px 6px rgba(0,0,0,0.1); }
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Toast Notification */
#toast-container { position: fixed; bottom: 20px; right: 20px; z-index: 9999; display: flex; flex-direction: column; gap: 10px; }
.toast { padding: 16px 24px; border-radius: 12px; color: white; box-shadow: 0 10px 15px -3px rgba(0,0,0,0.1); font-size: 0.95rem; min-width: 300px; animation: slideLeft 0.3s ease-out; display: flex; align-items: center; gap: 12px; border: 1px solid rgba(255,255,255,0.1); }
.toast.success { background: linear-gradient(135deg, #10b981, #059669); }
.toast.error { background: linear-gradient(135deg, #ef4444, #dc2626); }
.toast.info { background: linear-gradient(135deg, #3b82f6, #2563eb); }
@keyframes slideLeft { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* Dashboard specific */
.admin-tab-btn { position: relative; overflow: hidden; }
.admin-tab-btn.active { background-color: #f1f5f9; color: #0c4a6e; border-left-color: #f59e0b; font-weight: 700; box-shadow: inset 4px 0 0 #f59e0b; }
.stat-card { transition: all 0.3s ease; }
.stat-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1); }

/* Pattern Background for ID Card */
.pattern-bg {
    background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 10px, transparent 10px, transparent 20px);
}