/* ============================================================
   EASYEDUCATION ERP 360° — Design System v2.0
   Ultra-responsive sidebar layout, dark theme, full ERP UI
   ============================================================ */

/* ── DESIGN TOKENS ──────────────────────────────────────── */
:root {
  /* Sidebar */
  --sb-bg:        #0f1729;
  --sb-bg2:       #172035;
  --sb-accent:    #2563eb;
  --sb-text:      rgba(255,255,255,.72);
  --sb-text-h:    #fff;
  --sb-hover:     rgba(255,255,255,.07);
  --sb-active-bg: rgba(37,99,235,.22);
  --sb-active-bd: #2563eb;
  --sb-width:     260px;
  --sb-width-col: 70px;
  --sb-trans:     .22s cubic-bezier(.4,0,.2,1);

  /* Brand colours */
  --ee-primary:     #2563eb;
  --ee-primary-d:   #1d4ed8;
  --ee-primary-s:   #eff6ff;
  --ee-teal:        #0d9488;
  --ee-teal-s:      #f0fdfa;
  --ee-success:     #16a34a;
  --ee-warning:     #d97706;
  --ee-danger:      #dc2626;
  --ee-purple:      #7c3aed;
  --ee-orange:      #ea580c;
  --ee-pink:        #db2777;

  /* Surfaces */
  --ee-ink:         #0f172a;
  --ee-muted:       #64748b;
  --ee-border:      #e2e8f0;
  --ee-surface:     #ffffff;
  --ee-surface-2:   #f8fafc;
  --ee-radius:      10px;
  --ee-radius-lg:   16px;
  --ee-radius-xl:   22px;

  /* Shadows */
  --sh-sm:  0 1px 3px rgba(0,0,0,.07), 0 1px 2px rgba(0,0,0,.05);
  --sh-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.05);
  --sh-lg:  0 12px 36px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --sh-xl:  0 24px 64px rgba(0,0,0,.12), 0 8px 24px rgba(0,0,0,.07);

  /* Topbar */
  --tb-h: 64px;
}

/* ── RESETS ─────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ee-ink);
  background: var(--ee-surface-2);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-feature-settings: "cv02","cv03","cv04";
  -webkit-font-smoothing: antialiased;
}

a { color: var(--ee-primary); }
a:hover { color: var(--ee-primary-d); }

/* ── SHELL ──────────────────────────────────────────────── */
.ee-shell {
  display: flex;
  min-height: 100vh;
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.ee-sidebar {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: var(--sb-width);
  background: var(--sb-bg);
  display: flex;
  flex-direction: column;
  z-index: 1040;
  transition: transform var(--sb-trans), width var(--sb-trans);
  overflow: hidden;
}

.ee-sidebar__brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .85rem 1rem;
  min-height: 78px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-decoration: none;
  flex-shrink: 0;
}

.ee-sidebar__logo {
  width: 68px; height: 54px;
  flex: 0 0 68px;
  border-radius: 14px;
  padding: 4px;
  overflow: hidden;
  background: #fff;
  display: grid; place-items: center;
  font-size: 1rem; font-weight: 900; color: var(--ee-primary);
  box-shadow: 0 4px 14px rgba(37,99,235,.35);
}

.ee-sidebar__logo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: contain;
  object-position: center;
  border-radius: 9px;
}

.ee-sidebar__app-name {
  display: flex; flex-direction: column; line-height: 1.2;
}

.ee-sidebar__app-name strong {
  color: #fff; font-size: .92rem; font-weight: 800; letter-spacing: .01em;
}

.ee-sidebar__app-name small {
  color: rgba(255,255,255,.45); font-size: .68rem; font-weight: 600;
}

/* NAV */
.ee-sidebar__nav {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: .75rem 0;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.1) transparent;
}

.ee-sidebar__nav::-webkit-scrollbar { width: 4px; }
.ee-sidebar__nav::-webkit-scrollbar-track { background: transparent; }
.ee-sidebar__nav::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); border-radius: 2px; }

.ee-nav-section {
  padding: 0 .75rem;
  margin-bottom: .25rem;
}

.ee-nav-section__label {
  display: block;
  padding: .55rem .6rem .2rem;
  color: rgba(255,255,255,.3);
  font-size: .6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .1em;
  white-space: nowrap;
  overflow: hidden;
}

.ee-nav-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .58rem .75rem;
  margin-bottom: 2px;
  color: var(--sb-text);
  border-radius: var(--ee-radius);
  text-decoration: none;
  font-size: .855rem;
  font-weight: 600;
  transition: background var(--sb-trans), color var(--sb-trans);
  white-space: nowrap;
  overflow: hidden;
  cursor: pointer;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}

.ee-nav-item:hover {
  background: var(--sb-hover);
  color: var(--sb-text-h);
}

.ee-nav-item.active {
  background: var(--sb-active-bg);
  color: var(--sb-text-h);
  border-left: 2px solid var(--sb-active-bd);
  margin-left: -2px;
  padding-left: calc(.75rem + 2px);
}

.ee-nav-item__icon {
  width: 20px; height: 20px; flex: 0 0 20px;
  display: grid; place-items: center;
  font-size: 1rem;
}

.ee-nav-item__text { flex: 1; }

.ee-nav-item__badge {
  min-width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: var(--ee-danger);
  color: #fff;
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
  padding: 0 .35rem;
  flex-shrink: 0;
}

.ee-nav-item__arrow {
  font-size: .7rem;
  transition: transform var(--sb-trans);
  flex-shrink: 0;
  color: rgba(255,255,255,.35);
}

.ee-nav-item[aria-expanded="true"] .ee-nav-item__arrow {
  transform: rotate(180deg);
}

/* SUB-MENU */
.ee-nav-sub {
  overflow: hidden;
  max-height: 0;
  transition: max-height .28s ease;
  padding: 0 .5rem 0 calc(.75rem + .75rem + 20px);
}

.ee-nav-sub.open { max-height: 600px; }

.ee-nav-sub a {
  display: flex;
  align-items: center;
  gap: .55rem;
  padding: .42rem .65rem;
  margin-bottom: 1px;
  color: rgba(255,255,255,.55);
  border-radius: 7px;
  text-decoration: none;
  font-size: .81rem;
  font-weight: 600;
  transition: background var(--sb-trans), color var(--sb-trans);
}

