.admin-body { min-height: 100vh; background: #f1f0f4; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.admin-body [hidden] { display: none !important; }

.login-view { min-height: 100vh; display: grid; grid-template-columns: 1.05fr .95fr; color: white; background: var(--navy); }
.login-grid { position: fixed; inset: 0 45% 0 0; pointer-events: none; background-image: linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px); background-size: 60px 60px; mask-image: linear-gradient(135deg, black, transparent); }
.login-brand { position: relative; min-height: 100vh; display: flex; flex-direction: column; padding: 44px 7vw; overflow: hidden; }
.login-brand::after { content: ""; position: absolute; width: 500px; height: 500px; left: -200px; bottom: -260px; border-radius: 50%; background: var(--orange); filter: blur(110px); opacity: .2; }
.login-brand > a img { width: 190px; filter: brightness(0) invert(1); }
.login-intro { margin: auto 0; position: relative; z-index: 1; }.login-intro > span, .login-card > span { color: var(--lime); font: 800 9px var(--font-family-body); letter-spacing: .14em; }.login-intro h1 { margin: 20px 0 25px; font-size: clamp(52px, 5.8vw, 78px); line-height: 1.08; letter-spacing: -.045em; font-weight: 900; }.login-intro h1 em { color: var(--orange); }.login-intro p { max-width: 490px; color: rgba(255,255,255,.55); font-size: 14px; line-height: 1.7; }
.login-panel { display: grid; place-items: center; padding: 30px; background: var(--paper); }
.login-card { width: min(430px, 100%); color: var(--ink); }.login-lock { width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 35px; border-radius: 50%; color: var(--navy); background: var(--lime); font-size: 27px; }.login-card > span { color: var(--orange); }.login-card h2 { margin: 13px 0 7px; font-size: 34px; letter-spacing: -.045em; }.login-card > p { margin: 0 0 30px; color: var(--ink-soft); font-size: 13px; }.login-card .button { width: 100%; min-height: 53px; justify-content: space-between; margin-top: 8px; }.login-card > a { display: block; margin-top: 26px; text-align: center; color: var(--ink-soft); font-size: 10px; }.login-message { min-height: 20px; margin-top: 12px; text-align: center; color: var(--error); font-size: 11px; }
.admin-field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }.admin-field > span { color: #474742; font-size: 10px; font-weight: 750; }.admin-field input, .admin-field textarea, .admin-field select { width: 100%; border: 1px solid #cdcdc7; border-radius: 8px; padding: 11px 13px; color: var(--ink); background: white; outline: none; }.admin-field input, .admin-field select { height: 46px; }.admin-field textarea { resize: vertical; line-height: 1.5; }.admin-field input:focus, .admin-field textarea:focus, .admin-field select:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(22,14,68,.08); }

.admin-app { min-height: 100vh; padding-left: 252px; transition: padding-left .25s var(--ease); }
.admin-sidebar { position: fixed; z-index: 30; inset: 0 auto 0 0; width: 252px; display: flex; flex-direction: column; padding: 26px 18px; color: white; background: #160e44; transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.admin-app.sidebar-collapsed { padding-left: 0; }
.admin-app.sidebar-collapsed .admin-sidebar { transform: translateX(-100%); }
.admin-logo { height: 50px; padding: 5px 12px 18px; border-bottom: 1px solid rgba(255,255,255,.12); }.admin-logo img { width: 158px; filter: brightness(0) invert(1); }
.side-program { margin: 28px 8px; padding: 16px; border: 1px solid rgba(255,255,255,.12); border-radius: 10px; background: rgba(255,255,255,.04); }.side-program > span { display: block; margin-bottom: 13px; color: var(--lime); font: 700 7px var(--font-family-body); letter-spacing: .13em; }.side-program strong { display: block; font-size: 14px; line-height: 1.35; }.side-program small { display: block; margin-top: 13px; color: rgba(255,255,255,.32); font: 7px var(--font-family-body); }
.admin-sidebar nav { display: flex; flex-direction: column; gap: 5px; }.admin-sidebar nav a { min-height: 43px; display: flex; align-items: center; gap: 12px; padding: 0 13px; border-radius: 7px; color: rgba(255,255,255,.52); font-size: 11px; font-weight: 650; }.admin-sidebar nav a span { width: 20px; color: rgba(255,255,255,.35); font-size: 16px; }.admin-sidebar nav a.active { color: var(--navy); background: var(--lime); }.admin-sidebar nav a.active span { color: var(--navy); }
.sidebar-bottom { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 15px 10px 0; border-top: 1px solid rgba(255,255,255,.12); }.system-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 10px rgba(247,148,29,.5); }.sidebar-bottom b, .sidebar-bottom small { display: block; }.sidebar-bottom b { font-size: 9px; }.sidebar-bottom small { margin-top: 3px; color: rgba(255,255,255,.35); font-size: 7px; }

.admin-main { min-height: 100vh; }
.admin-topbar { position: sticky; z-index: 20; top: 0; height: 72px; display: flex; align-items: center; padding: 0 32px; border-bottom: 1px solid var(--line); background: rgba(247,247,249,.94); backdrop-filter: blur(14px); }.admin-topbar > div:first-of-type span, .admin-topbar > div:first-of-type strong { display: block; }.admin-topbar > div:first-of-type span { color: #989891; font: 7px var(--font-family-body); letter-spacing: .15em; }.admin-topbar > div:first-of-type strong { margin-top: 3px; font-size: 13px; }.admin-actions { margin-left: auto; display: flex; align-items: center; gap: 22px; }.admin-actions > span { display: flex; align-items: center; gap: 7px; color: #797973; font-size: 8px; }.admin-actions i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-orange); }.admin-actions button { border: 0; background: none; font-size: 10px; font-weight: 700; cursor: pointer; }.sidebar-toggle { width: 42px; height: 42px; display: grid; place-items: center; flex: 0 0 auto; margin-right: 16px; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: white; font-size: 20px; cursor: pointer; }
.admin-content { width: min(1420px, calc(100% - 64px)); margin-inline: auto; padding-block: 45px 70px; }
.admin-welcome { display: flex; justify-content: space-between; align-items: end; margin-bottom: 34px; }.admin-welcome > div > span, .data-head > div > span { color: #8a8a84; font: 700 8px var(--font-family-body); letter-spacing: .14em; }.admin-welcome h1 { margin: 9px 0 6px; font-size: clamp(27px, 3vw, 40px); letter-spacing: -.045em; }.admin-welcome p { margin: 0; color: var(--ink-soft); font-size: 11px; }.export-button { border: 1px solid var(--ink); color: white; background: var(--ink); }

.kpi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 26px; }.kpi-grid article { min-height: 152px; padding: 21px; border: 1px solid var(--line); border-radius: 11px; background: white; box-shadow: 0 5px 18px rgba(20,18,52,.035); }.kpi-grid article > span { color: #85857f; font: 750 8px var(--font-family-body); letter-spacing: .1em; }.kpi-grid strong { display: block; margin: 16px 0 14px; font: 500 40px var(--font-family-heading); letter-spacing: -.05em; }.kpi-grid small { display: flex; align-items: center; gap: 7px; color: #888881; font-size: 8px; }.kpi-grid i { width: 6px; height: 6px; border-radius: 50%; background: #999; }.kpi-grid i.green { background: #f7941d; }.kpi-grid i.orange { background: var(--orange); }.kpi-grid i.blue { background: #f7941d; }.kpi-grid .accent-kpi { color: white; border-color: var(--navy); background: var(--navy); }.accent-kpi > span, .accent-kpi small { color: rgba(255,255,255,.45) !important; }.accent-kpi strong { color: var(--lime); }.accent-kpi i { background: var(--lime); }

.data-section { border: 1px solid var(--line); border-radius: 13px; overflow: hidden; background: white; box-shadow: 0 6px 28px rgba(20,18,52,.045); }.data-head { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; }.data-head h2 { margin: 5px 0 0; font-size: 20px; letter-spacing: -.035em; }.data-tools { display: flex; gap: 8px; }.search-box { width: 270px; height: 39px; display: flex; align-items: center; gap: 8px; padding: 0 11px; border: 1px solid var(--line); border-radius: 7px; background: #fafaf8; }.search-box span { color: #8b8b85; font-size: 17px; }.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 9px; }.data-tools select { height: 39px; padding: 0 30px 0 11px; border: 1px solid var(--line); border-radius: 7px; color: #595954; background: #fafaf8; font-size: 9px; }.icon-button { width: 39px; height: 39px; border: 1px solid var(--line); border-radius: 7px; background: #fafaf8; cursor: pointer; }.bulk-bar { min-height: 38px; padding: 0 22px; display: flex; align-items: center; justify-content: space-between; color: #92928c; background: #f7f7f3; border-block: 1px solid #e4e4df; font-size: 8px; }.bulk-bar span:first-child { color: var(--ink); font-weight: 750; }
.table-wrap { min-height: 320px; overflow-x: auto; }table { width: 100%; border-collapse: collapse; white-space: nowrap; }th { height: 42px; padding: 0 16px; text-align: left; color: #85857f; background: #fbfbf9; font: 700 7px var(--font-family-body); letter-spacing: .09em; }td { height: 70px; padding: 10px 16px; border-top: 1px solid #ecece8; font-size: 9px; }tbody tr { transition: background .15s; }.student-cell { display: flex; align-items: center; gap: 10px; }.table-avatar { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: #fff0d8; font-size: 10px; font-weight: 850; }.student-cell b, .contact-cell b, .place-cell b { display: block; font-size: 10px; }.student-cell span, .contact-cell span, .place-cell span, .date-cell span { display: block; margin-top: 3px; color: #8d8d87; font-size: 8px; }.status-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 9px; border-radius: 20px; font-size: 8px; font-weight: 700; }.status-badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }.status-new { color: #ed1c24; background: #fde9ea; }.status-contacted { color: #c66e10; background: #fff1df; }.status-interested { color: #30295b; background: #efedf5; }.status-closed { color: #160e44; background: #e1dfeb; }.row-action { width: 31px; height: 31px; border: 1px solid var(--line); border-radius: 6px; background: white; cursor: pointer; font-weight: 800; }.table-empty { min-height: 320px; display: grid; place-content: center; justify-items: center; text-align: center; }.table-empty > span { width: 55px; height: 55px; display: grid; place-items: center; border-radius: 50%; color: var(--navy); background: #efefea; font-size: 22px; }.table-empty h3 { margin: 15px 0 3px; font-size: 14px; }.table-empty p { margin: 0; color: #888; font-size: 9px; }.table-foot { height: 41px; display: flex; justify-content: space-between; align-items: center; padding: 0 22px; border-top: 1px solid var(--line); color: #a0a09a; font: 7px var(--font-family-body); letter-spacing: .08em; }

.edit-modal[hidden], .confirm-modal[hidden] { display: none; }.edit-modal, .confirm-modal { position: fixed; z-index: 100; inset: 0; display: grid; place-items: center; padding: 20px; }.edit-backdrop { position: absolute; inset: 0; background: rgba(8,7,25,.7); backdrop-filter: blur(7px); }.edit-dialog { position: relative; width: min(760px, 100%); max-height: calc(100vh - 40px); overflow: auto; border-radius: 14px; background: var(--paper); box-shadow: 0 35px 100px rgba(0,0,0,.4); animation: modalIn .25s var(--ease); }.edit-dialog > header { position: sticky; z-index: 2; top: 0; min-height: 84px; display: flex; align-items: center; justify-content: space-between; padding: 18px 25px; border-bottom: 1px solid var(--line); background: rgba(247,247,249,.96); }.edit-dialog header span { color: #92928c; font: 700 7px var(--font-family-body); letter-spacing: .14em; }.edit-dialog header h2 { margin: 5px 0 0; font-size: 21px; }.edit-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 50%; background: white; font-size: 20px; cursor: pointer; }.edit-dialog form { padding: 24px; }.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 17px; }.full-field { grid-column: 1 / -1; }.edit-message { min-height: 18px; color: var(--error); font-size: 10px; }.edit-dialog form > footer { display: flex; justify-content: space-between; align-items: center; padding-top: 16px; border-top: 1px solid var(--line); }.edit-dialog form > footer > div { display: flex; gap: 8px; }.delete-button, .cancel-button { min-height: 42px; padding: 0 16px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 10px; font-weight: 700; cursor: pointer; }.delete-button { color: var(--error); border-color: #efc8c3; }.save-button { min-height: 42px; }
.confirm-card { position: relative; width: min(400px, 100%); padding: 36px; border-radius: 14px; text-align: center; background: white; box-shadow: 0 25px 80px rgba(0,0,0,.35); }.danger-icon { width: 55px; height: 55px; display: grid; place-items: center; margin: 0 auto 20px; border-radius: 50%; color: var(--error); background: #ffebe8; font-size: 22px; font-weight: 850; }.confirm-card h2 { margin: 0 0 9px; font-size: 22px; }.confirm-card p { margin: 0; color: var(--ink-soft); font-size: 11px; line-height: 1.65; }.confirm-card > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 24px; }.confirm-card button { min-height: 43px; border: 1px solid var(--line); border-radius: 7px; background: white; font-size: 10px; font-weight: 750; cursor: pointer; }.confirm-card .confirm-delete { color: white; border-color: var(--error); background: var(--error); }
.toast { position: fixed; z-index: 200; right: 24px; bottom: 24px; max-width: 340px; padding: 13px 17px; border-radius: 8px; color: white; background: #160e44; box-shadow: 0 10px 35px rgba(0,0,0,.2); font-size: 10px; font-weight: 650; transform: translateY(80px); opacity: 0; pointer-events: none; transition: .25s var(--ease); }.toast.show { transform: translateY(0); opacity: 1; }.toast.error { background: var(--error); }

/* Readable admin scale: compact enough for operations, large enough for long sessions. */
.login-intro > span, .login-card > span { font-size: 11px; }
.login-intro p { font-size: 16px; }
.login-card > p { font-size: 15px; }
.login-card > a { font-size: 12px; }
.login-message { font-size: 13px; }
.side-program > span { font-size: 10px; }
.side-program strong { font-size: 16px; }
.side-program small { font-size: 10px; }
.admin-sidebar nav a { min-height: 47px; font-size: 13px; }
.sidebar-bottom b { font-size: 11px; }
.sidebar-bottom small { font-size: 9px; }
.admin-topbar > div:first-of-type span { font-size: 9px; }
.admin-topbar > div:first-of-type strong { font-size: 15px; }
.admin-actions > span { font-size: 11px; }
.admin-actions button { font-size: 12px; }
.admin-welcome > div > span, .data-head > div > span, .kpi-grid article > span { font-size: 11px; }
.admin-welcome p { font-size: 14px; }
.kpi-grid strong { font-size: 44px; }
.kpi-grid small { font-size: 11px; }
.data-head h2 { font-size: 23px; }
.search-box { height: 43px; }
.search-box input, .data-tools select { font-size: 13px; }
.data-tools select { height: 43px; }
.icon-button { width: 43px; height: 43px; }
.bulk-bar { min-height: 42px; font-size: 11px; }
th { height: 46px; font-size: 11px; }
td { height: 76px; font-size: 13px; }
.table-avatar { width: 38px; height: 38px; font-size: 12px; }
.student-cell b, .contact-cell b, .place-cell b { font-size: 14px; }
.student-cell span, .contact-cell span, .place-cell span, .date-cell span { font-size: 12px; }
.status-badge { font-size: 11px; }
.row-action { width: 35px; height: 35px; font-size: 14px; }
.table-empty h3 { font-size: 17px; }
.table-empty p { font-size: 12px; }
.table-foot { height: 46px; font-size: 11px; }
.admin-field > span { font-size: 13px; }
.admin-field input, .admin-field textarea, .admin-field select { font-size: 15px; }
.edit-dialog header span { font-size: 10px; }
.edit-dialog header h2 { font-size: 24px; }
.edit-message { font-size: 12px; }
.delete-button, .cancel-button, .confirm-card button { font-size: 13px; }
.confirm-card p { font-size: 13px; }
.toast { font-size: 13px; }

@media (hover: hover) {
  .export-button:hover { background: var(--navy); }
  .admin-sidebar nav a:hover { color: white; background: rgba(255,255,255,.07); }
  .admin-sidebar nav a.active:hover { color: var(--navy); background: var(--lime); }
  tbody tr:hover { background: #fafaf6; }
  .row-action:hover, .icon-button:hover { border-color: var(--navy); }
}

@media (max-width: 1100px) {
  .kpi-grid { grid-template-columns: 1fr 1fr; }.data-head { align-items: flex-start; flex-direction: column; }.data-tools { width: 100%; }.search-box { flex: 1; }
}
@media (max-width: 800px) {
  .login-view { grid-template-columns: 1fr; }.login-brand { min-height: 360px; padding: 28px; }.login-intro { margin-block: 55px; }.login-intro h1 { font-size: 50px; }.login-panel { min-height: 520px; }
  .admin-app, .admin-app.sidebar-collapsed { padding-left: 0; }.admin-sidebar, .admin-app.sidebar-collapsed .admin-sidebar { transform: translateX(-100%); }.admin-sidebar.open, .admin-app.sidebar-collapsed .admin-sidebar.open { transform: translateX(0); box-shadow: 15px 0 40px rgba(0,0,0,.25); }.sidebar-toggle { margin-right: 13px; }.admin-content { width: calc(100% - 30px); padding-top: 28px; }.admin-welcome { align-items: flex-start; flex-direction: column; gap: 20px; }.admin-welcome .export-button { width: 100%; }.data-tools { display: grid; grid-template-columns: 1fr 44px; }.search-box { width: 100%; grid-column: 1 / -1; }.data-tools select { width: 100%; }.bulk-bar span:last-child { display: none; }
}
@media (max-width: 540px) {
  .login-brand { min-height: 330px; }.login-panel { padding: 35px 20px; }.admin-topbar { padding-inline: 13px; }.admin-actions > span { display: none; }.kpi-grid { grid-template-columns: 1fr; }.kpi-grid article { min-height: 130px; }.edit-modal { padding: 0; align-items: end; }.edit-dialog { max-height: 94vh; border-radius: 14px 14px 0 0; }.edit-grid { grid-template-columns: 1fr; }.full-field { grid-column: auto; }.edit-dialog form > footer { align-items: stretch; flex-direction: column-reverse; gap: 8px; }.edit-dialog form > footer > div { display: grid; grid-template-columns: 1fr 1fr; }.delete-button { width: 100%; }.confirm-card { padding: 30px 22px; }.table-foot span:first-child { display: none; }
}
