/**
 * SPMB SMK BPI BANDUNG - Ultra-Modern Glassmorphic Design System
 * Inspired by Next-Gen Web Design (Stripe / Vercel Aesthetics)
 * Typography: Plus Jakarta Sans & Outfit
 */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

:root {
  /* Color Tokens */
  --bpi-primary: #0f766e;
  --bpi-primary-hover: #115e59;
  --bpi-primary-dark: #042f2e;
  --bpi-primary-light: #f0fdfa;
  --bpi-emerald: #10b981;
  --bpi-secondary: #0284c7;
  --bpi-sky: #38bdf8;
  --bpi-accent: #f59e0b;
  --bpi-dark: #090d16;
  --bpi-dark-surface: #0f172a;
  --bpi-slate: #334155;
  --bpi-muted: #64748b;
  --bpi-border: rgba(226, 232, 240, 0.8);
  --bpi-border-glass: rgba(255, 255, 255, 0.6);
  
  /* Gradients */
  --bpi-grad-primary: linear-gradient(135deg, #0f766e 0%, #059669 50%, #10b981 100%);
  --bpi-grad-dark: linear-gradient(145deg, #0f172a 0%, #062420 100%);
  --bpi-grad-accent: linear-gradient(135deg, #0284c7 0%, #06b6d4 100%);
  --bpi-grad-sunset: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  
  /* Shadows & Glows */
  --bpi-shadow-sm: 0 2px 4px rgba(15, 23, 42, 0.04), 0 1px 2px rgba(15, 23, 42, 0.02);
  --bpi-shadow-md: 0 8px 20px -4px rgba(15, 23, 42, 0.06), 0 4px 8px -2px rgba(15, 23, 42, 0.03);
  --bpi-shadow-lg: 0 20px 35px -10px rgba(15, 118, 110, 0.12), 0 1px 3px rgba(0, 0, 0, 0.05);
  --bpi-shadow-xl: 0 25px 50px -12px rgba(15, 23, 42, 0.18);
  --bpi-glow-primary: 0 0 35px -5px rgba(16, 185, 129, 0.35);
  
  /* Transitions */
  --bpi-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Base & Typography */
* {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html {
  background-color: #090d16;
  scroll-behavior: smooth;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: #1e293b;
  background-color: #f8fafc;
  overflow-x: hidden;
  position: relative;
  margin: 0;
  padding: 0;
  min-height: 100vh;
}

footer {
  margin-bottom: 0 !important;
}

.badge-live-stats {
  background: rgba(16, 185, 129, 0.22) !important;
  color: #34d399 !important;
  border: 1px solid rgba(52, 211, 153, 0.45) !important;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

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

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Gradient Text Utilities */
.text-gradient {
  background: var(--bpi-grad-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

.text-gradient-accent {
  background: var(--bpi-grad-accent);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
}

/* Mesh Background & Ambient Glow */
.mesh-bg {
  background-color: #ffffff;
  background-image: 
    radial-gradient(at 0% 0%, rgba(15, 118, 110, 0.12) 0px, transparent 55%),
    radial-gradient(at 100% 0%, rgba(14, 165, 233, 0.10) 0px, transparent 55%),
    radial-gradient(at 50% 50%, rgba(16, 185, 129, 0.06) 0px, transparent 65%),
    radial-gradient(at 100% 100%, rgba(99, 102, 241, 0.08) 0px, transparent 50%),
    radial-gradient(at 0% 100%, rgba(15, 118, 110, 0.08) 0px, transparent 50%);
  position: relative;
}

.ambient-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
  opacity: 0.6;
}

.ambient-orb-teal {
  width: 380px;
  height: 380px;
  background: rgba(16, 185, 129, 0.25);
  top: -100px;
  right: -50px;
  animation: floatOrb 12s ease-in-out infinite alternate;
}

.ambient-orb-sky {
  width: 320px;
  height: 320px;
  background: rgba(14, 165, 233, 0.2);
  bottom: -60px;
  left: -40px;
  animation: floatOrb 10s ease-in-out infinite alternate-reverse;
}

@keyframes floatOrb {
  0% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(25px, -20px) scale(1.08); }
  100% { transform: translate(-20px, 20px) scale(0.95); }
}

/* Glassmorphism Cards */
.glass-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.05), 0 0 0 1px rgba(15, 23, 42, 0.03);
  border-radius: 20px;
  transition: all 0.3s var(--bpi-ease);
  position: relative;
  overflow: hidden;
}

.glass-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 40px -10px rgba(15, 118, 110, 0.12), 0 0 0 1px rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.35);
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.90);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.35);
  border-radius: 24px;
}

/* Modern Sticky Navbar */
.navbar-spmb {
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s ease;
  z-index: 1030;
}

.navbar-spmb .nav-link {
  color: #334155;
  font-weight: 600;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  transition: all 0.2s ease;
}

.navbar-spmb .nav-link:hover {
  color: var(--bpi-primary);
  background: rgba(15, 118, 110, 0.08);
}

/* Pulsing Beacon Indicator */
.beacon-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.7);
  animation: beaconPulse 1.8s infinite;
  vertical-align: middle;
  margin-right: 6px;
}

@keyframes beaconPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.8);
  }
  70% {
    box-shadow: 0 0 0 9px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Modern Pill Buttons with Shimmer */
.btn-bpi-primary {
  background: var(--bpi-grad-primary);
  border: none;
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  position: relative;
  overflow: hidden;
  transition: all 0.3s var(--bpi-ease);
  box-shadow: 0 6px 18px -2px rgba(15, 118, 110, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-bpi-primary:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -3px rgba(16, 185, 129, 0.45);
}

.btn-bpi-primary:active {
  transform: translateY(0);
}

.btn-bpi-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.3),
    transparent
  );
  transform: rotate(25deg);
  animation: btnShimmer 5s infinite;
}

