/* ============================================================================
   SHRI RAM CENTENNIAL SCHOOL (SRCS)
   Official Premium Modern Design System & Stylesheet
   Playgroup to Class XII Continuum & Unified ERP Platform
   Strictly English Only UI - Modern, Fast, Mobile-First & Responsive
   ============================================================================ */

:root {
  /* Brand Color Palette */
  --primary: #1a365d;          /* Centennial Royal Navy */
  --primary-dark: #0f172a;     /* Deep Slate Navy */
  --primary-light: #2563eb;    /* Vibrant Royal Blue */
  --primary-subtle: #eff6ff;   /* Soft Blue Tint */
  
  --secondary: #d97706;        /* Warm Academic Gold */
  --secondary-light: #f59e0b;  /* Bright Amber */
  --secondary-subtle: #fffbeb; /* Soft Gold Tint */
  
  --accent: #0d9488;           /* Deep Teal */
  --accent-light: #14b8a6;     /* Cyan Teal */
  
  --success: #059669;          /* Emerald Success */
  --success-subtle: #ecfdf5;
  --danger: #dc2626;           /* Crimson Alert */
  --danger-subtle: #fef2f2;
  --warning: #d97706;          /* Amber Warning */
  --warning-subtle: #fffbeb;
  
  --text-main: #1e293b;        /* Slate 800 */
  --text-muted: #64748b;       /* Slate 500 */
  --text-light: #94a3b8;       /* Slate 400 */
  
  --light-bg: #f8fafc;         /* Background Canvas */
  --card-bg: #ffffff;          /* Card White */
  --border-color: #e2e8f0;     /* Slate 200 */
  --border-subtle: #f1f5f9;    /* Slate 100 */
  
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.08), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 25px -3px rgba(15, 23, 42, 0.1), 0 4px 6px -4px rgba(15, 23, 42, 0.05);
  --shadow-xl: 0 20px 30px -4px rgba(15, 23, 42, 0.15), 0 8px 10px -6px rgba(15, 23, 42, 0.08);

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-pill: 9999px;

  --sidebar-width: 275px;
}

/* Base Document */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--text-main);
  background-color: var(--light-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

/* ============================================================================
   Public Website Navigation & Header
   ============================================================================ */
.navbar-srcs {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.04);
  padding: 0.85rem 1rem;
  transition: all 0.3s ease;
}

.school-logo-img {
  height: 54px;
  width: auto;
  object-fit: contain;
  transition: transform 0.25s ease;
}
.navbar-brand:hover .school-logo-img {
  transform: scale(1.03);
}

.school-brand-title {
  font-weight: 800;
  font-size: 1.22rem;
  color: var(--primary);
  line-height: 1.15;
  letter-spacing: -0.4px;
}

.school-brand-sub {
  font-size: 0.72rem;
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
}

.nav-link {
  font-weight: 600;
  font-size: 0.93rem;
  color: #334155 !important;
  padding: 0.5rem 0.85rem !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.nav-link:hover {
  color: var(--primary) !important;
  background-color: #f1f5f9;
}

.nav-link.active {
  color: var(--primary) !important;
  background-color: var(--primary-subtle);
  font-weight: 700;
}

.dropdown-menu {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.5rem;
}

.dropdown-item {
  border-radius: var(--radius-sm);
  padding: 0.6rem 1rem;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.dropdown-item:hover {
  background-color: var(--primary-subtle);
  color: var(--primary);
}

/* Header Buttons */
.btn-erp-portal {
  background: linear-gradient(135deg, var(--primary), #1e40af);
  color: #ffffff !important;
  font-weight: 700;
  font-size: 0.9rem;
  border-radius: var(--radius-pill);
  padding: 0.55rem 1.4rem;
  border: none;
  box-shadow: 0 4px 14px rgba(26, 54, 93, 0.3);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
}

.btn-erp-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(26, 54, 93, 0.4);
  color: #ffffff !important;
}

/* ============================================================================
   Hero Section
   ============================================================================ */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1a365d 55%, #1e3a8a 100%);
  color: #ffffff;
  padding: 5.5rem 0 6.5rem 0;
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.15) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -40%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2) 0%, rgba(0,0,0,0) 70%);
  pointer-events: none;
}

.hero-title {
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.8px;
}

@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }
}

.hero-subtitle {
  font-size: 1.2rem;
  color: #cbd5e1;
  font-weight: 400;
  line-height: 1.7;
}

/* ============================================================================
   Feature Cards & Components
   ============================================================================ */
.feature-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2.2rem 1.6rem;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  box-shadow: var(--shadow-sm);
  position: relative;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.feature-icon-box {
  width: 68px;
  height: 68px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.85rem;
  margin-bottom: 1.35rem;
  box-shadow: var(--shadow-sm);
}