.ee-nav-sub a:hover { background: var(--sb-hover); color: #fff; }
.ee-nav-sub a.active { color: #fff; background: rgba(37,99,235,.15); }
.ee-nav-sub a i { font-size: .85rem; width: 14px; text-align: center; }

/* SIDEBAR FOOTER */
.ee-sidebar__footer {
  padding: .75rem;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}

.ee-sidebar__user {
  display: flex;
  align-items: center;
  gap: .65rem;
  padding: .6rem .65rem;
  border-radius: var(--ee-radius);
  cursor: pointer;
  transition: background var(--sb-trans);
  text-decoration: none;
}

.ee-sidebar__user:hover { background: var(--sb-hover); }

.ee-sidebar__avatar {
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ee-primary), var(--ee-teal));
  display: grid; place-items: center;
  color: #fff; font-size: .8rem; font-weight: 800;
  flex-shrink: 0;
}

.ee-sidebar__user-info { flex: 1; overflow: hidden; }
.ee-sidebar__user-name { color: #fff; font-size: .82rem; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ee-sidebar__user-role { color: rgba(255,255,255,.42); font-size: .7rem; font-weight: 600; }

/* ── TOPBAR ─────────────────────────────────────────────── */
.ee-topbar {
  position: fixed;
  top: 0;
  left: var(--sb-width);
  right: 0;
  height: var(--tb-h);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--ee-border);
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 0 1.25rem;
  z-index: 1030;
  backdrop-filter: blur(16px);
  transition: left var(--sb-trans);
  box-shadow: 0 1px 0 rgba(0,0,0,.04);
}

.ee-topbar__toggle {
  width: 36px; height: 36px;
  border: none; background: none;
  border-radius: 8px;
  display: grid; place-items: center;
  color: var(--ee-muted); cursor: pointer;
  font-size: 1.1rem;
  transition: background .15s, color .15s;
}

.ee-topbar__toggle:hover { background: var(--ee-surface-2); color: var(--ee-ink); }

.ee-topbar__search {
  flex: 1;
  max-width: 460px;
  position: relative;
}

.ee-topbar__search input {
  width: 100%;
  height: 38px;
  padding: 0 1rem 0 2.6rem;
  border: 1px solid var(--ee-border);
  border-radius: 999px;
  background: var(--ee-surface-2);
  font-size: .855rem;
  color: var(--ee-ink);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.ee-topbar__search input:focus {
  border-color: var(--ee-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
  background: #fff;
}

.ee-topbar__search i {
  position: absolute;
  left: .85rem; top: 50%;
  transform: translateY(-50%);
  color: var(--ee-muted);
  font-size: .95rem;
}

.ee-topbar__year {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .3rem .75rem;
  border: 1px solid var(--ee-border);
  border-radius: 999px;
  background: var(--ee-surface-2);
  font-size: .78rem;
  font-weight: 700;
  color: var(--ee-ink);
  white-space: nowrap;
  cursor: pointer;
  transition: border-color .15s;
}

.ee-topbar__year:hover { border-color: var(--ee-primary); }

.ee-topbar__right {
  display: flex;
  align-items: center;
  gap: .35rem;
  margin-left: auto;
}

.ee-topbar__icon-btn {
  position: relative;
  width: 38px; height: 38px;
  border: none; background: none;
  border-radius: 9px;
  display: grid; place-items: center;
  color: var(--ee-muted); cursor: pointer;
  font-size: 1.1rem;
  transition: background .15s, color .15s;
}

.ee-topbar__icon-btn:hover { background: var(--ee-surface-2); color: var(--ee-ink); }

.ee-topbar__icon-btn .badge {
  position: absolute; top: 4px; right: 4px;
  width: 16px; height: 16px;
  background: var(--ee-danger);
  color: #fff; font-size: .6rem; font-weight: 800;
  border-radius: 50%;
  display: grid; place-items: center;
  border: 2px solid #fff;
}

.ee-topbar__divider { width: 1px; height: 24px; background: var(--ee-border); margin: 0 .25rem; }

.ee-topbar__user {
  display: flex; align-items: center; gap: .55rem;
  padding: .3rem .6rem .3rem .35rem;
  border-radius: 9px; cursor: pointer;
  transition: background .15s;
  text-decoration: none;
  color: var(--ee-ink);
  border: none; background: none;
}

.ee-topbar__user:hover { background: var(--ee-surface-2); color: var(--ee-ink); }

.ee-topbar__avatar {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ee-primary), var(--ee-teal));
  display: grid; place-items: center;
  color: #fff; font-size: .82rem; font-weight: 800;
  flex-shrink: 0;
}

.ee-topbar__user-info { line-height: 1.15; }
.ee-topbar__user-name { font-size: .82rem; font-weight: 700; }
.ee-topbar__user-role { font-size: .68rem; color: var(--ee-muted); font-weight: 600; }

/* ── MAIN CONTENT ───────────────────────────────────────── */
.ee-content {
  margin-left: var(--sb-width);
  padding-top: var(--tb-h);
  min-height: 100vh;
  min-width: 0; /* .ee-shell is a flex row: without this, any non-shrinkable descendant
                   (nowrap text, fixed-width table, …) stretches the whole page sideways. */
  transition: margin-left var(--sb-trans);
  display: flex;
  flex-direction: column;
}

.ee-page {
  flex: 1;
  padding: 1.5rem;
}

/* ── STAT CARDS ─────────────────────────────────────────── */
.ee-stat-card {
  background: #fff;
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius-lg);
  padding: 1.25rem;
  box-shadow: var(--sh-sm);
  transition: box-shadow .18s, transform .18s;
  height: 100%;
}

.ee-stat-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }

.ee-stat-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.ee-stat-card__value {
  font-size: 1.85rem;
  font-weight: 900;
  line-height: 1;
  color: var(--ee-ink);
}

.ee-stat-card__label {
  font-size: .78rem;
  font-weight: 700;
  color: var(--ee-muted);
  text-transform: uppercase;
  letter-spacing: .04em;
}

