/* ==========================================================================
   SCHOOL MANAGER — ENTERPRISE FIRST MIS DESIGN SYSTEM
   Signature Royal Cobalt Blue (#2563eb) & Emerald Green (#10b981)
   High-Contrast Enterprise White & Dark Navy Sections
   ========================================================================== */

:root {
  --brand-primary: #2563eb;
  --brand-primary-dark: #1d4ed8;
  --brand-primary-light: #3b82f6;
  --brand-blue-50: #eff6ff;
  --brand-blue-100: #dbeafe;
  --accent-emerald: #10b981;
  --accent-emerald-dark: #059669;
  --accent-amber: #f59e0b;
  --accent-red: #ef4444;
  
  --bg-dark-950: #050a18;
  --bg-dark-900: #0b1329;
  --bg-dark-850: #111a36;
  --card-dark: #0f172a;
  --border-dark: #1e293b;
  --border-light: #e2e8f0;
  
  --text-main-light: #f8fafc;
  --text-muted-light: #94a3b8;
  --text-main-dark: #0f172a;
  --text-muted-dark: #475569;

  --shadow-royal: 0 10px 25px -5px rgba(37, 99, 235, 0.3), 0 8px 10px -6px rgba(37, 99, 235, 0.2);
  --shadow-emerald: 0 10px 25px -5px rgba(16, 185, 129, 0.3);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  background-color: var(--bg-dark-950);
  color: var(--text-main-light);
  min-height: 100vh;
  line-height: 1.6;
}

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

/* Container */
.container-custom {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

/* Navigation Bar */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 19, 41, 0.90);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-dark);
}

/* Bank Ticker Strip */
.bank-strip {
  background: #080e21;
  border-bottom: 1px solid #16203d;
  padding: 0.5rem 0;
  font-size: 0.8rem;
  color: #94a3b8;
}

/* Helpline Banner */
.helpline-banner {
  background: linear-gradient(90deg, #1e3a8a 0%, #1d4ed8 50%, #2563eb 100%);
  color: #ffffff;
  padding: 0.6rem 0;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
/* ==========================================================================
   ANIMATED MARQUEE (BANKS & MOBILE MONEY)
   ========================================================================== */
@keyframes marquee-scroll-ltr {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0%); }
}

@keyframes marquee-scroll {
  0% { transform: translateX(0%); }
  100% { transform: translateX(-50%); }
}

.marquee-container {
  overflow: hidden;
  user-select: none;
  display: flex;
  position: relative;
  width: 100%;
}

