:root {
  --primary: #37634b;
  --primary-dark: #294e39;
  --primary-light: #60866b;
  --primary-ghost: rgba(55, 99, 75, .09);
  --og-50: #f0f5ef;
  --og-100: #dce8dc;
  --og-200: #bfd3c1;
  --og-300: #9bb89e;
  --og-400: #789a7d;
  --og-500: #60866b;
  --og-600: #4d7359;
  --og-700: #3c6249;
  --og-800: #31523d;
  --og-900: #294536;
  --neutral-50: #f6f7f4;
  --neutral-100: #edf0eb;
  --neutral-200: #e1e6df;
  --neutral-300: #cbd3ca;
  --neutral-400: #9aa69b;
  --neutral-500: #758178;
  --neutral-600: #59665d;
  --neutral-700: #3d4c42;
  --neutral-800: #293a30;
  --neutral-900: #1c2b22;
  --accent: #527b61;
  --accent-dark: #3c644a;
  --accent-ghost: rgba(82, 123, 97, .1);
  --success: #39734f;
  --info: #527386;
  --warning: #98743b;
  --danger: #a94d48;
  --radius: 5px;
  --radius-md: 7px;
  --radius-lg: 9px;
  --radius-xl: 12px;
  --shadow-sm: 0 1px 3px rgba(31, 49, 36, .045);
  --shadow: 0 3px 10px rgba(31, 49, 36, .055);
  --shadow-lg: 0 8px 24px rgba(31, 49, 36, .09);
  --shadow-xl: 0 16px 40px rgba(31, 49, 36, .13);
  --transition: all .18s ease;
}

html {
  scroll-padding-top: 80px;
  text-size-adjust: 100%;
}

body {
  background: #f6f7f4;
  color: #293a30;
  font-family: 'Outfit', sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1,
h2,
h3,
h4,
h5 {
  color: #293a30;
  letter-spacing: -.02em;
  line-height: 1.3;
}

h1 { font-size: clamp(1.75rem, 2.4vw, 2.25rem); font-weight: 700; }
h2 { font-size: clamp(1.35rem, 1.8vw, 1.65rem); font-weight: 650; }
h3 { font-size: 1.2rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
h5 { font-size: .95rem; font-weight: 600; }

p { line-height: 1.75; margin-bottom: 1em; }

a {
  text-underline-offset: 3px;
}

a:not([class]):hover {
  text-decoration-thickness: 1px;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid rgba(82, 123, 97, .35);
  outline-offset: 2px;
}

button,
input,
select,
textarea {
  font: inherit;
}

.container {
  width: min(100% - 32px, 1240px);
  padding-right: 0;
  padding-left: 0;
}

.card,
.course-card,
.exam-card {
  border: 1px solid #e2e7e0;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(31, 49, 36, .035);
}

.card-header {
  border-bottom-color: #e9ede7;
}

.card-footer {
  border-top-color: #e9ede7;
  background: #fafbf9;
}

.course-card,
.exam-card {
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.course-card:hover,
.exam-card:hover {
  transform: translateY(-2px);
  border-color: #cbd8ca;
  box-shadow: 0 8px 20px rgba(31, 49, 36, .07);
}

.btn {
  min-height: 36px;
  padding: 7px 13px;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .16s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
}

.btn-primary {
  background: #37634b;
  border-color: #37634b;
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: #294e39;
  border-color: #294e39;
  color: #fff;
}

.btn-secondary {
  background: #f4f6f2;
  border-color: #dfe5dd;
  color: #405147;
}

.btn-secondary:hover:not(:disabled) {
  background: #eaf0e8;
  border-color: #cbd7c9;
  color: #293a30;
}

.btn-outline {
  border-color: #cbd7c9;
  color: #37634b;
}

.btn-outline:hover:not(:disabled) {
  background: #f0f5ef;
}

.btn-sm {
  min-height: 32px;
  padding: 5px 10px;
  font-size: .84rem;
}

.badge {
  border-radius: 4px;
  font-size:.82rem;
  font-weight: 650;
  letter-spacing: .025em;
}

.form-control {
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid #d7dfd6;
  border-radius: 6px;
  background: #fff;
  color: #293a30;
  box-shadow: none;
}

.form-control:focus {
  border-color: #78967b;
  box-shadow: 0 0 0 3px rgba(82, 123, 97, .12);
}

.form-label {
  color: #48584d;
  font-size: .8rem;
  font-weight: 600;
}

.form-hint {
  color: #7a867d;
  font-size: .81rem;
}

.data-table {
  font-size: .82rem;
}

.data-table th {
  padding: 10px 13px;
  border-bottom: 1px solid #e4e9e2;
  background: #f7f8f5;
  color: #66736a;
  font-size:.83rem;
  font-weight: 650;
  letter-spacing: .065em;
}

.data-table td {
  padding: 10px 13px;
  border-bottom-color: #edf0eb;
}

.data-table tr:hover td {
  background: #f8faf7;
}

.alert {
  padding: 11px 14px;
  border-radius: 6px;
  font-size: .84rem;
}

.modal {
  border: 1px solid #e2e7e0;
  border-radius: 9px;
  box-shadow: 0 16px 42px rgba(28, 43, 34, .16);
}

.modal-header,
.modal-footer {
  border-color: #e7ebe5;
}

.topbar {
  border-bottom-color: #e2e7e0;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 1px 5px rgba(28, 43, 34, .04);
  backdrop-filter: blur(12px);
}

.topbar-title {
  color: #293a30;
  font-weight: 600;
}

.topbar-avatar {
  background: #37634b;
}

.page-content {
  background: #f6f7f4;
}

.page-header {
  margin-bottom: 20px;
}

.page-header h1 {
  color: #293a30;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 620;
  letter-spacing: -.035em;
}

.page-header p {
  color: #768178;
  font-size: .84rem;
}

.section-header {
  border-bottom: 1px solid #e0e6de;
}

.section-header h2 {
  color: #304338;
  font-size: .98rem;
  font-weight: 620;
}

.dropdown-menu,
.profile-menu {
  border: 1px solid #e2e7e0;
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(28, 43, 34, .1);
}

.sidebar-nav a {
  border-radius: 5px;
}

.sidebar-nav a.active {
  background: #eef4ed;
  color: #37634b;
}

.participant-sidebar {
  background: #fff;
  border-right-color: #e3e8e1;
}

.participant-sidebar .sidebar-section-label {
  color: #849087;
}

.participant-sidebar .sidebar-footer {
  border-top-color: #e8ece6;
  background: #fff;
}

.footer {
  background: #21372c;
}

.footer-link {
  color: #c0cbc1;
}

.footer-link:hover {
  color: #e4eadf;
}

.footer-divider {
  border-top-color: rgba(255, 255, 255, .13);
}

@media (max-width: 760px) {
  .container {
    width: min(100% - 24px, 1240px);
  }

  .page-header {
    margin-bottom: 16px;
  }

  .card-header {
    padding: 12px 14px;
  }

  .card-body {
    padding: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
