/* ============================================================================
   HIRE7 FLEET — DESIGN SYSTEM TOKENS & TYPOGRAPHY
   Derived from standalone.html design specification.
   ============================================================================ */

/* --- Google Fonts Fallback & Local Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700;1,400&family=IBM+Plex+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  /* Fonts */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, Menlo, Monaco, Consolas, monospace;

  /* Surfaces & Backgrounds */
  --bg-app: #f3f6fb;
  --bg-card: #ffffff;
  --bg-subtle: oklch(0.985 0.003 260);
  --bg-sidebar: #0f172a;
  --bg-sidebar-active: oklch(0.28 0.05 262);
  --bg-sidebar-hover: oklch(0.22 0.04 262);

  /* Borders & Dividers */
  --border-card: oklch(0.90 0.006 240);
  --border-subtle: oklch(0.93 0.005 240);
  --border-strong: oklch(0.88 0.007 240);
  --border-sidebar: oklch(0.25 0.03 262);

  /* Typography Colors */
  --text-primary: #0f172a;
  --text-secondary: oklch(0.48 0.015 260);
  --text-muted: oklch(0.55 0.01 240);
  --text-sidebar: oklch(0.70 0.03 262);
  --text-sidebar-hi: #ffffff;

  /* Brand Accents */
  --brand-primary: oklch(0.50 0.19 262);
  --brand-hover: oklch(0.42 0.19 262);
  --brand-light: oklch(0.95 0.03 262);
  --brand-text: oklch(0.45 0.17 262);
  --brand-fleet: oklch(0.72 0.16 262);

  /* Status Matrix (TONE System) */
  --status-ok-fg: oklch(0.45 0.12 155);
  --status-ok-bg: oklch(0.95 0.04 155);
  --status-ok-dot: oklch(0.66 0.14 155);

  --status-warn-fg: oklch(0.48 0.12 65);
  --status-warn-bg: oklch(0.96 0.05 85);
  --status-warn-dot: oklch(0.74 0.15 70);

  --status-bad-fg: oklch(0.50 0.19 25);
  --status-bad-bg: oklch(0.955 0.035 25);
  --status-bad-dot: oklch(0.60 0.20 25);

  --status-info-fg: oklch(0.45 0.17 262);
  --status-info-bg: oklch(0.95 0.03 262);
  --status-info-dot: oklch(0.50 0.19 262);

  --status-mute-fg: oklch(0.42 0.02 260);
  --status-mute-bg: oklch(0.94 0.008 260);
  --status-mute-dot: oklch(0.72 0.02 260);

  /* Radii & Shadows */
  --radius-sm: 4px;
  --radius-md: 7px;
  --radius-lg: 10px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-card: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px -1px rgba(0, 0, 0, 0.04);
  --shadow-popover: 0 4px 16px rgba(0, 0, 0, 0.08);
  --shadow-elevated: 0 12px 30px oklch(0.3 0.02 250 / 0.16);
}

/* Base Body Application */
html, body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-app);
  font-family: var(--font-sans);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
}

* {
  box-sizing: border-box;
}

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

/* Utility Monospace */
.font-mono {
  font-family: var(--font-mono);
}

/* Status Pills */
.pill-ok {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--status-ok-fg);
  background: var(--status-ok-bg);
}

.pill-warn {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--status-warn-fg);
  background: var(--status-warn-bg);
}

.pill-bad {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--status-bad-fg);
  background: var(--status-bad-bg);
}

.pill-info {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--status-info-fg);
  background: var(--status-info-bg);
}

.pill-mute {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  color: var(--status-mute-fg);
  background: var(--status-mute-bg);
}

/* Common Card & Panel Styles */
.fleet-card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 9px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.fleet-card-header {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.fleet-card-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.fleet-card-sub {
  font-size: 11px;
  color: var(--text-muted);
}

/* Buttons */
.btn-fleet-primary {
  height: 28px;
  padding: 0 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  background: var(--brand-primary);
  color: #ffffff;
  border: none;
  transition: background 0.15s ease;
}

.btn-fleet-primary:hover {
  background: var(--brand-hover);
}

.btn-fleet-secondary {
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  white-space: nowrap;
  background: #ffffff;
  color: oklch(0.32 0.015 260);
  border: 1px solid oklch(0.89 0.007 240);
  transition: background 0.15s ease;
}

.btn-fleet-secondary:hover {
  background: oklch(0.97 0.01 262);
}

.btn-fleet-ok {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  background: oklch(0.52 0.14 155);
  color: #ffffff;
  border: none;
}

.btn-fleet-bad {
  height: 26px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  white-space: nowrap;
  background: #ffffff;
  color: oklch(0.50 0.19 25);
  border: 1px solid oklch(0.88 0.04 25);
}

/* Filter Chips */
.fleet-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 11px;
  border-radius: 14px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  border: 1px solid oklch(0.90 0.006 240);
  background: #ffffff;
  color: oklch(0.38 0.015 260);
  font-weight: 500;
  transition: all 0.15s ease;
}

.fleet-chip.active {
  border-color: oklch(0.55 0.19 262);
  background: oklch(0.96 0.025 262);
  color: oklch(0.42 0.17 262);
  font-weight: 600;
}

/* Custom Clean Scrollbars for Tables & Navigation */
*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.02);
  border-radius: 3px;
}
*::-webkit-scrollbar-thumb {
  background: oklch(0.80 0.015 240);
  border-radius: 3px;
}
*::-webkit-scrollbar-thumb:hover {
  background: oklch(0.55 0.15 262);
}

