:root {
  /* Classic Moose Brand Colors */
  --primary: #003B70;
  /* Deep, solid Moose Blue */
  --secondary: #C49A00;
  /* Richer, traditional Gold */
  --primary-light: #005096;

  /* Text Colors */
  --text-dark: #1E293B;
  /* Soft black for light sections */
  --text-muted: #64748B;
  /* Soft gray-blue for secondary text */
  --text-light: #F8FAFC;
  /* Off-white for dark sections */
  --text-light-muted: #CBD5E1;
  /* Muted white for dark sections */

  /* Backgrounds */
  --bg-page: #E2E8F0;
  /* Dimmer gray-blue background to soften the look */
  --bg-surface: #F8FAFC;
  /* Slightly off-white for cards */
  --bg-dark-section: #0F172A;
  /* Deep slate, almost navy, for the hero */

  /* Borders & Accents */
  --border-subtle: #E2E8F0;

  /* Typography */
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Inter', sans-serif;
}

body {
  background-color: var(--bg-page);
  color: var(--text-dark);
  font-family: var(--font-body);
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-heading);
  color: inherit;
  font-weight: 700;
}

a,
.btn-link {
  color: var(--secondary);
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #f1cf5e;
  text-decoration: none;
}

.text-muted {
  color: var(--text-muted) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.text-secondary {
  color: var(--secondary) !important;
}

/* Base Buttons */
.btn-primary {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  /* Slightly less round, more classic */
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.15);
  color: white;
}

.btn-secondary {
  background: transparent;
  color: var(--text-dark);
  border: 2px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0.75rem 1.5rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.btn-secondary:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: white;
}

.content {
  padding: 2rem;
}

/* Blazor Validation Fixes */
.valid.modified:not([type=checkbox]) {
  outline: 1px solid #26b050;
}

.invalid {
  outline: 1px solid #e50000;
}

.validation-message {
  color: #e50000;
}

.blazor-error-boundary {
  background: rgba(229, 0, 0, 0.1);
  border: 1px solid #e50000;
  padding: 1rem;
  border-radius: 8px;
  color: white;
}

/* Global Top Nav Menu */
.top-nav-menu .nav-link {
  color: var(--text-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 1.1rem;
  padding: 0.5rem 0.5rem;
  transition: all 0.2s ease;
  position: relative;
}

.top-nav-menu .nav-link:hover,
.top-nav-menu .nav-link.active {
  color: var(--secondary);
}

.top-nav-menu .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--secondary);
  border-radius: 2px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}