@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Montserrat:wght@700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* Eximious Tech ERP — unified design system v1 */
:root {
  color-scheme: light;
  --bg: #f5f8fc;
  --surface: #ffffff;
  --surface-2: #edf3fb;
  --text: #172338;
  --muted: #68778d;
  --line: #dce5f0;
  --ink: #10213e;
  --accent: #155eef;
  --accent-2: #fe4901;
  --brand-action: #155eef;
  --brand-action-hover: #0b49c7;
  --danger: #c93642;
  --warning: #a96808;
  --success: #18794e;
  --sidebar: 272px;
  --sidebar-expanded: 272px;
  --sidebar-compact: 78px;
  --radius: 15px;
  --shadow: 0 12px 34px rgba(16, 33, 62, .07);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --section-title-font: Montserrat, sans-serif;
  --section-subtitle-font: "Plus Jakarta Sans", sans-serif;
  --focus-ring: 0 0 0 3px rgba(21,94,239,.18);
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1220;
  --surface: #111c2e;
  --surface-2: #18263b;
  --text: #edf4ff;
  --muted: #a0b0c7;
  --line: #2a3a52;
  --ink: #080e19;
  --accent: #6c9cff;
  --accent-2: #ff7b45;
  --brand-action: #6c9cff;
  --brand-action-hover: #8ab0ff;
  --danger: #ff707a;
  --warning: #f4bd5f;
  --success: #62d6a0;
  --shadow: 0 16px 42px rgba(0,0,0,.28);
}
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); }
h1,h2,h3,h4,.page-head h1,.login-message h1,.login-card h2 { font-family: Montserrat, "Plus Jakarta Sans", sans-serif; font-weight: 800; letter-spacing: -.035em; }
.page-head h1 { color: var(--text); }
.page-head p,.metric-note,.card-head p { color: var(--muted); }
.eyebrow,.section-subtitle { font-family: "Plus Jakarta Sans", sans-serif; color: var(--accent-2); }
.app-shell { background: var(--bg); }
.sidebar {
  background: var(--surface);
  color: var(--text);
  border-right: 1px solid var(--line);
  box-shadow: 5px 0 24px rgba(16,33,62,.025);
  padding: 20px 14px;
}
.sidebar .brand-lockup { border-bottom-color: var(--line); }
.sidebar .brand-lockup strong { color: var(--text); letter-spacing: .04em; }
.sidebar .brand-lockup small { color: var(--muted); letter-spacing: .06em; }
.sidebar-nav { gap: 4px; }
.nav-section { color: #8492a8; padding-top: 17px; letter-spacing: .12em; }
.nav-link { color: #53647d; border-radius: 10px; padding: 10px 12px; transition: background .16s ease, color .16s ease, transform .16s ease; }
.nav-link:hover { color: var(--accent); background: var(--surface-2); }
.nav-link.active { color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, var(--surface)); box-shadow: inset 3px 0 0 var(--accent); }
:root[data-theme="dark"] .nav-link { color: #b4c2d8; }
:root[data-theme="dark"] .nav-link.active { color: #a9c5ff; }
.sidebar-bottom { border-top-color: var(--line); }
.user-mini small { color: var(--muted); }
.topbar { background: color-mix(in srgb, var(--surface) 91%, transparent); border-bottom-color: var(--line); }
.global-search input,.field input,.field select,.field textarea,.toolbar input,.toolbar select {
  border-color: var(--line); border-radius: 11px; background: var(--surface); color: var(--text);
}
.global-search input:focus,.field input:focus,.field select:focus,.field textarea:focus,.toolbar input:focus { border-color: var(--accent); box-shadow: var(--focus-ring); }
.btn { border-radius: 10px; min-height: 40px; font-weight: 700; transition: transform .16s ease, box-shadow .16s ease, background .16s ease; }
.btn-primary { background: var(--brand-action); border-color: var(--brand-action); color: #fff; box-shadow: 0 5px 13px color-mix(in srgb, var(--brand-action) 18%, transparent); }
.btn-primary:hover { background: var(--brand-action-hover); border-color: var(--brand-action-hover); }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--line); }
.btn-outline:hover,.btn-ghost:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }
.head-actions .btn-outline { background: var(--brand-action); color: #fff; border-color: var(--brand-action); }
.icon-btn { border-color: var(--line); background: var(--surface); }
.metric-card,.card,.table-wrap,.kanban-col,.kanban-card { border-color: var(--line); box-shadow: var(--shadow); }
.metric-card,.card { border-radius: var(--radius); }
.metric-card { padding: 21px; }
.metric-value { font-family: Montserrat, sans-serif; font-weight: 800; }
.metric-card.accent { background: linear-gradient(135deg, #155eef, #0b3eaa); border-color: transparent; }
:root[data-theme="dark"] .metric-card.accent { background: linear-gradient(135deg, #173e85, #10274c); }
.card-head { align-items: flex-start; }
th { color: var(--muted); background: var(--surface-2); }
tbody tr:hover { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.status { font-weight: 750; }
.modal { border: 1px solid var(--line); }
.toast { border: 1px solid var(--line); }
.login-brand { background: radial-gradient(circle at 82% 15%, rgba(21,94,239,.45), transparent 36%), linear-gradient(145deg,#08172f,#123b78 65%,#0d2450); }
.login-message h1 { font-family: Montserrat, sans-serif; }
.login-brand .eyebrow { color: #ff9b70; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 821px) {
  .content { padding: clamp(22px, 2.2vw, 34px); }
}
@media (max-width: 820px) {
  .sidebar { background: var(--surface) !important; color: var(--text) !important; }
  .topbar { min-height: 64px; height: auto; padding-block: 10px; }
  .content { padding: 18px 14px 28px; }
  .page-head { gap: 12px; }
  .head-actions { width: 100%; }
  .head-actions .btn { min-height: 42px; }
  .table-wrap { border-radius: 12px; }
  .metric-card { padding: 15px; }
  .metric-value { font-size: clamp(21px, 6vw, 28px); overflow-wrap: anywhere; }
}
@media (max-width: 520px) {
  .metric-grid { gap: 10px; }
  .page-head h1 { font-size: 25px; line-height: 1.15; }
  .top-actions { gap: 5px; }
  .icon-btn { width: 38px; height: 38px; }
  .modal { width: calc(100vw - 18px); max-height: 94dvh; }
  .modal-body { overflow: auto; }
  .form-grid { gap: 12px; }
}
