:root {
  /* Colors */
  --primary: #0066cc;
  --primary-dark: #0052a3;
  --text: #1f2937;
  --text-light: #4b5563;
  --text-dark: #111827;
  --bg: #ffffff;
  --bg-gray: #f8f9fa;
  --border: #e0e0e0;
  --success: #28a745;
  --warning: #ff9800;
  --danger: #dc3545;
  --purple: #7c2ce2;

  /* Spacing */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 20px;

  /* Typography */
  --font-sm: 13px;
  --font-base: 14px;
  --font-lg: 16px;

  /* Borders */
  --radius: 4px;
  --radius-lg: 8px;

  /* Transitions */
  --transition: 0.2s ease;
}

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

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: var(--font-base);
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

main {
  display: block;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.skip-link:focus {
  left: var(--space-lg);
  top: var(--space-lg);
  width: auto;
  height: auto;
  padding: var(--space-sm) var(--space-md);
  background: var(--bg);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  z-index: 1000;
  text-decoration: none;
}

.flex {
  display: flex;
}

.inline-flex {
  display: inline-flex;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-1 {
  flex: 1;
}

.min-w-150 {
  min-width: 150px;
}

.min-w-200 {
  min-width: 200px;
}

.grid {
  display: grid;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.items-center {
  align-items: center;
}

.items-start {
  align-items: flex-start;
}

.items-end {
  align-items: flex-end;
}

.justify-between {
  justify-content: space-between;
}

.justify-center {
  justify-content: center;
}

.gap-xs {
  gap: var(--space-xs);
}

.gap-sm {
  gap: var(--space-sm);
}

.gap-md {
  gap: var(--space-md);
}

.gap-lg {
  gap: var(--space-lg);
}

.gap-xl {
  gap: var(--space-xl);
}

.mt-xs {
  margin-top: var(--space-xs);
}

.mt-sm {
  margin-top: var(--space-sm);
}

.mt-md {
  margin-top: var(--space-md);
}

.mt-lg {
  margin-top: var(--space-lg);
}

.mt-xl {
  margin-top: var(--space-xl);
}

.mb-xs {
  margin-bottom: var(--space-xs);
}

.mb-sm {
  margin-bottom: var(--space-sm);
}

.mb-md {
  margin-bottom: var(--space-md);
}

.mb-lg {
  margin-bottom: var(--space-lg);
}

.mb-xl {
  margin-bottom: var(--space-xl);
}

.m-0 {
  margin: 0;
}

.p-sm {
  padding: var(--space-sm);
}

.p-md {
  padding: var(--space-md);
}

.p-lg {
  padding: var(--space-lg);
}

.p-xl {
  padding: var(--space-xl);
}

.px-sm {
  padding-left: var(--space-sm);
  padding-right: var(--space-sm);
}

.px-md {
  padding-left: var(--space-md);
  padding-right: var(--space-md);
}

.px-lg {
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.py-sm {
  padding-top: var(--space-sm);
  padding-bottom: var(--space-sm);
}

.py-md {
  padding-top: var(--space-md);
  padding-bottom: var(--space-md);
}

.py-lg {
  padding-top: var(--space-lg);
  padding-bottom: var(--space-lg);
}

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

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

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

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

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

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

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

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

.text-gold {
  color: #ffd700;
}

.text-silver {
  color: #c0c0c0;
}

.text-bronze {
  color: #cd7f32;
}

.text-sm {
  font-size: var(--font-sm);
}

.text-lg {
  font-size: var(--font-lg);
}

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

.font-semibold {
  font-weight: 600;
}

.font-bold {
  font-weight: 600;
}

.rounded {
  border-radius: var(--radius);
}

.rounded-lg {
  border-radius: var(--radius-lg);
}

.shadow-sm {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.w-full {
  width: 100%;
}

.max-w-md {
  max-width: 400px;
}

.max-w-lg {
  max-width: 600px;
}

.hidden {
  display: none;
}

.inline-form {
  display: inline;
  margin: 0;
}