.marquee-container::before,
.marquee-container::after {
  content: "";
  position: absolute;
  top: 0;
  width: 120px;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.marquee-dark::before {
  background: linear-gradient(to right, #070e24, transparent);
  left: 0;
}
.marquee-dark::after {
  background: linear-gradient(to left, #070e24, transparent);
  right: 0;
}

.marquee-track {
  display: flex;
  width: max-content;
  gap: 2rem;
  animation: marquee-scroll 32s linear infinite;
}

.marquee-track-ltr {
  display: flex;
  width: max-content;
  gap: 1.5rem;
  animation: marquee-scroll-ltr 50s linear infinite;
  align-items: center;
}

.marquee-track:hover,
.marquee-track-ltr:hover {
  animation-play-state: paused;
}

.marquee-item {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(59, 130, 246, 0.2);
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  white-space: nowrap;
  font-weight: 700;
  font-size: 0.85rem;
  color: #e2e8f0;
  transition: all 0.2s ease;
}

.marquee-item:hover {
  border-color: var(--brand-primary);
  background: rgba(37, 99, 235, 0.15);
  color: #ffffff;
  transform: translateY(-2px);
}

.brand-logo-card {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  background: #091329;
  border: 1px solid rgba(59, 130, 246, 0.3);
  padding: 0.65rem 1.25rem;
  border-radius: 14px;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
  transition: all 0.25s ease;
  user-select: none;
}

.brand-logo-card:hover {
  transform: translateY(-2px);
  border-color: #3b82f6;
  background: #0f1d3d;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.25);
}

/* ==========================================================================
   HIGH-CONTRAST WHITE SECTIONS
   ========================================================================== */
.section-white {
  background-color: #ffffff;
  color: #0f172a;
}

.card-white {
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 1.125rem;
  box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.08), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
  transition: all 0.25s ease;
}

.card-white:hover {
  border-color: #3b82f6;
  transform: translateY(-3px);
  box-shadow: 0 16px 32px -4px rgba(37, 99, 235, 0.16);
}

/* Dark Cards */
.card-dark {
  background: var(--card-dark);
  border: 1px solid var(--border-dark);
  border-radius: 1rem;
  transition: all 0.25s ease;
}

.card-dark:hover {
  border-color: rgba(59, 130, 246, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}

/* Buttons */
.btn-primary {
  background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-primary-dark) 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-royal);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  box-shadow: 0 0 30px rgba(37, 99, 235, 0.6);
  transform: translateY(-1px);
}

.btn-emerald {
  background: linear-gradient(135deg, var(--accent-emerald) 0%, var(--accent-emerald-dark) 100%);
  color: #ffffff;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  cursor: pointer;
  box-shadow: var(--shadow-emerald);
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-emerald:hover {
  background: linear-gradient(135deg, #34d399 0%, #10b981 100%);
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.6);
  transform: translateY(-1px);
}

.btn-outline {
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid var(--border-dark);
  color: #f8fafc;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  border-radius: 0.625rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn-outline:hover {
  border-color: var(--brand-primary);
  background: rgba(37, 99, 235, 0.1);
  color: #60a5fa;
}

/* Badges */
.badge-blue {
  background: rgba(37, 99, 235, 0.15);
  color: #93c5fd;
  border: 1px solid rgba(37, 99, 235, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge-emerald {
  background: rgba(16, 185, 129, 0.15);
  color: #6ee7b7;
  border: 1px solid rgba(16, 185, 129, 0.3);
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Floating WhatsApp Concierge */
.floating-whatsapp {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 999;
  background: #25d366;
  color: #ffffff;
  padding: 0.85rem 1.25rem;
  border-radius: 9999px;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.45);
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.floating-whatsapp:hover {
  transform: scale(1.06) translateY(-3px);
  box-shadow: 0 15px 35px rgba(37, 211, 102, 0.65);
}

/* ==========================================================================
   PRINT STYLESHEET (OFFICIAL RECEIPT TICKET VOUCHER)
   ========================================================================== */
@media print {
  body {
    background: #ffffff !important;
    color: #000000 !important;
    font-size: 11pt;
  }
  
  .site-nav,
  .bank-strip,
  .helpline-banner,
  .site-footer,
  .floating-whatsapp,
  .no-print,
  button,
  .action-buttons {
    display: none !important;
  }
  
  .receipt-container {
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }

  .receipt-card {
    border: 2px solid #000000 !important;
    background: #ffffff !important;
    color: #000000 !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    page-break-inside: avoid;
  }

  .receipt-header {
    border-bottom: 2px solid #000000 !important;
    color: #000000 !important;
  }

  .receipt-table th, 
  .receipt-table td {
    border-bottom: 1px solid #000000 !important;
    color: #000000 !important;
  }

  .license-box {
    background: #f1f5f9 !important;
    border: 1px dashed #000000 !important;
    color: #000000 !important;
  }
}

/* Sleek Modal Scrollbar */
.modal-scroll::-webkit-scrollbar {
  width: 6px;
}
.modal-scroll::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.6);
  border-radius: 8px;
}
.modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.5);
  border-radius: 8px;
}
.modal-scroll::-webkit-scrollbar-thumb:hover {
  background: rgba(59, 130, 246, 0.8);
}