@keyframes btnShimmer {
  0% { left: -60%; }
  25% { left: 140%; }
  100% { left: 140%; }
}

.btn-bpi-whatsapp {
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  border: none;
  color: #ffffff;
  font-weight: 600;
  border-radius: 999px;
  padding: 0.7rem 1.6rem;
  transition: all 0.3s var(--bpi-ease);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: 0 6px 18px -2px rgba(37, 211, 102, 0.3);
}

.btn-bpi-whatsapp:hover {
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -3px rgba(37, 211, 102, 0.45);
}

/* Metric / Stat Card */
.stat-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 1.5rem;
  transition: all 0.3s var(--bpi-ease);
  box-shadow: var(--bpi-shadow-sm);
  position: relative;
  overflow: hidden;
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--bpi-grad-primary);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--bpi-shadow-lg);
  border-color: rgba(16, 185, 129, 0.3);
}

.stat-card:hover::before {
  opacity: 1;
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
  transform: scale(1.08) rotate(3deg);
}

/* 8 Stage Roadmap Cards */
.timeline-card {
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 20px;
  padding: 1.4rem;
  transition: all 0.3s var(--bpi-ease);
  position: relative;
  display: flex;
  flex-column: column;
  justify-content: space-between;
}

.timeline-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 30px -8px rgba(15, 118, 110, 0.14);
  border-color: rgba(16, 185, 129, 0.4);
}

.step-num-badge {
  width: 44px;
  height: 44px;
  min-width: 44px;
  border-radius: 14px;
  background: var(--bpi-grad-primary);
  color: #ffffff;
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 14px rgba(15, 118, 110, 0.3);
}

.step-num-badge.active {
  animation: pulse-ring 2.2s infinite;
}

@keyframes pulse-ring {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.6);
  }
  70% {
    box-shadow: 0 0 0 12px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Gelombang Tabs & Filters */
.nav-pills-gelombang {
  background: #f1f5f9;
  padding: 5px;
  border-radius: 999px;
  display: inline-flex;
}

.nav-pills-gelombang .nav-link {
  border-radius: 999px;
  padding: 0.55rem 1.4rem;
  font-weight: 600;
  color: #64748b;
  border: none;
  transition: all 0.25s ease;
  font-size: 0.9rem;
}

.nav-pills-gelombang .nav-link:hover {
  color: #0f172a;
}

.nav-pills-gelombang .nav-link.active {
  background: var(--bpi-grad-primary);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(15, 118, 110, 0.3);
}

/* Modern Wave Card */
.wave-card {
  border-radius: 24px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  background: #ffffff;
  overflow: hidden;
  transition: all 0.35s var(--bpi-ease);
  position: relative;
}

.wave-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 22px 45px -12px rgba(15, 118, 110, 0.16);
  border-color: rgba(16, 185, 129, 0.4);
}

.wave-card.active-wave {
  border: 2px solid #0f766e !important;
  box-shadow: 0 12px 30px -5px rgba(15, 118, 110, 0.15);
}

.wave-card.active-wave::before {
  content: 'GELOMBANG AKTIF';
  position: absolute;
  top: 14px;
  right: -32px;
  background: var(--bpi-grad-primary);
  color: white;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 36px;
  transform: rotate(45deg);
  box-shadow: 0 2px 8px rgba(15, 118, 110, 0.4);
}

/* Modern Table */
.table-spmb {
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.table-spmb thead th {
  background: #f8fafc;
  color: #475569;
  font-weight: 700;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 1.1rem 1.3rem;
  border-bottom: 1px solid #e2e8f0;
}

.table-spmb tbody td {
  padding: 1.1rem 1.3rem;
  vertical-align: middle;
  border-bottom: 1px solid #f1f5f9;
  background: #ffffff;
  transition: background-color 0.15s ease;
}

.table-spmb tbody tr:last-child td {
  border-bottom: none;
}

.table-spmb tbody tr:hover td {
  background-color: #f8fafc;
}

/* Progress bar */
.progress-spmb {
  height: 9px;
  border-radius: 999px;
  background-color: #f1f5f9;
  overflow: hidden;
}

/* Floating Glass Inputs */
.form-control, .form-select {
  border-radius: 12px;
  border: 1px solid #cbd5e1;
  padding: 0.7rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  background-color: #ffffff;
}

.form-control:focus, .form-select:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.14);
}

/* Auth Page Floating Box */
.auth-wrapper {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.auth-card {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  box-shadow: 0 25px 60px -15px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(15, 23, 42, 0.04);
  overflow: hidden;
}

/* Admin Sidebar Ultra Modern */
.admin-sidebar {
  width: 270px;
  min-height: 100vh;
  background: #090d16;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
}

.admin-sidebar .nav-link {
  color: #94a3b8;
  font-weight: 500;
  border-radius: 12px;
  padding: 0.72rem 1.1rem;
  margin-bottom: 5px;
  transition: all 0.25s var(--bpi-ease);
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-sidebar .nav-link:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  transform: translateX(3px);
}

.admin-sidebar .nav-link.active {
  color: #ffffff;
  background: var(--bpi-grad-primary);
  font-weight: 600;
  box-shadow: 0 6px 18px rgba(15, 118, 110, 0.35);
}

/* Print CSS */
@media print {
  body { background: #ffffff !important; }
  .no-print { display: none !important; }
}
