:root {
  --bg: #eef3fb;
  --panel: #ffffff;
  --panel2: #f8fafc;
  --text: #071225;
  --muted: #64748b;
  --line: #dbe4f0;
  --brand: #2563eb;
  --brand2: #06b6d4;
  --dark: #07101f;
  --dark2: #111827;
  --danger: #dc2626;
  --good: #059669;
  --warn: #d97706;
  --shadow: 0 18px 45px rgba(7, 18, 37, .08);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Arial, sans-serif; color: var(--text); background: radial-gradient(circle at 20% -20%, rgba(37,99,235,.18), transparent 32%), linear-gradient(180deg, #f8fbff, #eef3fb 55%, #e8eef7); }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: none; }
.app-shell { display: grid; grid-template-columns: 280px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: linear-gradient(180deg, #070d1a, #101827); color: #e5e7eb; padding: 18px 14px; display: flex; flex-direction: column; gap: 18px; box-shadow: 18px 0 50px rgba(7, 13, 26, .24); }
.brand { display: grid; grid-template-columns: 92px 1fr; align-items: center; gap: 12px; padding: 8px 8px 18px; border-bottom: 1px solid rgba(255,255,255,.10); }
.brand img { width: 92px; max-height: 58px; object-fit: contain; filter: drop-shadow(0 6px 18px rgba(255,255,255,.08)); }
.brand strong { display: block; color: #fff; font-size: 18px; letter-spacing: -.02em; }
.brand small { display: block; color: #9ca3af; margin-top: 2px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a { color: #cbd5e1; padding: 11px 12px; border-radius: 14px; display: flex; align-items: center; gap: 10px; font-weight: 700; transition: .15s ease; }
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: white; }
.sidebar nav a.active { color: #fff; background: linear-gradient(135deg, rgba(37,99,235,.85), rgba(6,182,212,.75)); box-shadow: 0 10px 30px rgba(37,99,235,.25); }
.sidebar-footer { margin-top: auto; display: grid; gap: 5px; padding: 14px; border-radius: 18px; background: rgba(255,255,255,.06); color: #94a3b8; }
.sidebar-footer strong { color: white; }
.sidebar-footer span { font-size: 12px; }
.sidebar-footer a { color: #67e8f9; font-weight: 800; margin-top: 4px; }
.main { min-width: 0; padding: 24px; }
.login-main { min-height: 100vh; display: grid; place-items: center; padding: 22px; background: radial-gradient(circle at top, rgba(37,99,235,.22), transparent 34%), #070d1a; }
.topbar { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px; border-radius: 22px; background: rgba(255,255,255,.78); backdrop-filter: blur(14px); border: 1px solid rgba(219,228,240,.9); box-shadow: var(--shadow); margin-bottom: 18px; }
.eyebrow { color: var(--muted); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.topbar h1 { margin: 4px 0 0; font-size: clamp(26px, 3vw, 42px); letter-spacing: -.055em; }
.top-actions { display: flex; gap: 10px; align-items: center; }
.hero { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding: 22px; border-radius: 26px; background: linear-gradient(135deg, #071225, #111827 56%, #0e7490); color: white; box-shadow: 0 22px 60px rgba(7,18,37,.25); }
.hero h2 { margin: 0; font-size: 30px; letter-spacing: -.05em; }
.hero p { margin: 6px 0 0; color: #cbd5e1; }
.panel, .login-card, .stat { background: rgba(255,255,255,.88); border: 1px solid rgba(219,228,240,.95); border-radius: 24px; box-shadow: var(--shadow); }
.panel { padding: 18px; margin-bottom: 18px; }
.login-card { width: min(520px, 100%); padding: 28px; color: var(--text); }
.login-logo { display: block; width: 210px; max-width: 80%; background: #071225; padding: 16px; border-radius: 18px; margin: 0 0 18px; }
.login-card h2 { margin: 0; font-size: 32px; letter-spacing: -.05em; }
.demo-logins { margin-top: 16px; border-radius: 16px; padding: 12px; background: #f1f5f9; color: #475569; font-size: 13px; line-height: 1.55; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.panel h2 { margin: 0; font-size: 22px; letter-spacing: -.035em; }
.grid-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cards { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { padding: 18px; min-height: 128px; }
.stat small { display: block; color: var(--muted); font-weight: 800; margin-bottom: 10px; }
.stat strong { display: block; font-size: 24px; letter-spacing: -.04em; overflow-wrap: anywhere; }
.stat p { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; }
.stat.good strong, .pos { color: var(--good); }
.stat.bad strong, .neg { color: var(--danger); }
.muted, small { color: var(--muted); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 18px; background: white; }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 12px 13px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { background: #f8fafc; color: #475569; font-size: 12px; text-transform: uppercase; letter-spacing: .065em; }
tr:last-child td { border-bottom: 0; }
.badge, .health { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 900; background: #e0f2fe; color: #075985; white-space: nowrap; }
.badge.blue { background: #dbeafe; color: #1d4ed8; }
.health.green { background: #dcfce7; color: #166534; }
.health.yellow { background: #fef3c7; color: #92400e; }
.health.red { background: #fee2e2; color: #991b1b; }
.progress { position: relative; min-width: 145px; height: 24px; border-radius: 999px; background: #e5eaf2; overflow: hidden; }
.progress span { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, var(--brand), var(--brand2)); border-radius: 999px; }
.progress b { position: relative; z-index: 2; display: grid; place-items: center; height: 100%; font-size: 12px; }
.form-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.form-grid.one { grid-template-columns: 1fr; }
.field { display: grid; gap: 7px; }
.field-wide { grid-column: 1 / -1; }
.field span { color: #334155; font-size: 13px; font-weight: 900; }
input, select, textarea { width: 100%; padding: 11px 12px; border: 1px solid #cbd5e1; border-radius: 14px; background: white; color: var(--text); font: inherit; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 4px solid rgba(37,99,235,.14); border-color: var(--brand); }
.form-actions { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 10px 14px; border-radius: 14px; border: 1px solid #cbd5e1; background: white; color: var(--text); font-weight: 900; cursor: pointer; box-shadow: 0 3px 10px rgba(7,18,37,.04); }
.btn:hover { border-color: var(--brand); transform: translateY(-1px); }
.btn.primary { color: white; border: 0; background: linear-gradient(135deg, var(--brand), var(--brand2)); box-shadow: 0 12px 28px rgba(37,99,235,.25); }
.btn.small { min-height: 32px; padding: 7px 10px; border-radius: 11px; font-size: 12px; }
.alert { border-radius: 18px; padding: 13px 15px; margin: 0 0 16px; border: 1px solid #bae6fd; background: #ecfeff; color: #155e75; font-weight: 700; }
.alert.danger { border-color: #fecaca; background: #fef2f2; color: #991b1b; }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tabs a { padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: white; color: var(--text); font-weight: 900; }
.tabs a.active { background: #071225; color: white; border-color: #071225; }
.details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.details-grid div { border: 1px solid var(--line); border-radius: 18px; padding: 14px; background: #f8fafc; }
.details-grid small { display: block; margin-bottom: 6px; font-weight: 800; }
.details-grid strong { font-size: 18px; }
.export-grid, .quick-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.export-card, .quick-grid a { padding: 18px; border: 1px solid var(--line); border-radius: 18px; background: #f8fafc; color: var(--text); font-weight: 950; }
.export-card:hover, .quick-grid a:hover { background: #eff6ff; border-color: #bfdbfe; }
.assignment-list { display: grid; gap: 10px; }
.assignment-card, .schedule-item { border: 1px solid var(--line); border-radius: 18px; padding: 13px; background: #f8fafc; display: grid; gap: 4px; }
.assignment-card strong, .schedule-item strong { font-size: 15px; }
.assignment-card span, .schedule-item span { font-weight: 900; color: #1d4ed8; }
.schedule-board { display: grid; grid-template-columns: repeat(7, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.day-column { min-width: 220px; border-radius: 20px; background: #f8fafc; border: 1px solid var(--line); padding: 12px; }
.day-column h3 { margin: 0 0 10px; font-size: 15px; }
.inline-form { display: flex; gap: 8px; align-items: center; }
@media (max-width: 1240px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid-two { grid-template-columns: 1fr; } }
@media (max-width: 920px) { .app-shell { grid-template-columns: 1fr; } .sidebar { position: static; height: auto; } .brand { grid-template-columns: 74px 1fr; } .brand img { width: 74px; } .main { padding: 14px; } .form-grid, .cards, .details-grid, .export-grid, .quick-grid { grid-template-columns: 1fr; } .topbar, .hero, .panel-head { align-items: flex-start; flex-direction: column; } .schedule-board { grid-template-columns: 1fr; } }
.btn.danger { color: white; border: 0; background: linear-gradient(135deg, #dc2626, #991b1b); box-shadow: 0 12px 28px rgba(220,38,38,.22); }
.small { font-size: 12px; }
.filter-bar { display: grid; grid-template-columns: minmax(220px, 1fr) repeat(4, auto); gap: 10px; align-items: center; margin: 0 0 14px; }
.filter-bar input, .filter-bar select { min-width: 150px; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.inline { display: inline-flex; margin: 0; }
.badge.danger { background: #fee2e2; color: #991b1b; }
.btn.danger.small { color: white; }
@media (max-width: 920px) { .filter-bar { grid-template-columns: 1fr; } .actions { flex-direction: column; align-items: stretch; } .inline, .actions .btn { width: 100%; } }

/* Kanor KATT Lite v1.4 */
.login-main { background: radial-gradient(circle at 18% 8%, rgba(37,99,235,.35), transparent 28%), radial-gradient(circle at 85% 20%, rgba(6,182,212,.22), transparent 30%), linear-gradient(135deg, #050816 0%, #071225 46%, #0b1324 100%); }
.login-hero-card { width: min(1120px, 100%); display: grid; grid-template-columns: 1.15fr .85fr; gap: 24px; align-items: stretch; }
.login-copy { border: 1px solid rgba(255,255,255,.12); background: linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.04)); color: #fff; border-radius: 32px; padding: clamp(28px, 5vw, 56px); box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.login-logo-clean { width: 230px; max-width: 80%; margin-bottom: 34px; filter: drop-shadow(0 10px 25px rgba(255,255,255,.10)); }
.login-kicker { display: inline-flex; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); color: #a5f3fc; font-weight: 900; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.login-copy h2 { max-width: 720px; margin: 18px 0 14px; font-size: clamp(34px, 6vw, 70px); line-height: .92; letter-spacing: -.07em; }
.login-copy p { max-width: 640px; color: #cbd5e1; font-size: 18px; line-height: 1.55; }
.login-bullets { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.login-bullets span { padding: 10px 13px; border-radius: 999px; background: rgba(255,255,255,.08); color: #e0f2fe; font-weight: 900; }
.login-card.glass { align-self: center; background: rgba(255,255,255,.92); backdrop-filter: blur(18px); }
.login-card.glass h3 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.04em; }
.check-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.check-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--line); border-radius: 16px; background: #f8fafc; }
.check-card input { width: auto; margin-top: 3px; }
.check-card small { display: block; margin-top: 2px; }
.mini-checks { display: grid; gap: 6px; min-width: 230px; }
.mini-checks label { display: inline-flex; gap: 7px; align-items: center; font-size: 12px; font-weight: 800; color: #475569; }
.mini-checks input { width: auto; }
@media (max-width: 920px) { .login-hero-card { grid-template-columns: 1fr; } .check-grid { grid-template-columns: 1fr; } .login-copy h2 { font-size: 42px; } }


/* Kanor KATT Lite v1.5 */
.login-hero-card.v15 { grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); }
.slideshow-panel { position: relative; overflow: hidden; min-height: 620px; display: grid; align-items: end; }
.login-slideshow { position: absolute; inset: 0; z-index: 0; }
.login-slideshow::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5,8,22,.80), rgba(7,18,37,.42)), radial-gradient(circle at 20% 20%, rgba(37,99,235,.25), transparent 35%); }
.login-slideshow .slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.04); animation: kattSlide 36s infinite; }
.login-slideshow .s0 { animation-delay: 0s; }
.login-slideshow .s1 { animation-delay: 6s; }
.login-slideshow .s2 { animation-delay: 12s; }
.login-slideshow .s3 { animation-delay: 18s; }
.login-slideshow .s4 { animation-delay: 24s; }
.login-slideshow .s5 { animation-delay: 30s; }
@keyframes kattSlide { 0%, 14% { opacity: 1; transform: scale(1); } 20%, 100% { opacity: 0; transform: scale(1.06); } }
.login-overlay-content { position: relative; z-index: 1; }
.slide-admin-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.slide-admin-card { border: 1px solid var(--line); border-radius: 18px; background: #f8fafc; padding: 10px; display: grid; gap: 8px; }
.slide-admin-card img { width: 100%; height: 120px; object-fit: cover; border-radius: 14px; background: #071225; }
.slide-admin-card strong { font-size: 12px; overflow-wrap: anywhere; color: #475569; }
@media (max-width: 920px) { .login-hero-card.v15 { grid-template-columns: 1fr; } .slideshow-panel { min-height: 480px; } .slide-admin-grid { grid-template-columns: 1fr 1fr; } }


/* Kanor KATT Lite v1.6 */
.guide-list { margin: 12px 0 0; padding-left: 22px; color: #334155; line-height: 1.65; }
.guide-list li { margin: 6px 0; }
.panel code { display: inline-block; padding: 3px 7px; border-radius: 8px; background: #e2e8f0; color: #0f172a; font-weight: 800; }
