/* ==========================================================================
   PESILAT Purabaya - Aqua PWA v3.0 | Light & Dark Mode Perfected
   ========================================================================== */

:root {
  --hydro-cyan: #00f2fe;
  --hydro-blue: #3b82f6;
  --hydro-deep: #071321;
  --hydro-surface: rgba(11, 25, 44, 0.75);
  --hydro-surface-light: rgba(255, 255, 255, 0.98);
  --hydro-border: rgba(0, 242, 254, 0.18);
  --hydro-border-glow: rgba(0, 242, 254, 0.35);
  --hydro-glow: 0 0 25px rgba(0, 242, 254, 0.25);
  --hydro-accent-green: #10b981;
  --lm-bg: #f0f8ff;
  --lm-surface: #ffffff;
  --lm-border: rgba(148, 163, 184, 0.25);
  --lm-text: #0f172a;
  --lm-text-sub: #64748b;
}

/* Base Reset & Body */
::-webkit-scrollbar { display: none; }
* {
  -ms-overflow-style: none;
  scrollbar-width: none;
  -webkit-tap-highlight-color: transparent;
}

/* Water Ripple Effect */
.water-ripple, .btn-hydro {
  position: relative;
  overflow: hidden;
}

.water-ripple-wave {
  position: absolute !important;
  border-radius: 50% !important;
  transform: scale(0);
  animation: hydroRippleAnim 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  background-color: rgba(255, 255, 255, 0.35);
  pointer-events: none !important;
  z-index: 10;
}

@keyframes hydroRippleAnim {
  0% {
    transform: scale(0);
    opacity: 0.7;
  }
  100% {
    transform: scale(2.5);
    opacity: 0;
  }
}

body {
  font-family: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  user-select: none;
  -webkit-user-select: none;
  overscroll-behavior-y: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
  letter-spacing: -0.02em;
}

.safe-pt { padding-top: max(16px, env(safe-area-inset-top)); }
.safe-pb { padding-bottom: calc(env(safe-area-inset-bottom) + 85px); }
.safe-pb-nav { padding-bottom: max(12px, env(safe-area-inset-bottom)); }

/* ==========================================================================
   KANTOR BACKGROUND (Identical to Login Screen)
   ========================================================================== */

.bg-kantor-original {
  background-image: url('/kantor_baru.jpg');
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
}

.bg-kantor-original::before {
  content: '';
  position: fixed;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(240, 249, 255, 0.88) 100%);
  z-index: 0;
  pointer-events: none;
  transition: background 0.3s ease;
}

.dark .bg-kantor-original::before {
  background: linear-gradient(180deg, rgba(7, 19, 33, 0.84) 0%, rgba(4, 11, 20, 0.95) 100%);
}

/* ==========================================================================
   Card System — Light & Dark
   ========================================================================== */

.hydro-glass {
  background: #ffffff;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 15px -2px rgba(15, 23, 42, 0.05), 0 2px 6px -1px rgba(15, 23, 42, 0.03);
}

.dark .hydro-glass {
  background: rgba(11, 25, 44, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 242, 254, 0.15);
  box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.hydro-card-glow {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  box-shadow: 0 6px 20px -4px rgba(0, 180, 216, 0.10), 0 2px 8px -2px rgba(15, 23, 42, 0.05);
}

.dark .hydro-card-glow {
  background: linear-gradient(145deg, rgba(13, 31, 53, 0.9) 0%, rgba(7, 19, 33, 0.98) 100%);
  border: 1px solid rgba(0, 242, 254, 0.22);
  box-shadow: 0 12px 35px -8px rgba(0, 242, 254, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ==========================================================================
   Hover Card Effects
   ========================================================================== */

.hydro-hover-card {
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.hydro-hover-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 242, 254, 0.4);
}
.hydro-hover-card:active {
  transform: scale(0.98);
}

/* ==========================================================================
   Text Effects & Badges
   ========================================================================== */

.hydro-neon-text {
  background: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hydro-neon-badge {
  background: rgba(0, 242, 254, 0.1);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: #0891b2;
}

.dark .hydro-neon-badge {
  color: #00f2fe;
}

/* ==========================================================================
   Water Wave Animations
   ========================================================================== */

.water-wave-container {
  position: relative;
  overflow: hidden;
}

.water-wave {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 100%;
  opacity: 0.12;
  background-repeat: repeat-x;
  transform: translate3d(0, 0, 0);
  animation: waveAnimation 14s cubic-bezier(0.36, 0.45, 0.63, 0.53) infinite;
}

.water-wave:nth-of-type(2) {
  bottom: 4px;
  opacity: 0.08;
  animation: waveAnimation 9s cubic-bezier(0.36, 0.45, 0.63, 0.53) -0.125s infinite,
             swellAnimation 7s ease -1.25s infinite;
}

@keyframes waveAnimation {
  0%   { margin-left: 0; }
  100% { margin-left: -100%; }
}

@keyframes swellAnimation {
  0%, 100% { transform: translate3d(0, -2px, 0); }
  50%       { transform: translate3d(0, 3px, 0); }
}

/* ==========================================================================
   QR Scanner Laser
   ========================================================================== */

@keyframes scanLaser {
  0%   { top: 5%;  opacity: 0.3; }
  50%  { top: 90%; opacity: 1; }
  100% { top: 5%;  opacity: 0.3; }
}

.scanner-laser-line {
  position: absolute;
  left: 5%; right: 5%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #00f2fe, #10b981, #00f2fe, transparent);
  box-shadow: 0 0 15px #00f2fe, 0 0 30px #00f2fe;
  animation: scanLaser 2.2s ease-in-out infinite;
}

/* ==========================================================================
   Micro-Animations
   ========================================================================== */

@keyframes floatSlow {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-4px); }
}

.animate-float { animation: floatSlow 3.5s ease-in-out infinite; }

@keyframes softPulse {
  0%, 100% { opacity: 1;    transform: scale(1); }
  50%       { opacity: 0.85; transform: scale(1.02); }
}

.animate-soft-pulse { animation: softPulse 2.5s ease-in-out infinite; }

/* ==========================================================================
   Hydro Form Inputs (Day / Light & Dark Mode Perfected)
   ========================================================================== */
.input-hydro, .input-glass {
  width: 100%;
  background-color: #f8fafc;
  border: 1.5px solid #cbd5e1;
  color: #0f172a !important;
  transition: all 0.2s ease;
  font-family: inherit;
}

.input-hydro::placeholder, .input-glass::placeholder {
  color: #94a3b8 !important;
}

.input-hydro:focus, .input-glass:focus {
  background-color: #ffffff;
  border-color: #06b6d4 !important;
  outline: none;
  box-shadow: 0 0 0 3px rgba(6, 182, 212, 0.18) !important;
}

.dark .input-hydro, .dark .input-glass {
  background-color: #071321 !important;
  border: 1.5px solid rgba(0, 242, 254, 0.3) !important;
  color: #ffffff !important;
}

.dark .input-hydro::placeholder, .dark .input-glass::placeholder {
  color: #64748b !important;
}

.dark .input-hydro:focus, .dark .input-glass:focus {
  background-color: #0b192c !important;
  border-color: #00f2fe !important;
  box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.25) !important;
}

