/* Direction: SmartSchool ERP — navy command deck, paper-white data panels, institutional SaaS */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f3f6fc;
  --surface: #ffffff;
  --surface-2: #e9eff9;
  --border: #d9e1f1;
  --border-strong: #abafb6;
  --ink: #0f1b33;
  --muted: #566a8c;
  --accent: #1b3a7a;
  --accent-hover: #173168;
  --accent-ink: #ffffff;
  --accent-text: #1b3a7a;
  --accent-strong: #112a5e;
  --accent-soft: #e3ebfb;
  --accent-border: #92a1c2;
  --success: #0f7347;
  --success-ink: #ffffff;
  --success-soft: #d8e6e6;
  --success-strong: #0f7347;
  --warning: #8a5a00;
  --warning-ink: #ffffff;
  --warning-soft: #e6e3de;
  --warning-strong: #8a5a00;
  --danger: #ad2a22;
  --danger-ink: #ffffff;
  --danger-soft: #ebdee2;
  --danger-strong: #ad2a22;
  --chart-1: #1b3a7a;
  --chart-2: #773980;
  --chart-3: #86262a;
  --chart-4: #5c520a;
  --chart-5: #0c6b6d;
  --chart-6: #3f76c1;

  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --radius-card: 16px;
  --radius-btn: 10px;
  --radius-input: 10px;
  --shadow-card: 0 1px 2px rgb(15 27 51 / 0.06), 0 16px 40px rgb(15 27 51 / 0.06);
  --card-pad: 1.25rem;
  --x-navy: #0d1b36;
  --x-navy-2: #15264a;
  --x-nav-ink: #c3d0ea;
  --x-nav-active: rgb(255 255 255 / 0.14);
  --x-nav-hover: rgb(255 255 255 / 0.08);
  --x-on-photo: #ffffff;
  --gradient-navy: linear-gradient(135deg, #0b1730 0%, #1b3a7a 62%, #2b5bb5 100%);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Inter", system-ui, sans-serif;
  --display-weight: 700;
  --display-tracking: -0.02em;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #040811;
  --surface: #1d2129;
  --surface-2: #11141d;
  --border: #272b32;
  --border-strong: #4f5258;
  --ink: #f3f6fc;
  --muted: #93979e;
  --accent: #1b3a7a;
  --accent-hover: #3d588e;
  --accent-ink: #ffffff;
  --accent-text: #7f90b5;
  --accent-strong: #7486af;
  --accent-soft: #091328;
  --accent-border: #0e1e40;
  --success: #0f7347;
  --success-ink: #ffffff;
  --success-soft: #06201d;
  --success-strong: #449270;
  --warning: #8a5a00;
  --warning-ink: #ffffff;
  --warning-soft: #211a0d;
  --warning-strong: #a47e38;
  --danger: #ad2a22;
  --danger-ink: #ffffff;
  --danger-soft: #290f15;
  --danger-strong: #c56661;
  --chart-1: #4b6eb3;
  --chart-2: #b06eb8;
  --chart-3: #c25d5b;
  --chart-4: #a77d18;
  --chart-5: #4d9349;
  --chart-6: #23adb7;
}

/* SmartSchool ERP — console chrome: the sliding sidebar, the attendance donut, card entrances */

.sidebar {
  background-image: linear-gradient(180deg, var(--x-navy) 0%, var(--x-navy-2) 100%);
}

@media (max-width: 767px) {
  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.24s ease;
    box-shadow: 0 0 60px rgb(0 0 0 / 0.35);
  }
  body.nav-open .sidebar {
    transform: translateX(0);
  }
  body.nav-open .nav-scrim {
    display: block;
  }
  body.nav-open {
    overflow: hidden;
  }
}

html.reduced-motion .sidebar {
  transition: none;
}

/* attendance / activation donut */
.donut {
  position: relative;
  border-radius: 9999px;
  display: grid;
  place-items: center;
}
.donut::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 9999px;
  background: var(--surface);
}
.donut-label {
  position: relative;
  z-index: 1;
  color: var(--ink);
}

/* dashboard cards settle in from an offset; they rest visible */
@keyframes erp-rise {
  from {
    transform: translateY(10px);
  }
  to {
    transform: translateY(0);
  }
}
[data-inview].is-inview {
  animation: erp-rise 0.4s cubic-bezier(0.22, 0.8, 0.3, 1) both;
}
html.reduced-motion [data-inview].is-inview {
  animation: none;
}

/* data tables read better with a hover row */
tbody tr:hover {
  background: var(--surface-2);
}
