/* ─────────────────────────────────────────────────────────────
   Mintrix Staff Portal — premium, light, indigo accent.
   Sits on top of school_admin/css/wizard.css and overrides for
   the staff portal's specific shell (topnav + footer + greeting).
   ───────────────────────────────────────────────────────────── */

:root {
  --staff-accent:       #6366f1;      /* indigo-500 */
  --staff-accent-2:     #818cf8;      /* indigo-400 */
  --staff-accent-ink:   #4338ca;
  --staff-accent-soft:  #eef2ff;
  --staff-accent-softer:#f5f3ff;
  --staff-rose:         #ec4899;      /* notif dot pop */
  --staff-bg:           #fbfaff;      /* whisper-light indigo tint */
}

/* Lighter page background across the whole staff portal. */
.staff body, .staff {
  background:
    radial-gradient(60% 50% at 0% 0%, rgba(99,102,241,.045) 0%, transparent 60%),
    radial-gradient(40% 40% at 100% 100%, rgba(236,72,153,.025) 0%, transparent 60%),
    var(--staff-bg);
}

/* ───── Shell layout: sidebar + right column with topnav + main + footer ───── */
.staff .shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; background: transparent; }
.staff .shell-column {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 100vh;
}

/* ───── Sidebar ───── */
.staff .shell-side {
  background: linear-gradient(180deg, #ffffff 0%, #fbfaff 100%);
  border-right: 1px solid #eef0fb;
  padding: 18px 14px;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
}

.staff .shell-brand {
  display: flex; align-items: center; gap: 12px;
  padding: 4px 6px 16px;
  border-bottom: 1px solid #f0f1f9;
  margin-bottom: 6px;
}
.staff .shell-brand__mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
  border: 1px solid #c7d2fe;
  display: grid; place-items: center; overflow: hidden;
  box-shadow: 0 1px 2px rgba(99,102,241,.10);
  flex: 0 0 auto;
}
.staff .shell-brand__mark img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.staff .shell-brand__greeting {
  display: flex; flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.staff .shell-brand__hi {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.2px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.staff .shell-brand__hi .wave {
  display: inline-block;
  transform-origin: 70% 70%;
  animation: handwave 2.4s ease-in-out infinite;
}
@keyframes handwave {
  0%, 60%, 100% { transform: rotate(0deg); }
  10% { transform: rotate(14deg); }
  20% { transform: rotate(-10deg); }
  30% { transform: rotate(14deg); }
  40% { transform: rotate(-8deg); }
  50% { transform: rotate(8deg); }
}
.staff .shell-brand__tag {
  font-size: 10.5px;
  color: var(--muted);
  font-family: var(--font-mono);
  letter-spacing: .8px;
  font-weight: 600;
}

/* ───── Sidebar nav (lighter, more premium) ───── */
.staff .shell-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.staff .shell-nav a,
.staff .shell-nav .shell-nav__sub {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px;
  border-radius: 9px;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
}
.staff .shell-nav a:hover,
.staff .shell-nav .shell-nav__sub:not(.shell-nav__sub--disabled):hover {
  background: var(--staff-accent-softer);
  color: var(--ink);
}
.staff .shell-nav a.is-active,
.staff .shell-nav .shell-nav__sub.is-active {
  background: linear-gradient(135deg, #eef2ff 0%, #f5f3ff 100%);
  color: var(--staff-accent-ink); font-weight: 600;
  position: relative;
}
.staff .shell-nav a.is-active::before,
.staff .shell-nav .shell-nav__sub.is-active::before {
  content: ""; position: absolute; left: -14px; top: 7px; bottom: 7px;
  width: 3px; border-radius: 0 3px 3px 0;
  background: var(--staff-accent);
}
.staff .shell-nav .ico { width: 16px; text-align: center; color: var(--muted-2); }
.staff .shell-nav a.is-active .ico,
.staff .shell-nav .shell-nav__sub.is-active .ico { color: var(--staff-accent-ink); }

.staff .shell-nav__group {
  margin-top: 6px; padding-top: 8px;
  border-top: 1px solid #f1f2fa;
}
.staff .shell-nav__group-label {
  width: 100%; text-align: left; font-family: inherit;
  display: flex; align-items: center; gap: 10px;
  padding: 9px 11px; border-radius: 9px;
  font-size: 13.5px; font-weight: 500;
  color: var(--ink-soft); background: transparent; border: 0; cursor: pointer;
}
.staff .shell-nav__group-label:hover { background: var(--staff-accent-softer); color: var(--ink); }
.staff .shell-nav__group-label i:not(.chev) { width: 16px; text-align: center; color: var(--muted-2); font-size: 14px; }
.staff .shell-nav__group-label .chev {
  margin-left: auto; transition: transform .25s ease; color: var(--muted-2); font-size: 11px;
}
.staff .shell-nav__group.is-open .shell-nav__group-label .chev { transform: rotate(180deg); }
.staff .shell-nav__group.is-current .shell-nav__group-label {
  color: var(--staff-accent-ink);
}
.staff .shell-nav__group.is-current .shell-nav__group-label i:not(.chev) { color: var(--staff-accent-ink); }
.staff .shell-nav__group-body {
  display: none; flex-direction: column; gap: 2px; margin-top: 2px;
}
.staff .shell-nav__group.is-open .shell-nav__group-body { display: flex; }
.staff .shell-nav__sub { padding-left: 22px; }

/* ───── Top nav (sticky) ───── */
.staff-topnav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid #eef0fb;
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
}
.staff-topnav__left {
  display: flex; align-items: baseline; gap: 10px;
  min-width: 0;
}
.staff-topnav__title {
  font-size: 18px; font-weight: 700;
  color: var(--ink); letter-spacing: -.25px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.staff-topnav__crumb {
  font-family: var(--font-serif); font-style: italic;
  font-size: 12.5px; color: var(--muted);
}

/* Small school context chip on the very left of the topnav */
.staff-topnav__school {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 8px;
  background: linear-gradient(135deg, #ffffff 0%, var(--staff-accent-softer) 100%);
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: var(--staff-accent-ink);
  font-size: 12px;
  font-weight: 700;
  font-family: var(--font-sans);
  letter-spacing: -.1px;
  max-width: 240px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  flex: 0 0 auto;
}
.staff-topnav__school i { color: var(--staff-accent); font-size: 11px; }
.staff-topnav__sep { color: var(--muted-2); font-size: 14px; line-height: 1; }
@media (max-width: 640px) {
  .staff-topnav__school { max-width: 130px; font-size: 11px; }
  .staff-topnav__school i { display: none; }
}

.staff-topnav__right { display: flex; align-items: center; gap: 8px; }
.topnav-icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border: 1px solid #eef0fb;
  background: white;
  border-radius: 10px;
  display: grid; place-items: center;
  color: var(--ink-soft);
  cursor: pointer;
  transition: border-color .14s, background .14s, color .14s;
}
.topnav-icon-btn:hover {
  border-color: #c7d2fe;
  background: var(--staff-accent-softer);
  color: var(--staff-accent-ink);
}
.topnav-icon-btn .badge {
  position: absolute; top: 6px; right: 7px;
  background: var(--staff-rose);
  color: white;
  font-size: 9.5px; font-weight: 700;
  border-radius: 999px;
  min-width: 15px; height: 15px;
  display: grid; place-items: center;
  padding: 0 4px;
  border: 2px solid white;
  font-family: var(--font-mono);
}

.profile-chip {
  display: flex; align-items: center; gap: 10px;
  padding: 4px 10px 4px 4px;
  background: white;
  border: 1px solid #eef0fb;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color .14s, background .14s;
}
.profile-chip:hover { border-color: #c7d2fe; background: var(--staff-accent-softer); }
.profile-chip__avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--staff-accent), var(--staff-accent-2));
  color: white; font-weight: 700; font-size: 12px;
  display: grid; place-items: center;
}
.profile-chip__name {
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
  max-width: 140px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.profile-chip__chev { color: var(--muted-2); font-size: 11px; }

/* ───── Main + footer wrapping ───── */
.staff-main {
  flex: 1 1 auto;
  padding: 28px 32px 32px;
  min-height: 0;
}
.staff-footer {
  background: rgba(255, 255, 255, .8);
  backdrop-filter: blur(6px);
  border-top: 1px solid #eef0fb;
  padding: 12px 24px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px;
  font-size: 12px;
}
.staff-footer__left {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink-soft);
}
.staff-footer__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  background: var(--staff-accent-softer);
  border: 1px solid #e0e7ff;
  border-radius: 999px;
  color: var(--staff-accent-ink);
  font-weight: 600;
  font-size: 11.5px;
}
.staff-footer__chip i { color: var(--staff-accent); }
.staff-footer__right {
  display: flex; align-items: center; gap: 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .3px;
}
.staff-footer__mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
  border: 1px solid #c7d2fe;
  display: inline-grid; place-items: center;
  overflow: hidden;
}
.staff-footer__mark img { width: 100%; height: 100%; object-fit: contain; padding: 2px; }
.staff-footer__brand { font-weight: 700; color: var(--ink-soft); font-family: var(--font-sans); letter-spacing: -.2px; }