/* Academic Stage Card */
.academic-card {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
  background: #ffffff;
}

.academic-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================================
   ERP Layout, Sidebar & Topbar
   ============================================================================ */
.erp-wrapper {
  display: flex;
  min-height: 100vh;
  background-color: var(--light-bg);
}

.erp-sidebar {
  width: var(--sidebar-width);
  background: #0f172a; /* Deep Slate 900 */
  color: #cbd5e1;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1040;
  box-shadow: 2px 0 16px rgba(0, 0, 0, 0.15);
}

.erp-sidebar .brand-header {
  padding: 1.25rem 1.4rem;
  background: #0b1120;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.erp-nav-item {
  color: #94a3b8;
  padding: 0.68rem 1.35rem;
  display: flex;
  align-items: center;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  border-left: 4px solid transparent;
}

.erp-nav-item i {
  width: 22px;
  font-size: 1.05rem;
  margin-right: 12px;
  text-align: center;
}

.erp-nav-item:hover {
  background: #1e293b;
  color: #ffffff;
  border-left-color: var(--secondary-light);
}

.erp-nav-item.active {
  background: linear-gradient(90deg, #1e293b, #0f172a);
  color: #ffffff;
  border-left-color: var(--secondary);
  font-weight: 700;
}

.erp-nav-heading {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: #64748b;
  padding: 1.35rem 1.4rem 0.4rem;
  font-weight: 800;
}

.erp-content {
  flex-grow: 1;
  background-color: #f8fafc;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  min-width: 0;
}

.erp-topbar {
  background: #ffffff;
  height: 68px;
  border-bottom: 1px solid var(--border-color);
  padding: 0 1.8rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.erp-main-body {
  padding: 2rem;
  flex-grow: 1;
}

@media (max-width: 768px) {
  .erp-main-body {
    padding: 1.2rem;
  }
}

/* ============================================================================
   Stat Cards & Metrics
   ============================================================================ */
.stat-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

/* ============================================================================
   Tables & Data Presentation
   ============================================================================ */
.table {
  --bs-table-hover-bg: #f8fafc;
  vertical-align: middle;
}

.table thead th {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-weight: 700;
  color: var(--text-muted);
  background-color: #f8fafc;
  border-bottom: 2px solid var(--border-color);
  padding: 0.85rem 1rem;
}

.table tbody td {
  padding: 0.95rem 1rem;
  border-bottom: 1px solid var(--border-color);
  color: var(--text-main);
}

/* ============================================================================
   Forms & Controls
   ============================================================================ */
.form-control, .form-select {
  border-radius: var(--radius-sm);
  border: 1px solid #cbd5e1;
  padding: 0.65rem 0.95rem;
  font-size: 0.92rem;
  color: var(--text-main);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  outline: none;
}

.form-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: #334155;
  margin-bottom: 0.35rem;
}

/* ============================================================================
   Printable Fee Receipt Styles
   ============================================================================ */
.receipt-container {
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 2px solid #cbd5e0;
  padding: 2.8rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
}

@media print {
  body * {
    visibility: hidden;
  }
  .receipt-container, .receipt-container * {
    visibility: visible;
  }
  .receipt-container {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    border: none;
    box-shadow: none;
    padding: 0;
  }
  .no-print {
    display: none !important;
  }
}

/* ============================================================================
   Enhanced Public Website Modern Styling & Animations
   ============================================================================ */
@keyframes pulseGlow {
  0%, 100% {
    box-shadow: 0 0 15px rgba(217, 119, 6, 0.35);
  }
  50% {
    box-shadow: 0 0 30px rgba(217, 119, 6, 0.7);
  }
}

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

.floating-element {
  animation: floatAnim 4s ease-in-out infinite;
}

.pulse-glow {
  animation: pulseGlow 2.5s infinite;
}

.glass-card-dark {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
}

.glass-card-light {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--radius-lg);
}

.hover-lift {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}
.hover-lift:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 35px -8px rgba(15, 23, 42, 0.12) !important;
}

.stat-counter-box {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.4rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.stat-counter-box:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}
.stat-counter-number {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 0.35rem;
}

.testimonial-card {
  background: #ffffff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 2.2rem 1.8rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.testimonial-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.gradient-text-gold {
  background: linear-gradient(135deg, #f59e0b, #d97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ============================================================================
   Mobile & Responsive Adjustments
   ============================================================================ */
@media (max-width: 991px) {
  .erp-sidebar {
    position: fixed;
    height: 100vh;
    left: -275px;
  }
  .erp-sidebar.show {
    left: 0;
  }
  .erp-sidebar-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1030;
  }
}
