/* Stockpile Ops Portal - Theme
   Font: Liberation Sans (open-source, Arial-compatible) */

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

:root {
  --font-sans: "Liberation Sans", Arial, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  /* Light theme */
  --bg: #f7f8fa;
  --panel: #ffffff;
  --panel-2: #f1f3f6;

  --text: #1b1f28;
  --muted: #5b6373;

  --border: #d6dbe3;

  --primary: #2563eb;        /* blue */
  --primary-contrast: #ffffff;

  --danger: #dc2626;         /* red */
  --warning: #d97706;        /* amber */
  --success: #16a34a;        /* green */

  --shadow: rgba(17, 24, 39, 0.08);
  --focus: rgba(37, 99, 235, 0.25);

  --radius: 10px;
  --radius-sm: 8px;

  --sidebar-w: 280px;
  --topbar-h: 58px;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
}

body.theme-dark {
  --bg: #0b1220;
  --panel: #0f1a2b;
  --panel-2: #0c1526;

  --text: #e6e9f0;
  --muted: #a7b0c1;

  --border: #1d2c43;

  --primary: #60a5fa;
  --primary-contrast: #081225;

  --danger: #f87171;
  --warning: #fbbf24;
  --success: #34d399;

  --shadow: rgba(0, 0, 0, 0.25);
  --focus: rgba(96, 165, 250, 0.25);
}

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

* { box-sizing: border-box; }

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
