/* Look matches dev.tuskira.ai: Inter, navy text, white cards with a soft shadow. Light mode only. */
:root {
  --ink: #172B4D;
  --muted: #5E6C84;
  --primary: #2845C7;
  --primary-soft: #E9EDFB;
  --line: #EBECF0;
  --rail: #F4F6FA;
  --red: #EF4444;
  --red-soft: #FDECEC;
  --green: #16A34A;
  --green-soft: #E7F6EC;
  --amber: #B7791F;
  --amber-soft: #FDF3E1;
  --shadow: rgba(9, 30, 66, 0.49) 0 0 1px 0, rgba(9, 30, 66, 0.14) 0 2px 4px 0;
}
* { box-sizing: border-box; }
body {
  margin: 0; display: flex; min-height: 100vh; background: #fff; color: var(--ink);
  font-family: Inter, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; font-size: 14px;
}

/* left icon rail */
.sidebar {
  width: 64px; background: var(--rail); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; align-items: center; padding: 14px 0; gap: 18px;
  position: sticky; top: 0; height: 100vh;
}
.logo {
  width: 36px; height: 36px; border-radius: 10px; background: var(--primary); color: #fff;
  display: grid; place-items: center; font-weight: 600; font-size: 17px;
}
.sidebar nav { display: flex; flex-direction: column; gap: 6px; }
.sidebar a {
  position: relative; width: 40px; height: 40px; border-radius: 10px; color: var(--muted);
  display: grid; place-items: center; text-decoration: none;
}
.sidebar a svg { width: 20px; height: 20px; }
.sidebar a:hover { background: #E8EBF2; color: var(--ink); }
.sidebar a.active { background: var(--primary-soft); color: var(--primary); }
.sidebar a span {           /* label shown on hover, like a tooltip */
  display: none; position: absolute; left: 48px; white-space: nowrap; background: var(--ink);
  color: #fff; padding: 4px 8px; border-radius: 6px; font-size: 12px; z-index: 5;
}
.sidebar a:hover span { display: block; }

/* page */
main { flex: 1; padding: 18px 24px 40px; max-width: 1280px; }
header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
h1 { font-size: 18px; font-weight: 600; margin: 0; }
h2 { font-size: 14px; font-weight: 600; margin: 0 0 12px; }
.brand { color: var(--muted); font-size: 12px; font-weight: 500; }

.card { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 16px; margin-bottom: 16px; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { background: #fff; border-radius: 10px; box-shadow: var(--shadow); padding: 14px 16px; }
.kpi .label { color: var(--muted); font-size: 12px; font-weight: 500; }
.kpi .value { font-size: 24px; font-weight: 600; margin: 6px 0 4px; }
.kpi .delta { font-size: 12px; }
.kpi .delta.good { color: var(--green); }
.kpi .delta.bad { color: var(--red); }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; font-weight: 500; }
tbody tr:hover { background: #FAFBFC; }
.up { color: var(--green); font-weight: 500; }
.down { color: var(--red); font-weight: 500; }

.badge { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: 12px; font-weight: 500; }
.badge.red { background: var(--red-soft); color: var(--red); }
.badge.green { background: var(--green-soft); color: var(--green); }
.badge.amber { background: var(--amber-soft); color: var(--amber); }
.badge.grey { background: var(--line); color: var(--muted); }

form { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
input, select {
  border: 1px solid #DFE1E6; border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--ink); min-width: 150px;
}
button {
  background: var(--primary); color: #fff; border: 0; border-radius: 11.5px; padding: 9px 16px;
  font: inherit; font-weight: 500; cursor: pointer;
}
.note { width: 100%; font-size: 12px; color: var(--green); }
