@import "https://cdn.jsdelivr.net/npm/@fontsource-variable/geist/index.min.css";

:root {
  --color-unsia-blue: #10487a;
  --color-unsia-blue-dark: #0b3459;
  --color-unsia-blue-light: #e8f1f8;
  --color-unsia-yellow: #fdd327;
  --color-unsia-yellow-hover: #e5ba12;
  --color-unsia-yellow-light: #fff9e6;

  --primary: #10487a;
  --primary-dark: #0b3459;
  --primary-light: #e8f1f8;
  --secondary: #fdd327;
  --secondary-hover: #e5ba12;

  --background: #f8fafc;
  --surface: #ffffff;
  --foreground: #0f172a;
  --muted: #64748b;
  --border: #e2e8f0;
}

html.dark {
  --primary: #387cbd;
  --primary-dark: #2e6ea9;
  --background: #091e36;
  --surface: #0e2a4a;
  --foreground: #f8fafc;
  --muted: #94a3b8;
  --border: rgba(255, 255, 255, 0.12);
}

body {
  font-family: "Geist Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  margin: 0;
  transition: background-color 0.2s ease, color 0.2s ease;
}

/* Custom UNSIA Utility Classes */
.bg-unsia-blue {
  background-color: var(--color-unsia-blue);
}

.hover\:bg-unsia-blue-dark:hover {
  background-color: var(--color-unsia-blue-dark);
}

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

.border-unsia-blue {
  border-color: var(--color-unsia-blue);
}

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

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

.hover\:bg-unsia-yellow-hover:hover {
  background-color: var(--color-unsia-yellow-hover);
}

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

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

/* Backward compatibility for existing references */
.bg-primary {
  background-color: var(--primary);
}

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

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

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

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

/* Dark Mode Overrides */
html.dark .dark\:bg-\[\#091E36\] {
  background-color: #091e36 !important;
}

html.dark .dark\:bg-\[\#0E2A4A\] {
  background-color: #0e2a4a !important;
}

html.dark .dark\:border-white\/10 {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .dark\:border-white\/15 {
  border-color: rgba(255, 255, 255, 0.15) !important;
}

html.dark .dark\:border-white\/20 {
  border-color: rgba(255, 255, 255, 0.2) !important;
}

html.dark .dark\:bg-white\/5 {
  background-color: rgba(255, 255, 255, 0.05) !important;
}

html.dark .dark\:bg-white\/10 {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .dark\:hover\:bg-white\/10:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
}

html.dark .dark\:hover\:bg-white\/20:hover {
  background-color: rgba(255, 255, 255, 0.2) !important;
}

html.dark .dark\:text-white {
  color: #ffffff !important;
}

html.dark .dark\:text-slate-100 {
  color: #f1f5f9 !important;
}

html.dark .dark\:text-slate-200 {
  color: #e2e8f0 !important;
}

html.dark .dark\:text-slate-300 {
  color: #cbd5e1 !important;
}

html.dark .dark\:text-slate-400 {
  color: #94a3b8 !important;
}

html.dark .dark\:text-unsia-yellow {
  color: #fdd327 !important;
}

html.dark .dark\:bg-\[\#387CBD\] {
  background-color: #387cbd !important;
}

html.dark .dark\:hover\:bg-\[\#2e6ea9\]:hover {
  background-color: #2e6ea9 !important;
}
