/* ==========================================================================
   ESTURI SOFT HARMONY THEME — SMPN 1 Ringinrejo
   Palet: Deep Soft Navy (#1E3A8A), Warm Muted Amber (#D97706),
   Light Sky Accent (#0284C7), Soft Off-White Paper (#F8FAFC),
   serta Slate Text (#334155) yang teduh dan nyaman untuk mata.
   ========================================================================== */

:root {
  --primary-navy: #1E3A8A;
  --primary-navy-soft: #2563EB;
  --primary-navy-light: #EFF6FF;
  --warm-gold: #D97706;
  --warm-gold-soft: #FEF3C7;
  --slate-body: #334155;
  --slate-dark: #0F172A;
  --slate-muted: #64748B;
  --slate-border: #E2E8F0;
  
  --bs-primary: #1E3A8A !important;
  --bs-primary-rgb: 30, 58, 138 !important;
}

/* Base Body & Typography */
body {
  background-color: #F8FAFC !important;
  color: #334155 !important;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.65;
}

/* Headings */
h1, h2, h3, h4, h5, h6, .fw-bold {
  color: #0F172A !important;
  letter-spacing: -0.015em;
}

/* Text Gradient & Accent */
.text-primary {
  color: #1E3A8A !important;
}

.text-gradient {
  color: #1E3A8A !important;
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 60%, #D97706 100%) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}

.text-cyan, .text-warning {
  color: #D97706 !important;
}

/* Topbar Realtime Header */
.top-realtime-bar {
  background: #0F172A !important;
  color: #CBD5E1 !important;
  border-bottom: 1px solid rgba(217, 119, 6, 0.25) !important;
  font-size: 0.82rem;
}

.live-clock-badge {
  background: rgba(217, 119, 6, 0.15) !important;
  border: 1px solid rgba(217, 119, 6, 0.35) !important;
  color: #FDE68A !important;
  font-weight: 600;
  border-radius: 9999px;
  padding: 0.18rem 0.65rem;
}

.live-dot {
  background-color: #10B981 !important;
}

/* Navigation Bar */
.main-header {
  background: rgba(255, 255, 255, 0.94) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border-bottom: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
}

.nav-link {
  color: #334155 !important;
  font-weight: 600 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 9999px !important;
  transition: all 0.2s ease !important;
}

.nav-link:hover, .nav-link.active {
  color: #1E3A8A !important;
  background: #EFF6FF !important;
}

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 50%, #1E40AF 100%) !important;
  color: #FFFFFF !important;
  position: relative;
}

.hero-section::before {
  background: radial-gradient(circle, rgba(37, 99, 235, 0.25) 0%, rgba(217, 119, 6, 0.12) 50%, rgba(0,0,0,0) 70%) !important;
}

/* Primary Buttons */
.btn-primary, .btn-gradient {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%) !important;
  border: none !important;
  color: #FFFFFF !important;
  font-weight: 600 !important;
  border-radius: 9999px !important;
  box-shadow: 0 4px 12px rgba(30, 58, 138, 0.25) !important;
  transition: all 0.25s ease !important;
}

.btn-primary:hover, .btn-gradient:hover {
  background: linear-gradient(135deg, #172554 0%, #1E3A8A 100%) !important;
  box-shadow: 0 6px 16px rgba(30, 58, 138, 0.35) !important;
  transform: translateY(-2px);
}

.btn-outline-primary {
  color: #1E3A8A !important;
  border: 1.5px solid #1E3A8A !important;
  border-radius: 9999px !important;
  font-weight: 600 !important;
  transition: all 0.2s ease !important;
}

.btn-outline-primary:hover {
  background: #1E3A8A !important;
  color: #FFFFFF !important;
}

.btn-outline-light.hover-gradient:hover {
  background: linear-gradient(135deg, #D97706 0%, #B45309 100%) !important;
  border-color: #D97706 !important;
  color: #FFFFFF !important;
}

/* Cards & Containers */
.glass-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 4px 20px -4px rgba(15, 23, 42, 0.05) !important;
  border-radius: 1rem !important;
}

.card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.03) !important;
  border-radius: 1rem !important;
}

.news-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 24px -6px rgba(15, 23, 42, 0.08) !important;
  border-color: #CBD5E1 !important;
}

/* Badges */
.badge.bg-primary {
  background-color: #1E3A8A !important;
  color: #FFFFFF !important;
}

.badge.bg-primary-subtle, .badge-soft-primary {
  background-color: #EFF6FF !important;
  color: #1E3A8A !important;
  border: 1px solid #DBEAFE !important;
}

.badge.bg-warning {
  background-color: #D97706 !important;
  color: #FFFFFF !important;
}

.badge.bg-warning-subtle {
  background-color: #FEF3C7 !important;
  color: #92400E !important;
  border: 1px solid #FDE68A !important;
}

/* Section Backgrounds */
.bg-light {
  background-color: #F1F5F9 !important;
}

.bg-white {
  background-color: #FFFFFF !important;
}

/* Footer */
footer {
  background: linear-gradient(135deg, #0A0F1D 0%, #0F172A 50%, #172554 100%) !important;
  border-top: 3px solid #D97706 !important;
  color: #E2E8F0 !important;
}

.analytics-stat-pill {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 0.75rem !important;
}

.analytics-stat-pill:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

/* AI Assistant Widget */
.ai-toggle-btn {
  background: linear-gradient(135deg, #1E3A8A 0%, #2563EB 100%) !important;
  box-shadow: 0 6px 20px rgba(30, 58, 138, 0.35) !important;
}

.ai-chat-header {
  background: linear-gradient(135deg, #0F172A 0%, #1E3A8A 100%) !important;
}