.ee-stat-card__trend {
  display: inline-flex;
  align-items: center;
  gap: .25rem;
  font-size: .74rem;
  font-weight: 700;
  padding: .15rem .45rem;
  border-radius: 999px;
}

.ee-stat-card__trend.up   { color: var(--ee-success); background: #dcfce7; }
.ee-stat-card__trend.down { color: var(--ee-danger);  background: #fee2e2; }

/* Accent variants */
.ee-stat-card--blue   { background: linear-gradient(135deg, #2563eb, #1d4ed8); border-color: transparent; color: #fff; }
.ee-stat-card--teal   { background: linear-gradient(135deg, #0d9488, #0f766e); border-color: transparent; color: #fff; }
.ee-stat-card--purple { background: linear-gradient(135deg, #7c3aed, #6d28d9); border-color: transparent; color: #fff; }
.ee-stat-card--orange { background: linear-gradient(135deg, #ea580c, #c2410c); border-color: transparent; color: #fff; }

.ee-stat-card--blue .ee-stat-card__value,
.ee-stat-card--teal .ee-stat-card__value,
.ee-stat-card--purple .ee-stat-card__value,
.ee-stat-card--orange .ee-stat-card__value { color: #fff; }

.ee-stat-card--blue .ee-stat-card__label,
.ee-stat-card--teal .ee-stat-card__label,
.ee-stat-card--purple .ee-stat-card__label,
.ee-stat-card--orange .ee-stat-card__label { color: rgba(255,255,255,.75); }

.ee-stat-card--blue .ee-stat-card__icon   { background: rgba(255,255,255,.18); color: #fff; }
.ee-stat-card--teal .ee-stat-card__icon   { background: rgba(255,255,255,.18); color: #fff; }
.ee-stat-card--purple .ee-stat-card__icon { background: rgba(255,255,255,.18); color: #fff; }
.ee-stat-card--orange .ee-stat-card__icon { background: rgba(255,255,255,.18); color: #fff; }

/* ── PANEL / CARD ───────────────────────────────────────── */
.ee-panel {
  background: #fff;
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}

.ee-panel__head {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--ee-border);
}

.ee-panel__title {
  font-size: .92rem; font-weight: 800; color: var(--ee-ink);
  margin: 0;
}

.ee-panel__body { padding: 1.25rem; }

.ee-panel__link {
  font-size: .78rem; font-weight: 700; color: var(--ee-primary);
  text-decoration: none;
}
.ee-panel__link:hover { color: var(--ee-primary-d); text-decoration: underline; }

/* ── WELCOME BANNER ─────────────────────────────────────── */
.ee-welcome {
  position: relative;
  overflow: hidden;
  border-radius: var(--ee-radius-xl);
  padding: 2rem 2rem 2rem 2.25rem;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 50%, #0d9488 100%);
  color: #fff;
  margin-bottom: 1.5rem;
  box-shadow: 0 8px 32px rgba(37,99,235,.3);
}

.ee-welcome::before {
  content: '';
  position: absolute; top: -40px; right: -40px;
  width: 220px; height: 220px;
  background: rgba(255,255,255,.06);
  border-radius: 50%;
}

.ee-welcome::after {
  content: '';
  position: absolute; bottom: -60px; right: 120px;
  width: 160px; height: 160px;
  background: rgba(255,255,255,.04);
  border-radius: 50%;
}

.ee-welcome__school {
  position: absolute; top: 1.25rem; right: 1.25rem;
  display: flex; align-items: center; gap: .75rem;
  padding: .6rem 1rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 12px;
  backdrop-filter: blur(10px);
  color: #fff;
  font-size: .8rem; font-weight: 700;
  text-decoration: none;
}

.ee-welcome__logo {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: rgba(255,255,255,.2);
  display: grid; place-items: center;
  font-weight: 900; font-size: .82rem;
}

.ee-welcome h2 {
  font-size: 1.55rem; font-weight: 800;
  margin: 0 0 .3rem;
}

.ee-welcome p { margin: 0; opacity: .8; font-size: .9rem; }

.ee-welcome__meta {
  display: flex; gap: 1.5rem; margin-top: 1rem; flex-wrap: wrap;
}

.ee-welcome__meta-item {
  display: flex; align-items: center; gap: .45rem;
  font-size: .8rem; font-weight: 600; opacity: .85;
}

/* ── MODULE TILES ───────────────────────────────────────── */
.ee-module-tile {
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  padding: 1.25rem .75rem;
  background: #fff;
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius-lg);
  box-shadow: var(--sh-sm);
  text-decoration: none;
  color: var(--ee-ink);
  transition: box-shadow .18s, transform .18s, border-color .18s;
  text-align: center;
}

.ee-module-tile:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-3px);
  border-color: rgba(37,99,235,.25);
  color: var(--ee-ink);
}

.ee-module-tile__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 1.35rem;
}

.ee-module-tile__name {
  font-size: .78rem; font-weight: 800;
  line-height: 1.2;
}

/* ── NOTIFICATION ITEM ──────────────────────────────────── */
.ee-notif {
  display: flex; align-items: flex-start; gap: .75rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--ee-border);
}

.ee-notif:last-child { border-bottom: none; padding-bottom: 0; }
.ee-notif:first-child { padding-top: 0; }

.ee-notif__icon {
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  font-size: .95rem;
}

.ee-notif__title { font-size: .84rem; font-weight: 700; margin: 0 0 .1rem; }
.ee-notif__sub   { font-size: .76rem; color: var(--ee-muted); margin: 0; }
.ee-notif__time  { font-size: .7rem; color: var(--ee-muted); white-space: nowrap; margin-left: auto; }
.ee-notif__dot   { width: 7px; height: 7px; border-radius: 50%; background: var(--ee-danger); flex-shrink: 0; margin-top: .35rem; }

/* ── NOTIFICATION DROPDOWN (topbar bell) ────────────────── */
.ee-notif-panel { width: 360px; max-width: calc(100vw - 2rem); border-radius: 14px; overflow: hidden; }
.ee-notif-item { display: flex; align-items: flex-start; gap: .65rem; padding: .7rem .9rem; border-bottom: 1px solid var(--ee-border); cursor: pointer; transition: background .12s; position: relative; }
.ee-notif-item:last-child { border-bottom: none; }
.ee-notif-item:hover { background: var(--ee-surface-2); }
.ee-notif-item.unread { background: var(--ee-primary-s); }
.ee-notif-item.unread:hover { background: color-mix(in srgb, var(--ee-primary-s) 70%, var(--ee-surface-2)); }
.ee-notif-item__icon { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; background: #eff6ff; color: var(--ee-primary); display: grid; place-items: center; font-size: .9rem; }
.ee-notif-item__body { flex: 1; min-width: 0; }
.ee-notif-item__title { font-size: .8rem; font-weight: 700; color: var(--ee-ink); }
.ee-notif-item__msg { font-size: .74rem; color: var(--ee-muted); margin-top: .1rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ee-notif-item__time { font-size: .66rem; color: var(--ee-muted); margin-top: .25rem; }
.ee-notif-item__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ee-primary); flex-shrink: 0; margin-top: .3rem; }

/* ── EVENT ITEM ─────────────────────────────────────────── */
.ee-event {
  display: flex; align-items: center; gap: .85rem;
  padding: .75rem 0;
  border-bottom: 1px solid var(--ee-border);
}

.ee-event:last-child { border-bottom: none; padding-bottom: 0; }
.ee-event:first-child { padding-top: 0; }

.ee-event__date {
  width: 44px; flex: 0 0 44px;
  text-align: center; line-height: 1;
}

.ee-event__day   { font-size: 1.25rem; font-weight: 900; color: var(--ee-primary); line-height: 1; }
.ee-event__month { font-size: .64rem; font-weight: 800; color: var(--ee-muted); text-transform: uppercase; }
.ee-event__title { font-size: .84rem; font-weight: 700; margin: 0 0 .15rem; }
.ee-event__sub   { font-size: .73rem; color: var(--ee-muted); }
.ee-event__time  { font-size: .75rem; font-weight: 700; color: var(--ee-muted); margin-left: auto; white-space: nowrap; }

/* ── TIMETABLE ITEM ─────────────────────────────────────── */
.ee-lesson {
  display: flex; align-items: center; gap: .8rem;
  padding: .65rem .9rem;
  border-radius: 10px;
  background: var(--ee-surface-2);
  margin-bottom: .5rem;
  border-left: 3px solid var(--ee-primary);
}

.ee-lesson--green  { border-color: var(--ee-teal); }
.ee-lesson--orange { border-color: var(--ee-warning); }
.ee-lesson--purple { border-color: var(--ee-purple); }

.ee-lesson__time  { font-size: .72rem; font-weight: 700; color: var(--ee-muted); white-space: nowrap; min-width: 80px; }
.ee-lesson__icon  { width: 30px; height: 30px; border-radius: 8px; background: var(--ee-primary-s); color: var(--ee-primary); display: grid; place-items: center; font-size: .85rem; flex-shrink: 0; }
.ee-lesson__name  { font-size: .84rem; font-weight: 700; }
.ee-lesson__class { font-size: .73rem; color: var(--ee-muted); }
.ee-lesson__badge { margin-left: auto; font-size: .68rem; font-weight: 800; padding: .2rem .5rem; border-radius: 999px; }

/* ── QUICK ACTION BUTTONS ───────────────────────────────── */
.ee-quick-action {
  display: flex; align-items: center; gap: .65rem;
  padding: .7rem .85rem;
  background: var(--ee-surface-2);
  border: 1px solid var(--ee-border);
  border-radius: 10px;
  text-decoration: none;
  color: var(--ee-ink);
  font-size: .82rem; font-weight: 700;
  transition: background .15s, border-color .15s, color .15s;
  cursor: pointer;
  width: 100%;
}

.ee-quick-action:hover {
  background: var(--ee-primary-s);
  border-color: rgba(37,99,235,.3);
  color: var(--ee-primary);
}

.ee-quick-action i { font-size: 1rem; color: var(--ee-primary); }

/* ── PAGE HEADER ────────────────────────────────────────── */
.ee-page-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

.ee-page-header h1 {
  font-size: 1.4rem; font-weight: 800; margin: 0;
  color: var(--ee-ink);
}

.ee-page-header__kicker {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 800;
  color: var(--ee-primary);
  background: var(--ee-primary-s);
  padding: .2rem .65rem;
  border-radius: 999px;
  margin-bottom: .3rem;
}

/* ── BREADCRUMB ─────────────────────────────────────────── */
.ee-breadcrumb {
  display: flex; align-items: center; gap: .35rem;
  font-size: .78rem; color: var(--ee-muted); margin-bottom: 1.5rem; flex-wrap: wrap;
}

.ee-breadcrumb a { color: var(--ee-muted); text-decoration: none; font-weight: 600; }
.ee-breadcrumb a:hover { color: var(--ee-primary); }
.ee-breadcrumb i { font-size: .65rem; }

/* ── DATA TABLE ─────────────────────────────────────────── */
.ee-table-wrap {
  background: #fff;
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}

.ee-table-wrap .table { margin: 0; }

.ee-table-wrap thead th {
  background: var(--ee-surface-2);
  color: var(--ee-muted);
  font-size: .72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  border-bottom: 1px solid var(--ee-border);
  padding: .85rem 1rem;
  white-space: nowrap;
  position: sticky; top: 0; z-index: 2;
}

.ee-table-wrap tbody td { padding: .8rem 1rem; vertical-align: middle; border-color: var(--ee-border); font-size: .855rem; }
.ee-table-wrap tbody tr:hover td { background: var(--ee-surface-2); }
.ee-table-wrap tbody tr:last-child td { border-bottom: none; }

/* ── AVATAR ─────────────────────────────────────────────── */
.ee-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ee-primary), var(--ee-teal));
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-size: .78rem; font-weight: 800;
  flex-shrink: 0;
}

.ee-avatar--lg { width: 46px; height: 46px; font-size: .95rem; }

/* ── FILTER BAR ─────────────────────────────────────────── */
.ee-filter-bar {
  display: flex; align-items: center; gap: .65rem; flex-wrap: wrap;
  padding: .85rem 1rem;
  background: #fff;
  border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius-lg);
  box-shadow: var(--sh-sm);
  margin-bottom: 1rem;
}

/* ── BADGES ─────────────────────────────────────────────── */
.badge { border-radius: 999px; font-weight: 700; }
.ee-badge-role  { padding: .25rem .6rem; border-radius: 999px; font-size: .7rem; font-weight: 800; }
.ee-badge-admin     { background: #eff6ff; color: #1d4ed8; }
.ee-badge-principal { background: #faf5ff; color: #6d28d9; }
.ee-badge-secretary { background: #f0fdf4; color: #15803d; }
.ee-badge-teacher   { background: #fff7ed; color: #c2410c; }

/* ── FORM CONTROLS ──────────────────────────────────────── */
.form-control, .form-select {
  border-color: var(--ee-border);
  border-radius: var(--ee-radius);
  min-height: 40px;
  font-size: .875rem;
}

.form-control:focus, .form-select:focus {
  border-color: var(--ee-primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

.form-label { font-weight: 700; font-size: .82rem; color: #374151; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  border-radius: var(--ee-radius) !important;
  font-weight: 700;
  font-size: .855rem;
  transition: all .15s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--ee-primary);
  border-color: var(--ee-primary);
  box-shadow: 0 4px 14px rgba(37,99,235,.25);
}

.btn-primary:hover {
  background: var(--ee-primary-d);
  border-color: var(--ee-primary-d);
  box-shadow: 0 6px 20px rgba(37,99,235,.35);
}

.btn-outline-primary { color: var(--ee-primary); border-color: rgba(37,99,235,.4); }
.btn-outline-primary:hover { background: var(--ee-primary); border-color: var(--ee-primary); }

/* ── PROGRESS ────────────────────────────────────────────── */
.ee-progress {
  height: 6px;
  background: var(--ee-border);
  border-radius: 999px;
  overflow: hidden;
}

.ee-progress > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--ee-primary), var(--ee-teal));
  border-radius: inherit;
  transition: width .4s ease;
}

/* ── EMPTY STATE ─────────────────────────────────────────── */
.ee-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  color: var(--ee-muted);
}

.ee-empty i { font-size: 2.5rem; color: var(--ee-border); display: block; margin-bottom: .75rem; }

/* ── TOAST ───────────────────────────────────────────────── */
.ee-toast-wrap {
  position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 9999;
}

/* ── SIDEBAR OVERLAY (mobile) ────────────────────────────── */
.ee-overlay {
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1039;
  backdrop-filter: blur(2px);
}

/* ── ROLE RIBBON ─────────────────────────────────────────── */
.ee-role-strip {
  padding: .3rem 1.5rem;
  font-size: .75rem; font-weight: 700;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}

.ee-role-strip--secretary { background: #f0fdf4; color: #15803d; border-bottom: 1px solid #bbf7d0; }
.ee-role-strip--teacher   { background: #fff7ed; color: #c2410c; border-bottom: 1px solid #fed7aa; }
.ee-role-strip--principal { background: #eff6ff; color: #1d4ed8; border-bottom: 1px solid #bfdbfe; }
.ee-role-strip--counselor { background: #faf5ff; color: #6d28d9; border-bottom: 1px solid #ddd6fe; }
.ee-role-strip--default   { background: var(--ee-surface-2); color: var(--ee-muted); border-bottom: 1px solid var(--ee-border); }

/* ── CHART CONTAINER ─────────────────────────────────────── */
.ee-chart { position: relative; }

/* ── MINI CALENDAR ───────────────────────────────────────── */
.ee-cal { width: 100%; }
.ee-cal__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .75rem; }
.ee-cal__head h6 { margin: 0; font-weight: 800; font-size: .88rem; }
.ee-cal__head-btn { width: 28px; height: 28px; border: 1px solid var(--ee-border); border-radius: 7px; background: none; cursor: pointer; display: grid; place-items: center; font-size: .8rem; color: var(--ee-muted); transition: background .12s; }
.ee-cal__head-btn:hover { background: var(--ee-primary-s); color: var(--ee-primary); }
.ee-cal__grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.ee-cal__day-name { font-size: .65rem; font-weight: 800; color: var(--ee-muted); text-transform: uppercase; padding: .25rem 0; }
.ee-cal__day { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 600; color: var(--ee-ink); cursor: pointer; transition: background .12s; margin: 0 auto; }
.ee-cal__day:hover { background: var(--ee-primary-s); color: var(--ee-primary); }
.ee-cal__day--today { background: var(--ee-primary); color: #fff; font-weight: 800; }
.ee-cal__day--today:hover { background: var(--ee-primary-d); color: #fff; }
.ee-cal__day--other { color: var(--ee-border); }
.ee-cal__day--has-event { position: relative; }
.ee-cal__day--has-event::after { content: ''; position: absolute; bottom: 3px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--ee-primary); }
.ee-cal__day--today.ee-cal__day--has-event::after { background: rgba(255,255,255,.8); }

/* ── SIDEBAR COLLAPSE (desktop) ─────────────────────────── */
.ee-shell.sb-collapsed .ee-sidebar { width: var(--sb-width-col); }
.ee-shell.sb-collapsed .ee-sidebar__app-name,
.ee-shell.sb-collapsed .ee-nav-section__label,
.ee-shell.sb-collapsed .ee-nav-item__text,
.ee-shell.sb-collapsed .ee-nav-item__badge,
.ee-shell.sb-collapsed .ee-nav-item__arrow,
.ee-shell.sb-collapsed .ee-nav-sub,
.ee-shell.sb-collapsed .ee-sidebar__user-info { display: none; }
.ee-shell.sb-collapsed .ee-sidebar__brand { justify-content: center; padding: .8rem .4rem; }
.ee-shell.sb-collapsed .ee-sidebar__logo { width: 48px; height: 48px; flex-basis: 48px; padding: 3px; border-radius: 13px; }
.ee-shell.sb-collapsed .ee-sidebar__footer .ee-sidebar__user { justify-content: center; padding: .6rem; }
.ee-shell.sb-collapsed .ee-sidebar__nav { padding: .5rem; }
.ee-shell.sb-collapsed .ee-nav-section { padding: 0 0; }
.ee-shell.sb-collapsed .ee-nav-item { justify-content: center; padding: .65rem; gap: 0; border-left: none !important; margin-left: 0 !important; padding-left: .65rem !important; }
.ee-shell.sb-collapsed .ee-nav-item.active { border-left: 2px solid var(--sb-active-bd) !important; margin-left: -2px !important; padding-left: calc(.65rem + 2px) !important; }
.ee-shell.sb-collapsed .ee-content { margin-left: var(--sb-width-col); }
.ee-shell.sb-collapsed .ee-topbar { left: var(--sb-width-col); }

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 1023.98px) {
  .ee-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
    z-index: 1050;
  }

  .ee-sidebar.open {
    transform: translateX(0);
    box-shadow: var(--sh-xl);
  }

  .ee-overlay.active { display: block; }

  .ee-content { margin-left: 0; overflow-x: hidden; }
  .ee-topbar { left: 0; }
  .ee-topbar__year { display: none; }
}

@media (max-width: 639.98px) {
  .ee-page { padding: 1rem; }
  .ee-welcome { padding: 1.25rem; }
  .ee-welcome__school { position: static; margin-bottom: 1rem; display: inline-flex; }
  .ee-welcome h2 { font-size: 1.2rem; }
  .ee-topbar__search { display: none; }
  .ee-stat-card__value { font-size: 1.5rem; }
}

@media print {
  .ee-sidebar, .ee-topbar, .ee-filter-bar, .btn, .pagination { display: none !important; }
  .ee-content { margin-left: 0; padding-top: 0; }
  body { background: #fff !important; }
  .ee-panel, .ee-table-wrap { box-shadow: none !important; }
}

/* ── LEGACY COMPAT (for views not yet updated) ───────────── */
.ee-kicker {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .3rem .7rem;
  color: var(--ee-primary); background: var(--ee-primary-s);
  border-radius: 999px; font-size: .78rem; font-weight: 800;
}

.ee-tile {
  display: block; height: 100%;
  padding: 1rem; color: var(--ee-ink);
  background: #fff; border: 1px solid var(--ee-border);
  border-radius: var(--ee-radius); text-decoration: none;
  box-shadow: var(--sh-sm); transition: box-shadow .15s, transform .15s;
}

.ee-tile:hover { color: var(--ee-ink); box-shadow: var(--sh-md); transform: translateY(-2px); border-color: rgba(37,99,235,.3); }
.ee-tile .icon { width: 42px; height: 42px; flex: 0 0 42px; display: inline-flex; align-items: center; justify-content: center; color: var(--ee-primary); background: var(--ee-primary-s); border-radius: var(--ee-radius); font-size: 1.2rem; }

.ee-metric { padding: 1rem; background: #fff; border: 1px solid var(--ee-border); border-radius: var(--ee-radius); box-shadow: var(--sh-sm); }
.ee-metric--accent { color: #fff; background: linear-gradient(135deg, var(--ee-primary), var(--ee-teal)); border: 0; }
.ee-metric__label { color: var(--ee-muted); font-size: .76rem; font-weight: 800; text-transform: uppercase; }
.ee-metric__value { margin-top: .25rem; font-size: 1.55rem; font-weight: 850; }
.ee-metric--accent .ee-metric__label { color: rgba(255,255,255,.76); }

.ee-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.ee-toolbar__actions { display: flex; flex-wrap: wrap; gap: .5rem; }

.ee-filter-panel { padding: 1rem; margin-bottom: 1rem; background: #fff; border: 1px solid var(--ee-border); border-radius: var(--ee-radius); box-shadow: var(--sh-sm); }
.ee-table-card { overflow: hidden; background: #fff; border: 1px solid var(--ee-border); border-radius: var(--ee-radius); box-shadow: var(--sh-sm); }
.ee-table-card .table { margin-bottom: 0; }
.ee-table-card thead th { background: var(--ee-surface-2); color: var(--ee-muted); font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--ee-border); }
.ee-table-card td, .ee-table-card th { vertical-align: middle; }
.ee-data-card { overflow: hidden; background: #fff; border: 1px solid var(--ee-border); border-radius: var(--ee-radius); box-shadow: var(--sh-sm); }
.ee-data-card__body { padding: 1rem; }
.ee-data-card__footer { display: flex; flex-wrap: wrap; gap: .5rem; padding: .8rem 1rem; background: var(--ee-surface-2); border-top: 1px solid var(--ee-border); }
.ee-section-title { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.ee-section-title h3, .ee-section-title h5 { margin: 0; font-weight: 800; }
.ee-soft-pill { display: inline-flex; align-items: center; gap: .4rem; width: max-content; min-height: 30px; padding: .3rem .7rem; color: #315078; background: #eef4ff; border: 1px solid #dfe9fb; border-radius: 999px; font-size: .76rem; font-weight: 800; }
.ee-soft-alert { color: #5d4a1b; background: #fff8e8; border: 1px solid #f1dfad; border-radius: var(--ee-radius); }
.ee-soft-panel { border: 1px solid var(--ee-border); background: linear-gradient(180deg, #fff, #f8fbff); box-shadow: var(--sh-sm); }
.ee-mini-stat { height: 100%; display: flex; align-items: center; gap: .75rem; padding: .95rem 1rem; color: var(--ee-ink); background: rgba(255,255,255,.78); border: 1px solid var(--ee-border); border-radius: var(--ee-radius); box-shadow: var(--sh-sm); }
.ee-mini-stat i { width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center; color: var(--ee-primary); background: var(--ee-primary-s); border-radius: var(--ee-radius); }
.ee-empty-state { padding: 1.25rem; border: 1px dashed #c9d4e6; border-radius: var(--ee-radius); background: #fff; }
.ee-inline-actions { display: inline-flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .35rem; }
.ee-page-intro { padding: 1.25rem; margin-bottom: 1rem; color: #fff; background: linear-gradient(135deg, var(--ee-primary), var(--ee-teal)); border-radius: var(--ee-radius); box-shadow: var(--sh-md); }
.ee-sticky-actions { position: sticky; bottom: 0; z-index: 20; padding: .75rem 0; background: linear-gradient(180deg, rgba(248,250,252,0), var(--ee-surface-2) 22%); }
.card { border-color: var(--ee-border); box-shadow: var(--sh-sm); border-radius: var(--ee-radius) !important; }
.card-header { background: #fff; border-bottom-color: var(--ee-border); font-weight: 700; }
.dropdown-menu { border: 1px solid var(--ee-border); border-radius: var(--ee-radius); box-shadow: var(--sh-md); }
.dropdown-item { border-radius: 6px; margin: 2px 6px; width: calc(100% - 12px); }
.dropdown-item.active, .dropdown-item:active { background: var(--ee-primary); }
.table { --bs-table-bg: #fff; }
.table thead th { color: var(--ee-muted); background: var(--ee-surface-2); border-bottom-color: var(--ee-border); font-size: .78rem; text-transform: uppercase; }
.table td, .table th { vertical-align: middle; }

/* SmartCampus styles kept for compat */
.smart-hero { overflow: hidden; border-radius: 18px; padding: clamp(1.25rem,4vw,3rem); color: rgba(255,255,255,.86); background: linear-gradient(135deg,rgba(18,31,58,.96),rgba(37,99,235,.86) 58%,rgba(13,148,136,.82)),url("../icons/logo-source.jpg") center/cover no-repeat; box-shadow: 0 24px 60px rgba(37,99,235,.18); }
.smart-hero h1 { max-width: 780px; color: #fff; font-size: clamp(2rem,4vw,4rem); line-height: 1.02; font-weight: 900; }
.smart-hero p { max-width: 720px; margin: 1rem 0 0; font-size: 1.05rem; }
.smart-panel, .smart-module, .smart-win { border: 1px solid var(--ee-border); border-radius: var(--ee-radius); background: #fff; box-shadow: var(--sh-sm); }
.smart-panel { padding: clamp(1rem,3vw,1.5rem); }
.smart-icon, .smart-module__icon, .smart-win i { width: 46px; height: 46px; flex: 0 0 46px; display: grid; place-items: center; border-radius: 14px; color: var(--ee-primary); background: var(--ee-primary-s); font-size: 1.25rem; }
.smart-readiness { padding: 1.25rem; border-radius: 18px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.14); backdrop-filter: blur(14px); }
.smart-readiness > .d-flex i { color: #fff; font-size: 2.25rem; }
.smart-readiness .progress { height: 10px; background: rgba(255,255,255,.2); }
.smart-readiness .progress-bar { background: linear-gradient(90deg,#fff,#c3fff5); }
.smart-readiness .row span { display: block; color: #fff; font-weight: 900; font-size: 1.2rem; }
.smart-readiness .row small { color: rgba(255,255,255,.72); }
.smart-signal { display: flex; gap: .8rem; padding: .9rem; min-height: 104px; border-radius: 14px; background: var(--ee-surface-2); border: 1px solid var(--ee-border); }
.smart-signal__dot { width: 12px; height: 12px; flex: 0 0 12px; margin-top: .25rem; border-radius: 50%; background: #94a3b8; }
.smart-signal__dot--pret { background: #22c55e; }
.smart-signal__dot--foundation { background: var(--ee-primary); }
.smart-signal__dot--a-connecter { background: #f59e0b; }
.smart-win { display: flex; gap: .85rem; min-height: 140px; padding: 1rem; }
.smart-pillar__title { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .75rem; padding: .8rem 1rem; border-radius: var(--ee-radius); background: var(--ee-surface-2); border: 1px solid var(--ee-border); }
.smart-pillar__title h3 { margin: 0; font-size: 1rem; font-weight: 900; }
.smart-pillar__title span { color: #64748b; font-size: .82rem; font-weight: 800; }
.smart-module { padding: 1rem; }
.smart-module h4 { margin: 1rem 0 .55rem; font-size: 1rem; font-weight: 900; }
.smart-module p { min-height: 72px; color: #64748b; font-size: .9rem; }
.smart-module ul { display: grid; gap: .35rem; margin: 0; padding-left: 1.1rem; color: #334155; font-size: .86rem; }
.smart-risk-card { padding: 1rem; border-radius: 14px; background: #fff; border: 1px solid var(--ee-border); box-shadow: var(--sh-sm); }
.smart-risk-card .row strong, .smart-risk-card .row span { display: block; }
.smart-risk-card .row div { padding: .65rem; border-radius: 12px; background: var(--ee-surface-2); text-align: center; }
.smart-risk-card .row span { color: #64748b; font-size: .72rem; font-weight: 800; }
.smart-risk-table td, .smart-risk-table th { vertical-align: middle; }
.smart-risk-progress { height: 9px; background: #e2e8f0; }
.smart-chat { display: grid; gap: .75rem; max-height: 320px; overflow-y: auto; padding-right: .25rem; }
.smart-chat__bubble { max-width: 92%; padding: .85rem 1rem; border-radius: 16px; font-weight: 600; white-space: pre-wrap; }
.smart-chat__bubble--user { justify-self: end; color: #fff; background: var(--ee-primary); border-bottom-right-radius: 4px; }
.smart-chat__bubble--ai { color: #24324c; background: #f2f6fb; border-bottom-left-radius: 4px; }
.smart-module-page .smart-module-hero { overflow: hidden; border-radius: 18px; padding: clamp(1.25rem,4vw,2.5rem); color: rgba(255,255,255,.86); background: linear-gradient(135deg,#101f39,#2563eb 58%,#0f9f8f); box-shadow: 0 24px 60px rgba(37,99,235,.18); }
.smart-module-hero h1 { color: #fff; font-size: clamp(2rem,4vw,3.6rem); line-height: 1.02; font-weight: 900; }
.smart-module-hero p { max-width: 760px; font-size: 1.05rem; }
.smart-module-hero__icon { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; color: #fff; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.24); font-size: 1.7rem; }
.smart-module-readiness { padding: 1.25rem; border-radius: 18px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.13); }
.smart-module-readiness i { color: #fff; font-size: 2rem; }
.smart-module-readiness .progress { height: 10px; background: rgba(255,255,255,.2); }
.smart-module-readiness .progress-bar { background: linear-gradient(90deg,#fff,#bff7ee); }
.smart-step-list { display: grid; gap: .75rem; }
.smart-step { display: flex; align-items: center; gap: .75rem; padding: .8rem; border-radius: 14px; background: var(--ee-surface-2); border: 1px solid var(--ee-border); }
.smart-step i { color: #16a34a; font-size: 1.1rem; }
.smart-step--integration i { color: var(--ee-primary); }
.smart-token-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.smart-token-list span { padding: .45rem .75rem; border-radius: 999px; color: #1e3a8a; background: #eff6ff; font-size: .84rem; font-weight: 800; }
.smart-data-mini { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.smart-data-mini div { padding: .8rem; border-radius: 14px; background: var(--ee-surface-2); text-align: center; }
.smart-data-mini strong, .smart-data-mini small { display: block; }
.smart-data-mini small { color: #64748b; font-size: .72rem; font-weight: 800; }
.smart-screen-card { display: flex; align-items: center; gap: .85rem; min-height: 92px; padding: .9rem; border-radius: 14px; background: #fff; border: 1px solid var(--ee-border); }
.smart-screen-card i { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 12px; color: #0f766e; background: #ccfbf1; }
.smart-console { overflow: hidden; border-radius: 16px; background: #0f172a; box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.smart-console__bar { display: flex; gap: .35rem; padding: .8rem; background: #111827; }
.smart-console__bar span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.smart-console__bar span:nth-child(2) { background: #fbbf24; }
.smart-console__bar span:nth-child(3) { background: #34d399; }
.smart-console__body { display: grid; gap: .35rem; min-height: 178px; padding: 1rem; color: #dbeafe; font-family: Consolas,"Courier New",monospace; font-size: .86rem; }
.smart-related { display: flex; align-items: center; gap: .75rem; padding: .9rem; min-height: 82px; border-radius: 14px; color: var(--ee-ink); background: var(--ee-surface-2); border: 1px solid var(--ee-border); }
.smart-related:hover { color: var(--ee-primary); background: #fff; }
.smart-related i { color: var(--ee-primary); font-size: 1.2rem; }
.smart-module-search { width: min(100%,260px); }
.smart-module-status { width: auto; min-width: 170px; }

/* Auth pages */
.ee-auth-wrap { min-height: 100vh; display: flex; align-items: center; background: var(--ee-surface-2); }
.ee-login-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0,1.05fr) minmax(400px,.95fr); background: #fff; }
.ee-login-media { position: relative; overflow: hidden; display: flex; align-items: stretch; color: #fff; background: linear-gradient(135deg,rgba(19,31,55,.92),rgba(37,99,235,.7)),url("../icons/logo-source.jpg") center/cover no-repeat; }
.ee-login-media__content { position: relative; z-index: 1; width: min(720px,100%); display: flex; flex-direction: column; justify-content: space-between; gap: 3rem; padding: clamp(2rem,6vw,5rem); }
.ee-login-brand { display: inline-flex; align-items: center; gap: .85rem; color: #fff; font-weight: 900; font-size: 1.05rem; }
.ee-login-brand:hover { color: #fff; }
.ee-login-media h1 { max-width: 640px; color: #fff; font-size: clamp(2.5rem,4.2vw,3.6rem); font-weight: 900; line-height: 1.02; text-wrap: balance; }
.ee-login-media p { max-width: 620px; margin: 1rem 0 0; color: rgba(255,255,255,.82); font-size: 1.05rem; }
.ee-login-points { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: .75rem; }
.ee-login-points div { min-height: 96px; padding: .9rem; border: 1px solid rgba(255,255,255,.2); border-radius: var(--ee-radius); background: rgba(255,255,255,.12); backdrop-filter: blur(10px); }
.ee-login-points i { display: block; margin-bottom: .65rem; font-size: 1.25rem; }
.ee-login-points span { color: rgba(255,255,255,.84); font-size: .82rem; font-weight: 700; }
.ee-login-panel { display: flex; align-items: center; justify-content: center; padding: clamp(1rem,5vw,4rem); background: #fff; }
.ee-login-card { width: min(100%,460px); padding: clamp(1.35rem,4vw,2.4rem); background: rgba(255,255,255,.96); border: 1px solid var(--ee-border); border-radius: var(--ee-radius-lg); box-shadow: var(--sh-xl); }
.ee-login-card .input-group-text { color: var(--ee-primary); background: var(--ee-primary-s); border-color: var(--ee-border); }
.ee-login-card .input-group-lg > .form-control, .ee-login-card .input-group-lg > .input-group-text, .ee-login-card .input-group-lg > .btn { min-height: 52px; }
.ee-logo-fallback { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg,var(--ee-primary),var(--ee-teal)); border-radius: var(--ee-radius); box-shadow: var(--sh-sm); font-weight: 900; line-height: 1; }
.ee-brand-mark { width: 34px; height: 34px; border-radius: var(--ee-radius); display: inline-flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg,var(--ee-primary),var(--ee-teal)); font-weight: 800; }
@media (max-width: 991.98px) { .ee-login-shell { display: block; } .ee-login-media { display: none; } .ee-login-panel { min-height: 100vh; } }

/* Footer */
.ee-footer { color: var(--ee-muted); background: #fff; border-top: 1px solid var(--ee-border); padding: 1rem 1.5rem; font-size: .78rem; }

/* CT / bulletin template editor compat */
.ee-ct .card-header { background: linear-gradient(135deg,rgba(37,99,235,.08),rgba(13,148,136,.08)); }
@keyframes ee-pulse { to { box-shadow: 0 0 0 .75rem rgba(194,65,65,0); } }
.ee-ct .btn.btn-danger[data-stt-btn] { box-shadow: 0 0 0 0 rgba(194,65,65,.55); animation: ee-pulse 1.2s infinite; }
.ee-muted { opacity: .66; }
.ee-chip { display: inline-flex; align-items: center; gap: .35rem; background: #eef2f8; border: 1px solid transparent; border-radius: 999px; padding: .2rem .6rem; color: #334155; font-size: .8rem; font-weight: 700; text-decoration: none; }
.ee-chip:hover { color: var(--ee-primary); background: #fff; border-color: rgba(37,99,235,.25); }
.ee-chip__dot { width: .5rem; height: .5rem; flex: 0 0 .5rem; border-radius: 50%; background: var(--ee-primary); }
.ee-ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
