/* ==========================================================================
   Media Pembelajaran Interaktif: Ukuran Penyebaran Data
   Kelas XI APHPi SMK Negeri 1 Mundu
   ========================================================================== */

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

:root {
  --primary-navy: #0f2c59;
  --ocean-blue: #0077b6;
  --aqua-cyan: #00b4d8;
  --sea-mint: #06d6a0;
  --coral-accent: #ff6b6b;
  --sand-gold: #ffd166;
  --bg-slate: #f8fafc;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background-color: #f8fafc;
  color: #1e293b;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

.font-mono-math {
  font-family: 'JetBrains Mono', monospace;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #94a3b8;
  border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #64748b;
}

/* Glassmorphism Classes */
.glass-panel {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(226, 232, 240, 0.8);
}

.glass-nav {
  background: rgba(15, 44, 89, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.glass-card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.glass-card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px -8px rgba(15, 44, 89, 0.12);
}

/* Animated Gradient Background */
.gradient-marine {
  background: linear-gradient(135deg, #0f2c59 0%, #0077b6 60%, #0096c7 100%);
}

.gradient-mesh {
  background-image: 
    radial-gradient(at 10% 20%, rgba(0, 180, 216, 0.15) 0px, transparent 50%),
    radial-gradient(at 90% 10%, rgba(6, 214, 160, 0.12) 0px, transparent 50%),
    radial-gradient(at 50% 95%, rgba(15, 44, 89, 0.08) 0px, transparent 50%);
}

/* Pulse Glow */
@keyframes softPulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(0, 180, 216, 0.4);
  }
  50% {
    box-shadow: 0 0 0 12px rgba(0, 180, 216, 0);
  }
}
.pulse-glow {
  animation: softPulse 2.5s infinite;
}

/* Wave Animation */
@keyframes waveFloat {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
  }
}
.animate-wave-float {
  animation: waveFloat 5s ease-in-out infinite;
}

/* KaTeX custom appearance */
.katex-display {
  margin: 0.75rem 0 !important;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0.5rem 0;
}
.katex {
  font-size: 1.08em;
  color: #0f2c59;
}

/* Interactive Table Styling */
.table-aphpi {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 0.75rem;
  overflow: hidden;
}
.table-aphpi th {
  background-color: #0f2c59;
  color: #ffffff;
  font-weight: 600;
  text-align: center;
  padding: 0.75rem;
  font-size: 0.875rem;
}
.table-aphpi td {
  padding: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
  text-align: center;
  font-size: 0.875rem;
}
.table-aphpi tr:last-child td {
  border-bottom: none;
}
.table-aphpi tr:hover td {
  background-color: #f1f8fc;
}

/* Certificate Styles */
.certificate-frame {
  border: 10px double #0f2c59;
  background: radial-gradient(circle at center, #ffffff 0%, #f9fafb 100%);
  position: relative;
}
.certificate-frame::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 2px dashed #0077b6;
  pointer-events: none;
}

/* PRINT STYLES */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
  }
  nav, .no-print, header, footer, #btnBackToTop, .btn-no-print {
    display: none !important;
  }
  .page-section {
    display: none !important;
  }
  .page-section.active-print {
    display: block !important;
  }
  .certificate-frame {
    border: 8px double #000 !important;
    page-break-inside: avoid;
    margin: 0 auto;
    width: 100% !important;
  }
  .print-page-break {
    page-break-before: always;
  }
}