/* ───── Dashboard hero — softer, more premium ───── */
.staff-hero {
  background:
    radial-gradient(120% 80% at 0% 0%, rgba(99,102,241,.10) 0%, transparent 60%),
    radial-gradient(80% 60% at 100% 100%, rgba(236,72,153,.06) 0%, transparent 65%),
    linear-gradient(135deg, #ffffff 0%, #fafafe 100%);
  border: 1px solid #eef0fb;
  border-radius: 18px;
  padding: 36px 32px;
  margin-bottom: 22px;
  position: relative;
  overflow: hidden;
}
.staff-hero::after {
  /* very subtle decorative ring */
  content: ""; position: absolute; right: -60px; top: -60px;
  width: 200px; height: 200px; border-radius: 50%;
  background: radial-gradient(circle at center, rgba(99,102,241,.10), transparent 70%);
  pointer-events: none;
}
.staff-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px;
  background: white;
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  color: var(--staff-accent-ink);
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.staff-hero h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -.5px;
  line-height: 1.15;
}
.staff-hero h2 em {
  font-style: italic;
  color: var(--staff-accent-ink);
  background: linear-gradient(135deg, var(--staff-accent), var(--staff-accent-2));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.staff-hero p {
  color: var(--muted);
  margin: 10px 0 0;
  font-size: 14px;
  max-width: 600px;
  line-height: 1.6;
}

/* ───── Card grid (lighter shadows + hover) ───── */
.menu-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.menu-card {
  background: white;
  border: 1px solid #eef0fb;
  border-radius: 14px;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s, transform .15s;
  display: block;
}
.menu-card:hover {
  border-color: #c7d2fe;
  box-shadow: 0 10px 24px rgba(99,102,241,.10);
  transform: translateY(-2px);
  color: var(--ink);
}
.menu-card__icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff 0%, var(--staff-accent-softer) 100%);
  border: 1px solid #e0e7ff;
  color: var(--staff-accent-ink);
  display: grid; place-items: center;
  font-size: 16px;
  margin-bottom: 14px;
}
.menu-card__title { font-weight: 700; font-size: 14.5px; margin-bottom: 4px; }
.menu-card__sub   { font-size: 12px; color: var(--muted); font-family: var(--font-mono); }

