/* ==========================================================================
   GLOBAL THEME VARIABLES (Change colors & effects here for all pages)
   ========================================================================== */
:root {
  /* Brand Colors (Primary Blue Theme) */
  --primary-color: #0d6efd;         /* Main primary blue */
  --primary-hover: #0b5ed7;         /* Hover state for primary buttons */
  --primary-glow: rgba(13, 110, 253, 0.35);

  --secondary-color: #0f172a;       /* Dark slate for admin/dark buttons */
  --secondary-hover: #1e293b;

  /* Accent Colors */
  --danger-color: #dc3545;
  --success-color: #198754;

  /* Card & Glassmorphism Properties */
  --glass-bg: rgba(255, 255, 255, 0.94);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-blur: 14px;
  --glass-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);

  /* Background & Overlay */
  --bg-overlay-color: rgba(15, 23, 42, 0.65);
  --bg-overlay-color2: rgba(15, 23, 42, 0.95);
  --ambient-glow-primary: rgba(13, 110, 253, 0.2);  /* Blue ambient light */
  --ambient-glow-secondary: rgba(59, 130, 246, 0.15); /* Light blue glow */
}

/* ==========================================================================
   GLOBAL BASE STYLES
   ========================================================================== */
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: url('../images/school-sdk-building.jpg') no-repeat center center fixed;
  background-size: cover;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

/* Background Overlay */
.overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-overlay-color);
  z-index: 0;
}
.overlay2 {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: var(--bg-overlay-color2);
  z-index: 0;
}

/* Soft Ambient Glows (Smooth CSS performance) */
.ambient-glow-1 {
  position: fixed;
  top: 15%;
  left: 20%;
  width: 350px;
  height: 350px;
  background: var(--primary-color);
  filter: blur(120px);
  opacity: 0.25;
  pointer-events: none;
  z-index: 1;
}

.ambient-glow-2 {
  position: fixed;
  bottom: 15%;
  right: 20%;
  width: 350px;
  height: 350px;
  background: var(--ambient-glow-secondary);
  filter: blur(120px);
  opacity: 0.2;
  pointer-events: none;
  z-index: 1;
}

/* Layout Wrapper */
.main-wrapper {
  position: relative;
  z-index: 2;
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

/* Glassmorphism Containers (Cards, Modals) */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur));
  -webkit-backdrop-filter: blur(var(--glass-blur));
  border: 1px solid var(--glass-border);
  border-radius: 24px;
  box-shadow: var(--glass-shadow);
  padding: 2.5rem;
  width: 100%;
}

/* Universal Button Styles */
.btn-primary-theme {
  background-color: var(--primary-color) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 4px 14px var(--primary-glow);
  transition: all 0.2s ease;
}

.btn-primary-theme:hover {
  background-color: var(--primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px var(--primary-glow);
}

.btn-secondary-theme {
  background-color: var(--secondary-color) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn-secondary-theme:hover {
  background-color: var(--secondary-hover) !important;
  transform: translateY(-2px);
}

/* Global Footer */
.portal-footer {
  flex-shrink: 0;
      width: 100%;
      background: #0d47a1; /* Beaconhouse Blue */
      color: #ffffff;
      text-align: center;
      padding: 18px 10px;
      position: relative;
      z-index: 10;
      box-shadow: 0 -0.5rem 1.5rem rgba(0,0,0,0.3);
      font-size: 0.9rem;
}

.portal-footer strong {
  color: #fbc02d; /* Gold Accent */
}