/* ==========================================================================
   Eduplex-style theme: dark floating sidebar, lime accent, soft rounded cards.
   Loaded AFTER app.css, so it restyles the whole system without a rebuild.
   ========================================================================== */
:root {
  --ink: #16161c;
  --ink-2: #24242d;
  --lime: #d6f45a;
  --lime-d: #c3e43a;
  --lime-soft: #eefac0;
  --bg: #eef0e8;
  --card: #ffffff;
  --line: #e6e9de;
  --muted: #7a7f70;
  --text: #23251f;
  --link: #3f6212;
  --peach: #ffe6da;
  --lav: #e9e4ff;
  --sky: #dbeafe;
  --mint: #dcf5e4;
  --radius: 20px;
  --blue: var(--ink);
  --blue-d: #000;
  --navy: var(--ink);
  --navy2: var(--ink-2);
}

@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('../fonts/plus-jakarta-sans.woff2') format('woff2'); }
html { font-family: Inter, 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; }
/* Main content gets the new typeface; the sidebar keeps its original font. */
.rx-main, .rx-guest { font-family: 'Plus Jakarta Sans', Inter, 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; letter-spacing: -.003em; }
.rx-main h1, .rx-main h2, .rx-main h3, .rx-top-title, .rx-num { letter-spacing: -.02em; }
.rx-sb { font-family: Inter, 'Segoe UI', system-ui, -apple-system, Roboto, sans-serif; letter-spacing: normal; }
body { background: var(--bg); color: var(--text); }
a { color: inherit; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* ---------- Sidebar (floating dark panel) ---------- */
.rx-sb { inset: .75rem auto .75rem .75rem; width: 15rem; background: var(--ink); border-radius: 26px; box-shadow: 0 10px 30px rgba(22, 22, 28, .18); overflow: hidden; }
.rx-brand { border-bottom: 0; padding: 1.25rem 1.25rem .6rem; gap: .65rem; }
.rx-brand a, .rx-brand a:hover { font-size: 1.15rem; letter-spacing: -.01em; white-space: normal; line-height: 1.2; }
.rx-brand .app-brand-mark, .rx-brand .rx-dot { background: var(--lime) !important; color: var(--ink) !important; border-radius: 12px; width: 2.1rem; height: 2.1rem; font-weight: 800; }
.rx-nav { padding: .4rem .85rem 1rem; }
.rx-label { color: #5d6070; font-size: .66rem; padding: 1.1rem .75rem .35rem; }
.rx-link { color: #b9bccb; border-radius: 14px; padding: .72rem .85rem; font-weight: 600; font-size: .92rem; gap: .75rem; transition: background .15s, color .15s; }
.rx-link:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.rx-link.on { background: var(--lime); color: var(--ink); box-shadow: none; font-weight: 700; }
.rx-link .ic { width: 1.25rem; font-size: 1.05rem; opacity: .95; }
.rx-foot { border-top: 0; padding: .6rem .85rem 1rem; }
.rx-foot .rx-user { background: var(--ink-2); border-radius: 16px; padding: .65rem .7rem; margin-bottom: .45rem; }
.rx-user small { color: #8a8d9e; }
.rx-foot form .rx-link { color: #8a8d9e; font-size: .85rem; padding: .55rem .85rem; }

/* ---------- Top bar ---------- */
.rx-main { margin-left: 16rem; }
.rx-top { background: transparent; border: 0; height: auto; min-height: 4.75rem; padding: 1.1rem 2.75rem .25rem 1.75rem; position: static; gap: 1rem; }
.rx-top-title { font-size: 1.85rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); line-height: 1.15; }
.rx-search { display: flex; align-items: center; gap: .55rem; background: #fff; border-radius: 999px; padding: .15rem .35rem .15rem 1rem; width: 17rem; max-width: 100%; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.rx-search span { color: var(--muted); }
.rx-search input { border: 0 !important; box-shadow: none !important; background: transparent; padding: .6rem .2rem !important; width: 100%; font-size: .9rem; border-radius: 0 !important; }
.rx-search input:focus { outline: none; box-shadow: none !important; }
.rx-topright { display: flex; align-items: center; gap: .9rem; margin-left: auto; }
.rx-pill { gap: .6rem; }
.rx-pill .rx-dot, .rx-dot { background: var(--lime); color: var(--ink); font-weight: 800; }
.rx-pill .nm { font-weight: 700; color: var(--ink); font-size: .9rem; }
.rx-pill small { display: block; color: var(--muted); font-size: .7rem; font-weight: 500; }
.rx-burger { background: #fff; border: 0; border-radius: 12px; padding: .4rem .7rem; }
.rx-page { padding: .75rem 2.75rem 2.5rem 1.75rem; max-width: none; }
.rx-h1 { font-size: 1.7rem; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.rx-banner { border-radius: 14px; margin: .5rem 2.75rem 0 1.75rem; border: 0 !important; }
@media (max-width: 1023px) {
  .rx-sb { transform: translateX(-110%); }
  .rx-main { margin-left: 0; }
  .rx-top { padding: .8rem .9rem .2rem; }
  .rx-top-title { font-size: 1.35rem; }
  .rx-page { padding: .6rem .9rem 2rem; }
  .rx-search { display: none; }
  .rx-banner { margin: .5rem .9rem 0; }
}

/* ---------- Cards, stats, buttons ---------- */
.rx-card, .bg-white.shadow-sm, .bg-white.shadow { background: var(--card); border: 0; border-radius: var(--radius); box-shadow: 0 1px 2px rgba(22, 22, 28, .04); }
.rx-card { padding: 1.35rem; }
.rx-card h3 { font-size: 1.1rem; font-weight: 800; letter-spacing: -.01em; color: var(--ink); }
.sm\:rounded-lg { border-radius: var(--radius); }
.rounded-md { border-radius: 12px; }
.rx-stats { gap: 1rem; margin-bottom: 1rem; }
.rx-stat { border: 0; border-radius: var(--radius); padding: 1.15rem 1.25rem; box-shadow: 0 1px 2px rgba(22, 22, 28, .04); }
.rx-ico { border-radius: 16px; }
.rx-ico.g { background: var(--mint); } .rx-ico.y { background: var(--lime-soft); } .rx-ico.c { background: var(--sky); } .rx-ico.r { background: var(--peach); } .rx-ico.b { background: var(--lav); }
.rx-num { color: var(--ink); font-weight: 800; letter-spacing: -.02em; }
.rx-sub { color: var(--muted); }
.rx-grid, .rx-grid3 { gap: 1rem; margin-bottom: 1rem; }
.rx-btn { border: 0; border-radius: 14px; background: #f1f3ea; color: var(--ink); padding: .8rem 1rem; transition: background .15s, transform .05s; }
.rx-btn:hover { background: #e6e9da; }
.rx-btn:active { transform: scale(.98); }
.rx-btn.pri { background: var(--lime); color: var(--ink); }
.rx-btn.pri:hover { background: var(--lime-d); }
.rx-bar { background: #d9dccd; border-radius: 10px; }
.rx-bars { border-bottom: 0; }
.rx-row { color: var(--muted); }
.rx-row b { color: var(--ink); }
.rx-tag { border-radius: 999px; padding: .12rem .6rem; }
.rx-tabs { border: 0; background: #fff; border-radius: 999px; padding: 4px; }
.rx-tabs a { border-radius: 999px; padding: .45rem 1.2rem; color: var(--muted); }
.rx-tabs a.on { background: var(--ink); color: #fff; }
.rx-link-btn { border: 0; background: #f1f3ea; color: var(--ink); border-radius: 999px; padding: .35rem .95rem; }
.rx-link-btn:hover { background: var(--lime); }
.rx-punch { border-radius: 16px; background: var(--ink); color: var(--lime); }
.rx-punch:hover { background: #000; }
.rx-punch.out { background: #e5484d; color: #fff; }
.rx-clock .t { color: var(--ink); }

/* ---------- Tables ---------- */
table { font-size: .93rem; }
thead, thead th, .rx-tbl th, .rx-att thead th { background: transparent; }
thead th, .rx-tbl th { color: var(--muted); font-size: .72rem; letter-spacing: .07em; font-weight: 700; border-bottom: 1px solid var(--line); }
tbody tr:hover, .rx-tbl tbody tr:hover { background: #f8f9f3; }
.rx-tbl td, td { border-color: #f0f2ea; }
.rx-tbl-head { border-bottom: 1px solid var(--line); }
.rx-tbl-head h3 { font-weight: 800; color: var(--ink); }
.divide-gray-200 > :not([hidden]) ~ :not([hidden]), .divide-gray-100 > :not([hidden]) ~ :not([hidden]) { border-color: #f0f2ea; }
.rx-av { background: var(--lav); color: #4c3fa8; font-weight: 800; }
.rx-st { border-radius: 999px; }
.rx-st.ok { background: var(--mint); color: #14532d; } .rx-st.late { background: #fff1c2; color: #7a4a05; } .rx-st.half { background: var(--lime-soft); color: #4d5d05; } .rx-st.bad { background: var(--peach); color: #9a2a1b; }
.rx-att th, .rx-att td { border-color: #eceee4; }
.rx-att .rx-att-name { background: #fff; }
.rx-att th.off, .rx-att td.off { background: #f4f5ee; }
.rx-c { border-radius: 8px; }

/* ---------- Forms & legacy Tailwind buttons ---------- */
input:not([type='checkbox']):not([type='radio']):not([type='file']):not([type='hidden']), select, textarea {
  border: 1px solid var(--line); background: #fbfcf8; border-radius: 14px; padding: .65rem .85rem; transition: border-color .15s, box-shadow .15s;
}
input:not([type='checkbox']):not([type='radio']):focus, select:focus, textarea:focus { border-color: var(--ink) !important; box-shadow: 0 0 0 3px var(--lime) !important; outline: none; background: #fff; }
input[type='checkbox'], input[type='radio'] { accent-color: var(--ink); }
label, .block.font-medium { font-weight: 600; }
.bg-indigo-600, .bg-gray-800, .bg-blue-600 { background-color: var(--ink) !important; color: #fff; }
.hover\:bg-indigo-500:hover, .hover\:bg-gray-700:hover, .hover\:bg-blue-500:hover { background-color: #000 !important; }
button.bg-indigo-600, a.bg-indigo-600, button.bg-gray-800, a.bg-gray-800, [type='submit'].bg-indigo-600 { border-radius: 999px !important; padding-left: 1.2rem; padding-right: 1.2rem; font-weight: 700; }
.text-indigo-600, .text-indigo-700, .text-blue-600 { color: var(--link) !important; }
.hover\:text-indigo-900:hover, .hover\:underline:hover { color: var(--ink); }
.border-gray-300, .border-slate-300 { border-color: var(--line); }
.bg-green-50 { background: var(--mint); } .text-green-800, .text-green-700 { color: #14532d; }
.bg-amber-100 { background: #fff1c2; }
.bg-red-50 { background: var(--peach); } .text-red-800 { color: #8a2415; }
.rounded-2xl { border-radius: var(--radius); }
.rounded-xl { border-radius: 16px; }
.bg-gray-50 { background: #f6f7f1; }
.text-gray-900, .text-slate-900 { color: var(--ink); }
.bg-white.overflow-hidden.shadow-sm { overflow: hidden; }
.rx-page .max-w-7xl, .rx-page .max-w-5xl, .rx-page .max-w-3xl { max-width: none; }
.rx-page .py-12 { padding-top: .25rem; padding-bottom: .25rem; }
.rx-page header h2, .rx-page h2.font-semibold { font-weight: 800; letter-spacing: -.01em; color: var(--ink); }

/* ---------- Dashboard (reference layout) ---------- */
.dx { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.25rem; align-items: start; }
.dx-col { display: grid; gap: 1.25rem; min-width: 0; }
.dx-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: .85rem; }
.dx-head h3 { margin: 0; font-size: 1.15rem; font-weight: 800; color: var(--ink); letter-spacing: -.01em; }
.dx-head a, .dx-head .dx-chip { font-size: .8rem; color: var(--muted); font-weight: 600; }
.dx-head a:hover { color: var(--ink); }
.dx-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.dx-emp { background: #fff; border-radius: var(--radius); padding: 1.1rem; box-shadow: 0 1px 2px rgba(22, 22, 28, .04); display: block; transition: transform .15s, box-shadow .15s; }
.dx-emp:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(22, 22, 28, .08); }
.dx-emp .top { display: flex; align-items: center; gap: .75rem; }
.dx-emp .nm { font-weight: 800; color: var(--ink); line-height: 1.2; }
.dx-emp .sm { font-size: .78rem; color: var(--muted); }
.dx-emp hr { border: 0; border-top: 1px solid var(--line); margin: .9rem 0 .7rem; }
.dx-emp .meta { display: flex; justify-content: space-between; font-size: .76rem; color: var(--muted); }
.dx-emp .meta b { display: block; color: var(--ink); font-size: .85rem; margin-top: .1rem; }
.dx-tile { width: 2.7rem; height: 2.7rem; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: .95rem; flex: none; color: var(--ink); }
.t1 { background: var(--peach); } .t2 { background: var(--lav); } .t3 { background: var(--lime-soft); } .t4 { background: var(--sky); } .t5 { background: var(--mint); }
.dx-two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 1.25rem; }
.dx-chart { display: flex; align-items: flex-end; gap: .9rem; height: 11rem; padding: 1.4rem .2rem 0; }
.dx-chart .c { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; position: relative; }
.dx-chart .b { width: 100%; max-width: 1.5rem; border-radius: 999px; background: var(--ink); min-height: .35rem; }
.dx-chart .c.hi .b { background: var(--lime); box-shadow: 0 0 0 1px #c9e540 inset; }
.dx-chart .tip { position: absolute; top: -.2rem; background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; padding: .2rem .5rem; border-radius: 8px; white-space: nowrap; }
.dx-axis { display: flex; gap: .9rem; padding: .5rem .2rem 0; font-size: .75rem; color: var(--muted); }
.dx-axis span { flex: 1; text-align: center; }
.dx-sched a { display: flex; align-items: center; gap: .8rem; padding: .7rem .15rem; border-top: 1px solid var(--line); }
.dx-sched a:first-of-type { border-top: 0; }
.dx-sched .tx { flex: 1; min-width: 0; }
.dx-sched .tx b { display: block; color: var(--ink); font-weight: 800; }
.dx-sched .tx span { font-size: .78rem; color: var(--muted); }
.dx-sched .go { color: var(--muted); font-size: 1.1rem; }
.dx-sched a:hover .go { color: var(--ink); }
.dx-list .it { display: flex; align-items: center; gap: .9rem; padding: .85rem .1rem; border-top: 1px solid var(--line); }
.dx-list .it:first-of-type { border-top: 0; }
.dx-list .tx { flex: 1; min-width: 0; }
.dx-list .tx b { display: block; color: var(--ink); font-weight: 800; }
.dx-list .tx span { font-size: .78rem; color: var(--muted); }
.dx-list .rem { width: 9rem; font-size: .76rem; color: var(--muted); }
.dx-list .rem b { display: block; color: var(--ink); font-size: .85rem; }
.dx-ring { --p: 0; width: 2.6rem; height: 2.6rem; border-radius: 999px; background: conic-gradient(var(--ink) calc(var(--p) * 1%), #e9ebe0 0); display: grid; place-items: center; flex: none; }
.dx-ring i { font-style: normal; width: 2rem; height: 2rem; border-radius: 999px; background: #fff; display: grid; place-items: center; font-size: .66rem; font-weight: 800; color: var(--ink); }
.dx-promo { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 1.4rem; position: relative; overflow: hidden; }
.dx-promo h4 { font-size: 1.35rem; font-weight: 800; margin: .3rem 0 .3rem; letter-spacing: -.02em; }
.dx-promo p { color: #a9acbb; font-size: .82rem; max-width: 12rem; margin: 0 0 1rem; }
.dx-promo .gl { position: absolute; right: -1.6rem; top: -1.6rem; width: 5.5rem; height: 5.5rem; border-radius: 999px; background: var(--lime); opacity: .9; }
.dx-promo .gl2 { position: absolute; right: 2.6rem; top: 1rem; width: 1.6rem; height: 1.6rem; border-radius: 8px; background: #fff; opacity: .14; transform: rotate(18deg); }
.dx-promo .btn { display: inline-block; background: var(--lime); color: var(--ink); font-weight: 800; font-size: .85rem; padding: .6rem 1.1rem; border-radius: 999px; position: relative; z-index: 1; margin: 0 .3rem .4rem 0; }
.dx-promo .btn.ghost { background: rgba(255, 255, 255, .12); color: #fff; }
.dx-promo .btn:hover { filter: brightness(.95); }
.dx-promo .brand { display: flex; align-items: center; gap: .45rem; font-weight: 700; font-size: .85rem; }
.dx-promo .brand i { width: 1.4rem; height: 1.4rem; border-radius: 8px; background: var(--lime); display: inline-block; }
.dx-cal .nav { display: flex; align-items: center; justify-content: space-between; font-weight: 800; color: var(--ink); margin-bottom: .6rem; }
.dx-cal .nav span { color: var(--muted); font-weight: 600; font-size: .78rem; }
.dx-cal table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .78rem; text-align: center; }
.dx-cal th { color: var(--muted); font-weight: 700; padding: .3rem 0; border: 0; background: none; font-size: .68rem; letter-spacing: 0; text-transform: none; }
.dx-cal td { padding: .12rem 0; border: 0; }
.dx-cal td a { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; margin: 0 auto; border-radius: 999px; color: var(--ink); font-weight: 600; }
.dx-cal td a:hover { background: #f1f3ea; }
.dx-cal td.out a { color: #c3c6b8; }
.dx-cal td.today a { background: var(--lime); font-weight: 800; }
.dx-asg .it { display: flex; align-items: center; gap: .75rem; padding: .7rem 0; border-top: 1px solid var(--line); }
.dx-asg .it:first-of-type { border-top: 0; }
.dx-asg .tx { flex: 1; min-width: 0; }
.dx-asg .tx b { display: block; color: var(--ink); font-size: .88rem; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dx-asg .tx span { font-size: .72rem; color: var(--muted); }
.dx-pill { font-size: .68rem; font-weight: 800; padding: .25rem .65rem; border-radius: 999px; white-space: nowrap; }
.p-todo { background: var(--lav); color: #4c3fa8; } .p-prog { background: var(--sky); color: #1e4aa8; } .p-done { background: var(--lime-soft); color: #4d5d05; } .p-late { background: var(--peach); color: #9a2a1b; }
.dx-plus { width: 1.9rem; height: 1.9rem; border-radius: 999px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; line-height: 1; }
.dx-empty { color: var(--muted); font-size: .85rem; padding: .4rem 0; }
@media (max-width: 1280px) { .dx { grid-template-columns: 1fr; } .dx-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 1.25rem; } }
@media (max-width: 760px) { .dx-cards, .dx-two { grid-template-columns: 1fr; } .dx-list .rem { display: none; } }

/* ---------- Login / guest ---------- */
.rx-guest { background: var(--bg); }
.rx-guest .card { background: #fff; border-radius: 28px; box-shadow: 0 20px 50px rgba(22, 22, 28, .08); }

/* ---------- Wave chart ---------- */
.wv-card { display: flex; flex-direction: column; }
.wv { position: relative; flex: 1; min-height: 13rem; margin-top: .4rem; }
.wv svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.wv .gl { stroke: #eceee4; stroke-width: 1; stroke-dasharray: 3 4; vector-effect: non-scaling-stroke; }
.wv .ln { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.wv .dot { position: absolute; width: .7rem; height: .7rem; margin: -.35rem 0 0 -.35rem; border-radius: 999px; background: #fff; border: 2.5px solid var(--ink); cursor: default; }
.wv .dot.hi { width: 1rem; height: 1rem; margin: -.5rem 0 0 -.5rem; background: var(--lime); border-width: 3px; box-shadow: 0 0 0 5px rgba(214, 244, 90, .45); }
.wv .dot::after { content: attr(data-tip); position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%) translateY(4px); background: var(--ink); color: #fff; font-size: .68rem; font-weight: 700; padding: .25rem .55rem; border-radius: 9px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; }
.wv .dot.hi::after, .wv .dot:hover::after { opacity: 1; transform: translateX(-50%); }
.wv .dot:hover { z-index: 2; }
.wv-axis { position: relative; height: 1.5rem; margin-top: .35rem; }
.wv-axis span { position: absolute; transform: translateX(-50%); font-size: .75rem; color: var(--muted); font-weight: 600; }
@media (max-width: 1023px) { .rx-top { padding-right: .9rem; } .rx-page { padding-right: .9rem; } .rx-banner { margin-right: .9rem; } }