/* ───── Module placeholder (lighter) ───── */
.module-placeholder {
  background: linear-gradient(180deg, #ffffff 0%, #fafafe 100%);
  border: 1px solid #eef0fb;
  border-radius: 16px;
  padding: 48px 32px;
  text-align: center;
  max-width: 640px; margin: 24px auto 0;
}
.module-placeholder__icon {
  width: 60px; height: 60px;
  border-radius: 16px;
  background: linear-gradient(135deg, #ffffff 0%, var(--staff-accent-softer) 100%);
  border: 1px solid #e0e7ff;
  color: var(--staff-accent-ink);
  display: inline-grid; place-items: center;
  font-size: 22px;
  margin-bottom: 18px;
}
.module-placeholder h2 {
  font-family: var(--font-serif);
  font-size: 26px; font-weight: 500;
  margin: 0 0 8px;
  letter-spacing: -.3px;
  color: var(--ink);
}
.module-placeholder p { color: var(--muted); margin: 0; line-height: 1.6; font-size: 13.5px; }
.module-placeholder .pill {
  margin-top: 20px;
  display: inline-block;
  background: white;
  color: var(--staff-accent-ink);
  border: 1px solid #c7d2fe;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: .5px;
}

/* ───── Login screen — softer indigo ───── */
.staff .login-screen {
  background:
    radial-gradient(50% 40% at 20% 0%, rgba(99, 102, 241, .08) 0%, transparent 60%),
    radial-gradient(50% 40% at 100% 100%, rgba(236, 72, 153, .04) 0%, transparent 60%),
    var(--staff-bg);
}

/* ───── "STAFF" badge ───── */
.staff-badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px;
  background: var(--staff-accent-soft);
  color: var(--staff-accent-ink);
  border: 1px solid #c7d2fe;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .6px;
  font-family: var(--font-mono);
}

/* ───── Responsive — collapse sidebar on small screens ───── */
@media (max-width: 820px) {
  .staff .shell { grid-template-columns: 1fr; }
  .staff .shell-side {
    position: relative; height: auto;
    border-right: 0; border-bottom: 1px solid #eef0fb;
  }
  .staff-topnav { padding: 10px 16px; }
  .staff-main { padding: 22px 16px 32px; }
  .staff-footer { flex-direction: column; align-items: flex-start; gap: 8px; padding: 12px 16px; }
  .staff-hero { padding: 26px 22px; }
  .staff-hero h2 { font-size: 26px; }
}
@media (max-width: 540px) {
  .profile-chip__name { display: none; }
  .staff-topnav__title { font-size: 16px; }
}
