﻿@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&display=swap');
body { font-family: 'Poppins', sans-serif; background-color: #f3f4f6; }

/* Custom Colors */
.bg-nias-green { background-color: #047857; }
.text-nias-green { color: #047857; }
.border-nias-green { border-color: #047857; }
.bg-nias-yellow { background-color: #fbbf24; }
.text-nias-yellow { color: #fbbf24; }

/* Loader Glassmorphism */
#loader {
position: fixed; inset: 0; background: rgba(255,255,255,0.85); backdrop-filter: blur(10px); z-index: 9999;
display: flex; flex-direction: column; justify-content: center; align-items: center; display: none;
}
.spinner {
border: 6px solid #e5e7eb; border-top: 6px solid #047857; border-radius: 50%;
width: 70px; height: 70px; animation: spin 1s cubic-bezier(0.55, 0.15, 0.45, 0.85) infinite;
}
@keyframes spin { 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } }

/* Animasi Arsip Login & Layout */
@keyframes float-slow { 0% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-20px) rotate(5deg); } 100% { transform: translateY(0) rotate(0deg); } }
@keyframes float-fast { 0% { transform: translateY(0) scale(1); } 50% { transform: translateY(-15px) scale(1.05); } 100% { transform: translateY(0) scale(1); } }
.anim-float-slow { animation: float-slow 5s ease-in-out infinite; }
.anim-float-fast { animation: float-fast 3s ease-in-out infinite; }

/* TOMBOL LOGIN ANIMASI PREMIUM */
.btn-login-glow {
background-size: 200% auto;
transition: 0.5s;
background-image: linear-gradient(to right, #047857 0%, #10b981 51%, #047857 100%);
box-shadow: 0 0 15px rgba(4, 120, 87, 0.4);
animation: pulse-glow 2s infinite;
}
.btn-login-glow:hover {
background-position: right center;
box-shadow: 0 0 25px rgba(4, 120, 87, 0.8);
transform: translateY(-2px);
animation: none;
}
@keyframes pulse-glow {
0% { box-shadow: 0 0 10px rgba(4,120,87,0.3); }
50% { box-shadow: 0 0 25px rgba(4,120,87,0.7); }
100% { box-shadow: 0 0 10px rgba(4,120,87,0.3); }
}
.icon-slide { transition: transform 0.3s ease; }
.btn-login-glow:hover .icon-slide { transform: translateX(6px); }

/* Animasi Menu Sidebar Keren */
.menu-item { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.menu-item:hover { transform: translateX(8px); background-color: rgba(4, 120, 87, 0.4); }
.menu-icon { transition: all 0.3s ease; }
.menu-item:hover .menu-icon { transform: scale(1.15) rotate(5deg); }

/* Transisi Halaman */
.page-view { display: none; }
.page-view.active { display: block; animation: slideInUp 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
@keyframes slideInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }

/* Form & Card Animations */
.input-anim { transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
.input-anim:focus { transform: scale(1.02); box-shadow: 0 10px 15px -3px rgba(4, 120, 87, 0.15); }
.card-hover { transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); }
.card-hover:hover { transform: translateY(-8px); box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.2); }

/* Custom Scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 4px; }
::-webkit-scrollbar-thumb { background: #047857; border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: #065f46; }