/* ==========================================================
   CSS APLIKASI e-UPG
   ========================================================== */

/* Kustomisasi Scrollbar agar lebih elegan */
::-webkit-scrollbar { 
  width: 8px; 
}
::-webkit-scrollbar-track { 
  background: #f1f1f1; 
}
::-webkit-scrollbar-thumb { 
  background: #888; 
  border-radius: 4px; 
}

/* Class pembantu untuk menyembunyikan elemen (SPA Navigation) */
.view-hidden { 
  display: none !important; 
}

/* Tampilan Overlay saat proses Loading */
#loading-overlay { 
  position: fixed; 
  top: 0; 
  left: 0; 
  width: 100%; 
  height: 100%; 
  background: rgba(255, 255, 255, 0.8); 
  z-index: 9999; 
  display: flex; 
  flex-direction: column; 
  justify-content: center; 
  align-items: center; 
}

/* ==========================================================
   CSS KHUSUS CETAK LAPORAN (PRINT)
   ========================================================== */
@media print {
  body * { 
    visibility: hidden; 
  }
  #print-area, #print-area * { 
    visibility: visible; 
  }
  #print-area { 
    position: absolute; 
    left: 0; 
    top: 0; 
    width: 100%; 
  }
  .no-print { 
    display: none !important; 
  }
}

/* ==========================================================
   ANIMASI KHUSUS
   ========================================================== */

/* Animasi Mengambang (Floating) untuk Logo Instansi */
@keyframes float {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-10px); }
  100% { transform: translateY(0px); }
}
.animate-float { 
  animation: float 3s ease-in-out infinite; 
}

/* Animasi Background Lembut Berganti Warna (Untuk Halaman Login) */
@keyframes gradientSmooth {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.bg-gradient-gerak {
  background: linear-gradient(-45deg, #e0e7ff, #f3e8ff, #dcfce7, #ffedd5);
  background-size: 400% 400%;
  animation: gradientSmooth 12s ease infinite;
}

/* ==========================================================
   GLASSMORPHISM — HALAMAN LANDING & LOGIN
   ========================================================== */

/* Animasi Zoom In/Out pelan (Ken Burns Effect) — tidak bikin pusing */
@keyframes bgZoomInOut {
  0%   { transform: scale(1.00); }
  50%  { transform: scale(1.10); }
  100% { transform: scale(1.00); }
}

/* Background animasi halaman Landing */
.landing-bg-animated {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  animation: bgZoomInOut 30s ease-in-out infinite;
  will-change: transform;
  transform-origin: center center;
}

/* Background animasi halaman Login */
.login-bg-animated {
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  animation: bgZoomInOut 28s ease-in-out infinite;
  will-change: transform;
  transform-origin: center center;
}

/* Kotak utama glassmorphism — Halaman Landing */
.glass-card-landing {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 2rem;
  box-shadow:
    0 8px 32px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
}

/* Kotak utama glassmorphism — Halaman Login */
.glass-card-login {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 2rem;
  box-shadow:
    0 10px 40px rgba(0, 0, 0, 0.40),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

/* Badge nama aplikasi di dalam card */
.glass-badge {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* Input field glass style */
.glass-input {
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.75rem;
  color: #fff;
  transition: border-color 0.2s, background 0.2s;
}
.glass-input::placeholder {
  color: rgba(190, 215, 255, 0.55);
}
.glass-input:focus {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(147, 197, 253, 0.65);
  outline: none;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.20);
}

/* Tombol Kembali glass */
.glass-btn-back {
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.20);
  transition: background 0.2s, border-color 0.2s;
}
.glass-btn-back:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.40);
}

/* ==========================================================
   TEMA GRADASI DINAMIS (3 WARNA DARI PENGATURAN ADMIN)
   ========================================================== */
:root {
  --theme-c1: #1e3a8a;
  --theme-c2: #1d4ed8;
  --theme-c3: #0284c7;
}

.theme-sidebar-bg {
  background: linear-gradient(165deg, var(--theme-c1) 0%, var(--theme-c2) 55%, var(--theme-c3) 100%) !important;
}

.theme-banner-bg {
  background: linear-gradient(125deg, var(--theme-c1) 0%, var(--theme-c2) 55%, var(--theme-c3) 100%) !important;
}

.theme-btn-primary {
  background: linear-gradient(135deg, var(--theme-c1) 0%, var(--theme-c2) 50%, var(--theme-c3) 100%) !important;
  color: #ffffff !important;
  transition: filter 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.theme-btn-primary:hover {
  filter: brightness(1.08);
}

#sidebar nav button:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

#cropper-wrapper {
  max-height: 56vh;
  background: #0f172a;
}

#cropper-wrapper img {
  display: block;
  max-width: 100%;
}