/* ========================================
   EMS EDUCATION PLATFORM - CENTRAL THEME
   ======================================== */

/* ==========================================================================
   1. COLOR VARIABLES (CSS Custom Properties)
   ========================================================================== */

:root {
  /* Brand Colors - Official SSS Tech Colors */
  --color-primary-orange: #FF8C42;      /* Main brand color - headers, buttons, CTAs */
  --color-accent-green: #1F3C2E;        /* Secondary/support - sidebars, hovers, backgrounds */
  --color-accent-gold: #E0C15A;         /* Instructor highlights and secondary focus */
  
  /* Legacy orange colors for backwards compatibility */
  --color-secondary-orange: #FF8C42;    /* Alias for primary */
  --color-orange-light: #FF8C42;        /* Alias for primary */
  
  /* Extended Accent Colors */
  --color-teal: #1B7F8A;                /* Instructor dashboards, calm accents, status indicators */
  --color-teal-light: #1B7F8A;          /* Cool teal */
  --color-sky-blue: #5AB9EA;            /* Student UI, info cards, light modules */
  --color-warm-tan: #C29D66;            /* Subtle button backgrounds or hover areas */
  --color-muted-sand: #D9CBB3;          /* Section backgrounds or light UI separators */
  
  /* Feedback & Status Colors */
  --color-success-green: #2ECC71;       /* Confirmations, positive outcomes */
  --color-success-neon: #2ECC71;        /* Alias for success */
  --color-warning-yellow: #FFC107;      /* Pending actions, caution notices */
  --color-danger-red: #FF0000;          /* Critical errors or alerts */
  --color-danger-dark: #FF0000;         /* Alias for danger */
  --color-info-blue: #007ACC;           /* Informational boxes, tips, status notes */
  
  /* Neutral Colors */
  --color-text-primary: #4B4B4B;        /* Body text on light backgrounds */
  --color-text-secondary: #4B4B4B;      /* Dark text */
  --color-text-muted: #B3B3B3;          /* Muted text for less emphasis */
  --color-text-dark: #4B4B4B;           /* Dark text */
  --color-text-light: #E5E5E5;          /* Text on dark backgrounds */
  --color-white: #ffffff;               /* Pure white */
  --color-bg-light: #F7F8F9;            /* Default background for light mode */
  --color-bg-lighter: #EAEAEA;          /* Card background - panels, forms, dashboard cards */
  --color-bg-dark: #111111;             /* Base for dark mode */
  --color-bg-dark-secondary: #2B2B2B;   /* Secondary dark background */
  --color-border: #B3B3B3;              /* Subtle separators between UI sections */
  --color-card-bg: #EAEAEA;             /* Dedicated card background color */
  
  /* Bootstrap Colors (for compatibility) */
  --color-bootstrap-primary: #007ACC;
  --color-bootstrap-primary-dark: #005a99;
  
  /* Gradient Variables */
  --gradient-signal: linear-gradient(135deg, #FF8C42 0%, #E0C15A 100%);      /* Hero sections, banners, login screens */
  --gradient-ignite: linear-gradient(135deg, #1F3C2E 0%, #FF0000 100%);      /* Button hovers, progress bars, active states */
  --gradient-academy: linear-gradient(135deg, #5AB9EA 0%, #E0C15A 100%);     /* Student or education-themed sections */
  --gradient-system: linear-gradient(135deg, #2B2B2B 0%, #1B7F8A 100%);      /* Dark UI headers or app bars */
  --gradient-orange: linear-gradient(135deg, #FF8C42 0%, #E0C15A 100%);      /* Standard orange gradient */
  
  /* Spacing */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2rem;
  --spacing-xxl: 3rem;
  
  /* Border Radius */
  --radius-sm: 5px;
  --radius-md: 10px;
  --radius-lg: 15px;
  --radius-xl: 20px;
  --radius-pill: 50px;
  
  /* Shadows */
  --shadow-sm: 0 2px 4px rgba(0,0,0,0.1);
  --shadow-md: 0 4px 6px rgba(0,0,0,0.1);
  --shadow-lg: 0 4px 8px rgba(0,0,0,0.15);
  --shadow-xl: 0 8px 16px rgba(0,0,0,0.2);
  --shadow-inset: inset 0 2px 4px rgba(0,0,0,0.1);
  
  /* Transitions */
  --transition-fast: 0.15s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==========================================================================
   2. BUTTONS
   ========================================================================== */

.btn-primary-orange {
  background: var(--color-primary-orange);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
  font-weight: 500;
}

.btn-primary-orange:hover {
  background: var(--color-secondary-orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: white;
  text-decoration: none;
}

.btn-secondary-orange {
  background: var(--color-secondary-orange);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  cursor: pointer;
}

.btn-success-green {
  background: var(--color-success-green);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.btn-success-green:hover {
  background: #218838;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-danger-red {
  background: var(--color-danger-red);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.btn-danger-red:hover {
  background: var(--color-danger-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.btn-accent-green {
  background: var(--color-accent-green);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.btn-accent-green:hover {
  background: #152b21;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: white;
}

.btn-accent-gold {
  background: var(--color-accent-gold);
  border: none;
  color: #4B4B4B;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
  font-weight: 600;
}

.btn-accent-gold:hover {
  background: #d4b24a;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: #4B4B4B;
}

.btn-teal {
  background: var(--color-teal);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.btn-teal:hover {
  background: #166871;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: white;
}

.btn-sky-blue {
  background: var(--color-sky-blue);
  border: none;
  color: white;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-normal);
}

.btn-sky-blue:hover {
  background: #3ea7d9;
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  color: white;
}

/* ==========================================================================
   3. HEADERS & PAGE SECTIONS
   ========================================================================== */

.page-header {
  background: var(--color-primary-orange);
  color: white;
  padding: var(--spacing-xl) 0;
  margin-bottom: var(--spacing-xl);
}

.page-header-gradient {
  background: linear-gradient(135deg, var(--color-primary-orange) 0%, var(--color-orange-light) 100%);
  color: white;
  padding: var(--spacing-xl) 0;
  margin-bottom: var(--spacing-xl);
}

.page-title {
  color: white;
  font-size: 2.5rem;
  font-weight: bold;
  margin: 0;
}

.section-title {
  color: var(--color-primary-orange);
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: var(--spacing-md);
}

.section-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-xl);
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-normal);
}

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

/* ==========================================================================
   4. BADGES & LABELS
   ========================================================================== */

.badge-grade-excellent {
  background: var(--color-success-green);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-block;
}

.badge-grade-good {
  background: var(--color-warning-yellow);
  color: #333;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-block;
}

.badge-grade-poor {
  background: var(--color-danger-red);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-block;
}

.badge-grade-zero {
  background: var(--color-text-muted);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: 0.875rem;
  display: inline-block;
}

/* ==========================================================================
   5. PROGRESS BARS
   ========================================================================== */

.progress-container {
  width: 100%;
  height: 40px;
  background: var(--color-bg-lighter);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-inset);
}

.progress-bar-student {
  height: 100%;
  background: linear-gradient(90deg, var(--color-secondary-orange) 0%, #ff7849 100%);
  transition: width 1s ease-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  box-shadow: 0 2px 8px rgba(226, 98, 34, 0.4);
}

.progress-bar-class {
  height: 100%;
  background: linear-gradient(90deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
  transition: width 1s ease-out;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 12px;
  box-shadow: 0 2px 8px rgba(27, 108, 131, 0.4);
}

.progress-bar-module {
  background: linear-gradient(90deg, var(--color-teal) 0%, var(--color-teal-light) 100%);
  transition: width 0.8s ease-out;
}

.progress-text {
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
  z-index: 10;
}

/* ==========================================================================
   6. CARDS & CONTAINERS
   ========================================================================== */

.classroom-info {
  background: var(--color-bg-light);
  border-left: 5px solid var(--color-primary-orange);
  padding: var(--spacing-md);
  margin-bottom: var(--spacing-xl);
}

.module-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: var(--spacing-xl);
  margin-bottom: var(--spacing-lg);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-normal);
}

.module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}

.quiz-card {
  background: var(--color-bg-light);
  padding: var(--spacing-xl);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.quote-card {
  text-align: center;
  padding: var(--spacing-md) var(--spacing-lg);
  background: linear-gradient(135deg, rgba(255, 193, 7, 0.08) 0%, rgba(255, 152, 0, 0.04) 100%);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-warning-yellow);
  margin: var(--spacing-xl) 0 var(--spacing-lg);
  box-shadow: var(--shadow-sm);
}

/* ==========================================================================
   7. FORMS & INPUTS
   ========================================================================== */

.form-control-ems {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: var(--spacing-sm) var(--spacing-md);
  transition: border-color var(--transition-fast);
  width: 100%;
}

.form-control-ems:focus {
  border-color: var(--color-primary-orange);
  box-shadow: 0 0 0 0.2rem rgba(255, 136, 0, 0.25);
  outline: none;
}

.form-label-ems {
  font-weight: 600;
  color: var(--color-text-secondary);
  margin-bottom: var(--spacing-sm);
}

/* ==========================================================================
   8. UTILITY CLASSES - BORDERS
   ========================================================================== */

.border-left-orange {
  border-left: 5px solid var(--color-primary-orange);
}

.border-left-green {
  border-left: 5px solid var(--color-accent-green);
}

.border-left-gold {
  border-left: 5px solid var(--color-accent-gold);
}

.border-left-teal {
  border-left: 5px solid var(--color-teal);
}

.border-left-sky-blue {
  border-left: 5px solid var(--color-sky-blue);
}

.border-left-success {
  border-left: 5px solid var(--color-success-green);
}

.border-left-danger {
  border-left: 5px solid var(--color-danger-red);
}

.border-orange {
  border: 2px solid var(--color-primary-orange);
}

.border-green {
  border: 2px solid var(--color-accent-green);
}

.border-gold {
  border: 2px solid var(--color-accent-gold);
}

.border-teal {
  border: 2px solid var(--color-teal);
}

.border-sky-blue {
  border: 2px solid var(--color-sky-blue);
}

/* ==========================================================================
   9. UTILITY CLASSES - BACKGROUNDS
   ========================================================================== */

.bg-orange {
  background: var(--color-primary-orange);
}

.bg-orange-gradient {
  background: var(--gradient-signal);  /* Signal gradient: orange to gold */
}

.bg-signal-gradient {
  background: var(--gradient-signal);  /* Hero sections, banners, login screens */
}

.bg-ignite-gradient {
  background: var(--gradient-ignite);  /* Button hovers, progress bars, active states */
}

.bg-academy-gradient {
  background: var(--gradient-academy);  /* Student or education-themed sections */
}

.bg-system-gradient {
  background: var(--gradient-system);  /* Dark UI headers or app bars */
}

.bg-teal {
  background: var(--color-teal);
}

.bg-green {
  background: var(--color-accent-green);
}

.bg-gold {
  background: var(--color-accent-gold);
}

.bg-sky-blue {
  background: var(--color-sky-blue);
}

.bg-warm-tan {
  background: var(--color-warm-tan);
}

.bg-muted-sand {
  background: var(--color-muted-sand);
}

.bg-card {
  background: var(--color-card-bg);
}

.bg-light-gray {
  background: var(--color-bg-light);
}

.bg-lighter-gray {
  background: var(--color-bg-lighter);
}

.bg-dark {
  background: var(--color-bg-dark);
}

.bg-dark-secondary {
  background: var(--color-bg-dark-secondary);
}

.bg-white {
  background: white;
}

.bg-success {
  background: var(--color-success-green);
}

.bg-danger {
  background: var(--color-danger-red);
}

.bg-warning {
  background: var(--color-warning-yellow);
}

/* Bootstrap Override - bg-light to use our brand color */
.bg-light {
  background-color: var(--color-bg-light) !important;
}

/* ==========================================================================
   10. UTILITY CLASSES - TEXT COLORS
   ========================================================================== */

.text-orange {
  color: var(--color-primary-orange);
}

.text-green {
  color: var(--color-accent-green);
}

.text-gold {
  color: var(--color-accent-gold);
}

.text-teal {
  color: var(--color-teal);
}

.text-sky-blue {
  color: var(--color-sky-blue);
}

.text-warm-tan {
  color: var(--color-warm-tan);
}

.text-muted-gray {
  color: var(--color-text-muted);
}

.text-dark-gray {
  color: var(--color-text-dark);
}

.text-light {
  color: var(--color-text-light);
}

.text-white {
  color: white;
}

.text-success {
  color: var(--color-success-green);
}

.text-danger {
  color: var(--color-danger-red);
}

.text-warning {
  color: var(--color-warning-yellow);
}

.text-info {
  color: var(--color-info-blue);
}

/* ==========================================================================
   11. UTILITY CLASSES - SPACING (MARGINS)
   ========================================================================== */

.m-0 { margin: 0; }
.m-xs { margin: var(--spacing-xs); }
.m-sm { margin: var(--spacing-sm); }
.m-md { margin: var(--spacing-md); }
.m-lg { margin: var(--spacing-lg); }
.m-xl { margin: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-xs { margin-top: var(--spacing-xs); }
.mt-sm { margin-top: var(--spacing-sm); }
.mt-md { margin-top: var(--spacing-md); }
.mt-lg { margin-top: var(--spacing-lg); }
.mt-xl { margin-top: var(--spacing-xl); }
.mt-xxl { margin-top: var(--spacing-xxl); }

.mb-0 { margin-bottom: 0; }
.mb-xs { margin-bottom: var(--spacing-xs); }
.mb-sm { margin-bottom: var(--spacing-sm); }
.mb-md { margin-bottom: var(--spacing-md); }
.mb-lg { margin-bottom: var(--spacing-lg); }
.mb-xl { margin-bottom: var(--spacing-xl); }
.mb-xxl { margin-bottom: var(--spacing-xxl); }

.ml-0 { margin-left: 0; }
.ml-xs { margin-left: var(--spacing-xs); }
.ml-sm { margin-left: var(--spacing-sm); }
.ml-md { margin-left: var(--spacing-md); }
.ml-lg { margin-left: var(--spacing-lg); }
.ml-xl { margin-left: var(--spacing-xl); }

.mr-0 { margin-right: 0; }
.mr-xs { margin-right: var(--spacing-xs); }
.mr-sm { margin-right: var(--spacing-sm); }
.mr-md { margin-right: var(--spacing-md); }
.mr-lg { margin-right: var(--spacing-lg); }
.mr-xl { margin-right: var(--spacing-xl); }

/* ==========================================================================
   12. UTILITY CLASSES - SPACING (PADDING)
   ========================================================================== */

.p-0 { padding: 0; }
.p-xs { padding: var(--spacing-xs); }
.p-sm { padding: var(--spacing-sm); }
.p-md { padding: var(--spacing-md); }
.p-lg { padding: var(--spacing-lg); }
.p-xl { padding: var(--spacing-xl); }

.pt-0 { padding-top: 0; }
.pt-xs { padding-top: var(--spacing-xs); }
.pt-sm { padding-top: var(--spacing-sm); }
.pt-md { padding-top: var(--spacing-md); }
.pt-lg { padding-top: var(--spacing-lg); }
.pt-xl { padding-top: var(--spacing-xl); }

.pb-0 { padding-bottom: 0; }
.pb-xs { padding-bottom: var(--spacing-xs); }
.pb-sm { padding-bottom: var(--spacing-sm); }
.pb-md { padding-bottom: var(--spacing-md); }
.pb-lg { padding-bottom: var(--spacing-lg); }
.pb-xl { padding-bottom: var(--spacing-xl); }

.pl-0 { padding-left: 0; }
.pl-xs { padding-left: var(--spacing-xs); }
.pl-sm { padding-left: var(--spacing-sm); }
.pl-md { padding-left: var(--spacing-md); }
.pl-lg { padding-left: var(--spacing-lg); }
.pl-xl { padding-left: var(--spacing-xl); }

.pr-0 { padding-right: 0; }
.pr-xs { padding-right: var(--spacing-xs); }
.pr-sm { padding-right: var(--spacing-sm); }
.pr-md { padding-right: var(--spacing-md); }
.pr-lg { padding-right: var(--spacing-lg); }
.pr-xl { padding-right: var(--spacing-xl); }

/* ==========================================================================
   13. UTILITY CLASSES - BORDER RADIUS
   ========================================================================== */

.rounded-0 { border-radius: 0; }
.rounded-sm { border-radius: var(--radius-sm); }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-pill { border-radius: var(--radius-pill); }
.rounded-circle { border-radius: 50%; }

/* ==========================================================================
   14. UTILITY CLASSES - SHADOWS
   ========================================================================== */

.shadow-none { box-shadow: none; }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.shadow-inset { box-shadow: var(--shadow-inset); }

/* ==========================================================================
   15. ANIMATIONS & TRANSITIONS
   ========================================================================== */

.fade-in {
  animation: fadeIn var(--transition-slow);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slide-up {
  animation: slideUp var(--transition-normal);
}

@keyframes slideUp {
  from { transform: translateY(20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.slide-down {
  animation: slideDown var(--transition-normal);
}

@keyframes slideDown {
  from { transform: translateY(-20px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.transition-fast { transition: all var(--transition-fast); }
.transition-normal { transition: all var(--transition-normal); }
.transition-slow { transition: all var(--transition-slow); }

/* ==========================================================================
   16. UTILITY CLASSES - DISPLAY & FLEXBOX
   ========================================================================== */

.d-none { display: none; }
.d-block { display: block; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }
.d-flex { display: flex; }

.flex-row { flex-direction: row; }
.flex-column { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-nowrap { flex-wrap: nowrap; }

.justify-start { justify-content: flex-start; }
.justify-center { justify-content: center; }
.justify-end { justify-content: flex-end; }
.justify-between { justify-content: space-between; }
.justify-around { justify-content: space-around; }

.align-start { align-items: flex-start; }
.align-center { align-items: center; }
.align-end { align-items: flex-end; }
.align-stretch { align-items: stretch; }

.gap-xs { gap: var(--spacing-xs); }
.gap-sm { gap: var(--spacing-sm); }
.gap-md { gap: var(--spacing-md); }
.gap-lg { gap: var(--spacing-lg); }
.gap-xl { gap: var(--spacing-xl); }

/* ==========================================================================
   17. UTILITY CLASSES - TEXT FORMATTING
   ========================================================================== */

.text-left { text-align: left; }
.text-center { text-align: center; }
.text-right { text-align: right; }

.font-weight-normal { font-weight: normal; }
.font-weight-bold { font-weight: bold; }
.font-weight-bolder { font-weight: 700; }

.font-italic { font-style: italic; }

.text-uppercase { text-transform: uppercase; }
.text-lowercase { text-transform: lowercase; }
.text-capitalize { text-transform: capitalize; }

.text-decoration-none { text-decoration: none; }
.text-decoration-underline { text-decoration: underline; }

/* ==========================================================================
   18. RESPONSIVE UTILITIES
   ========================================================================== */

@media (max-width: 768px) {
  .section-card {
    padding: var(--spacing-md);
  }
  
  .page-header {
    padding: var(--spacing-md) 0;
  }
  
  .module-card {
    padding: var(--spacing-md);
  }
  
  .quote-card {
    padding: var(--spacing-sm) var(--spacing-md);
  }
}

@media (max-width: 576px) {
  :root {
    --spacing-xl: 1.5rem;
    --spacing-xxl: 2rem;
  }
  
  .page-title {
    font-size: 2rem;
  }
  
  .section-title {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   19. ACCESSIBILITY
   ========================================================================== */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

.focus-visible:focus {
  outline: 2px solid var(--color-primary-orange);
  outline-offset: 2px;
}

/* ==========================================================================
   20. COMPONENT-SPECIFIC CLASSES
   ========================================================================== */

/* Back Button */
.back-button {
  background: var(--color-text-muted);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  color: white;
  text-decoration: none;
  display: inline-block;
  transition: background var(--transition-fast);
}

.back-button:hover {
  background: #5a6268;
  color: white;
  text-decoration: none;
}

/* Alert/Message Boxes */
.alert-success {
  background: var(--color-success-green);
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
}

.alert-danger {
  background: var(--color-danger-red);
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
}

.alert-warning {
  background: var(--color-warning-yellow);
  color: #333;
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
}

.alert-info {
  background: var(--color-info-blue);
  color: white;
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  margin-bottom: var(--spacing-md);
}

/* Loading Spinner */
.spinner {
  border: 3px solid var(--color-bg-lighter);
  border-top: 3px solid var(--color-primary-orange);
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ==========================================================================
   21. GLOBAL BODY STYLES
   ========================================================================== */

/* Site-wide body background - overrides all inline styles */
body {
  background: var(--color-bg-light);   /* #F7F8F9 */
  min-height: 100vh;
}

/* ==========================================================================
   END OF THEME FILE
   ========================================================================== */
