@font-face {
  font-family: 'Liberation Sans';
  src: url('/assets/fonts/LiberationSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Liberation Sans';
  src: url('/assets/fonts/LiberationSans-Bold.ttf') format('truetype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Liberation Sans';
  src: url('/assets/fonts/LiberationSans-Italic.ttf') format('truetype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Liberation Sans';
  src: url('/assets/fonts/LiberationSans-BoldItalic.ttf') format('truetype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

:root {
  --blue-dark:  #1e3a5f;
  --blue-mid:   #2563eb;
  --blue-light: #eff6ff;
  --gray-50:    #f8fafc;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-400:   #94a3b8;
  --gray-600:   #475569;
  --gray-800:   #1e293b;
  --amber:      #f59e0b;
  --amber-light:#fefce8;
  --red:        #dc2626;
  --green:      #16a34a;
  --white:      #ffffff;

  --radius:     6px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.12);
  --shadow-lg:  0 8px 30px rgba(0,0,0,.18);

  --font: 'Liberation Sans', 'Arial', 'Helvetica Neue', sans-serif;
}

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

html { font-size: 16px; }

body {
  font-family: var(--font);
  background: var(--gray-100);
  color: var(--gray-800);
  min-height: 100vh;
}

a { color: var(--blue-mid); text-decoration: none; }
a:hover { text-decoration: underline; }

button, .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  padding: 9px 18px;
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background .15s, opacity .15s, transform .1s;
  white-space: nowrap;
  text-decoration: none;
}
button:active { transform: scale(.97); }
button:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn-primary { background: var(--blue-dark); color: var(--white); }
.btn-primary:hover:not(:disabled) { background: #163055; }

.btn-secondary { background: var(--white); color: var(--gray-800); border: 1px solid var(--gray-200); }
.btn-secondary:hover:not(:disabled) { background: var(--gray-50); }

.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }

.btn-success { background: #15803d; color: var(--white); }
.btn-success:hover:not(:disabled) { background: #166534; }

.btn-sm { font-size: 12px; padding: 6px 12px; }
.btn-lg { font-size: 15px; padding: 12px 24px; }

input, textarea, select {
  font-family: var(--font);
  font-size: 14px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 8px 10px;
  background: var(--white);
  color: var(--gray-800);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--blue-mid);
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}

label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 4px;
}

/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 9999;
}
.toast {
  background: var(--gray-800);
  color: var(--white);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  box-shadow: var(--shadow-md);
  animation: slide-in .2s ease;
  max-width: 320px;
}
.toast.success { background: var(--green); }
.toast.error   { background: var(--red); }

@keyframes slide-in {
  from { transform: translateX(40px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
