/* ============================================================
   Allison Driver Academy — Portal Stylesheet
   Shared across Student, Instructor and Admin portals
   ============================================================ */

/* Google Fonts loaded via wp_enqueue_style in plugin */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&family=Lato:wght@300;400;700&display=swap');

:root {
  --navy:       #1B3A8C;
  --navy-dark:  #0F2347;
  --navy-light: #2450B5;
  --red:        #CC2229;
  --red-light:  #FAE8E8;
  --teal:       #0F6E56;
  --teal-light: #E1F5EE;
  --grey:       #5A5F66;
  --mid:        #6B7280;
  --light:      #F4F6FA;
  --border:     #DDE3EF;
  --white:      #FFFFFF;
  --bg:         #F0F2F8;
  --fh:         'Montserrat', sans-serif;
  --fb:         'Lato', sans-serif;
}

/* ── Hide theme chrome on portal pages ────────────────────── */
body.ada-portal-page #masthead,
body.ada-portal-page .site-header,
body.ada-portal-page .ast-above-header-wrap,
body.ada-portal-page .ast-below-header-wrap,
body.ada-portal-page .ast-primary-header-bar,
body.ada-portal-page .main-header-bar-wrap,
body.ada-portal-page .entry-header,
body.ada-portal-page .entry-title,
body.ada-portal-page .page-title,
body.ada-portal-page .page-header,
body.ada-portal-page .ast-breadcrumbs-wrapper,
/* Page name / breadcrumb bar -- covers Elementor Theme Builder,
   Divi, and the common breadcrumb plugins, since which one
   applies depends on the theme/builder combo in use. */
body.ada-portal-page .elementor-widget-theme-page-title,
body.ada-portal-page .elementor-widget-breadcrumbs,
body.ada-portal-page .et_pb_title_container,
body.ada-portal-page #breadcrumbs,
body.ada-portal-page .breadcrumbs,
body.ada-portal-page .breadcrumb,
body.ada-portal-page .bcn-container,
body.ada-portal-page .yoast-breadcrumbs,
body.ada-portal-page .rank-math-breadcrumb,
body.ada-portal-page .woocommerce-breadcrumb,
body.ada-portal-page .site-footer,
body.ada-portal-page #colophon,
body.ada-portal-page #footer-widgets,
body.ada-portal-page .footer-widget-area,
body.ada-portal-page .wp-block-post-title {
  display: none !important;
}

body.ada-portal-page,
body.ada-portal-page #page,
body.ada-portal-page #content,
body.ada-portal-page .site-content,
body.ada-portal-page .ast-container,
body.ada-portal-page .content-area,
body.ada-portal-page .site-primary,
body.ada-portal-page article.page,
body.ada-portal-page .entry-content {
  padding: 0 !important;
  margin: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}

/* ---- Reset ---- */
.ada-portal *, .ada-portal *::before, .ada-portal *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
.ada-portal a  { color: inherit; text-decoration: none; }
.ada-portal button { cursor: pointer; border: none; font-family: var(--fh); }
.ada-portal select,
.ada-portal input,
.ada-portal textarea {
  font-family: var(--fb);
  font-size: 13px;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 8px 10px;
  width: 100%;
  outline: none;
  color: #1a1a2e;
  background: #fff;
  transition: border-color 0.15s;
}
.ada-portal select:focus,
.ada-portal input:focus,
.ada-portal textarea:focus { border-color: var(--navy); }
.ada-admin-portal select:focus,
.ada-admin-portal input:focus,
.ada-admin-portal textarea:focus { border-color: var(--red); }
.ada-portal textarea { resize: vertical; }
.ada-portal .ada-hidden { display: none !important; }
.ada-enquiry-wrap .ada-hidden { display: none !important; }

/* ---- Shell ---- */
.ada-portal {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: var(--fb);
  background: var(--bg);
  color: #1a1a2e;
  font-size: 14px;
}

/* ---- Top navigation (replaces sidebar) ---- */
.ada-topnav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  background: var(--navy-dark);
  padding: 10px 20px;
  position: sticky;
  top: 0;
  z-index: 110;
  row-gap: 6px;
}
.ada-admin-portal .ada-topnav { border-bottom: 2px solid var(--red); }
.ada-topnav .ada-sb-section { display: none; }
.ada-topnav .ada-sb-link {
  border-left: none;
  border-radius: 6px;
  padding: 7px 12px;
  white-space: nowrap;
}
.ada-topnav .ada-sb-link:hover { background: rgba(255,255,255,0.08); }
.ada-topnav .ada-sb-link.active {
  background: var(--red);
  color: #fff;
  border-left: none;
}
.ada-topnav .ada-sb-link .ada-badge-count,
.ada-topnav .ada-sb-link .ada-sb-badge {
  margin-left: 2px;
}

/* ---- Sidebar ---- */
.ada-sidebar {
  background: var(--navy-dark);
  color: #fff;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.ada-sb-logo {
  padding: 20px 18px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ada-sb-logo-text {
  font-family: var(--fh);
  font-size: 18px;
  font-weight: 900;
  letter-spacing: 1px;
}
.ada-sb-logo-text span { color: var(--red); }
.ada-sb-logo-sub {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 3px;
}
.ada-sb-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ada-sb-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--fh);
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
}
.ada-av-navy   { background: var(--navy-light); }
.ada-av-teal   { background: var(--teal); }
.ada-av-red    { background: var(--red); }
.ada-av-amber  { background: #BA7517; }
.ada-sb-user-name { font-size: 13px; font-weight: 600; }
.ada-sb-user-role { font-size: 11px; color: rgba(255,255,255,0.45); margin-top: 2px; }

.ada-sb-nav { flex: 1; padding: 10px 0; }
.ada-sb-section {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  padding: 12px 18px 6px;
}
.ada-sb-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,0.65);
  border-left: 3px solid transparent;
  transition: all 0.15s;
  cursor: pointer;
}
.ada-sb-link:hover { background: rgba(255,255,255,0.06); color: #fff; }
.ada-sb-link.active { background: rgba(255,255,255,0.08); color: #fff; border-left-color: var(--red); }
.ada-sb-link i { font-size: 16px; flex-shrink: 0; }
.ada-sb-badge {
  margin-left: auto;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 8px;
}
.ada-sb-footer {
  padding: 14px 18px;
  font-size: 10px;
  color: rgba(255,255,255,0.25);
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---- Main area ---- */
.ada-main { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.ada-topbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0 28px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 4px rgba(27,58,140,0.06);
}
/* Admin topbar gets red bottom border */
.ada-admin-portal .ada-topbar { border-bottom: 2px solid var(--red); }

.ada-topbar-title {
  font-family: var(--fh);
  font-size: 16px;
  font-weight: 700;
  color: #1a1a2e;
}
.ada-topbar-right { display: flex; align-items: center; gap: 14px; }
.ada-tb-icon { position: relative; color: var(--mid); cursor: pointer; font-size: 20px; }
.ada-tb-badge {
  position: absolute;
  top: -5px; right: -5px;
  background: var(--red);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 8px;
}
.ada-tb-btn {
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 4px;
  transition: opacity 0.15s;
}
.ada-tb-btn:hover { opacity: 0.88; }
.ada-tb-btn-red  { background: var(--red); }
.ada-tb-btn-teal { background: var(--teal); }
.ada-tb-btn-navy { background: var(--navy); }

.ada-content { padding: 28px; flex: 1; }

/* ---- Cards ---- */
.ada-card {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 20px;
  margin-bottom: 20px;
}
.ada-card:last-child { margin-bottom: 0; }
.ada-card-title {
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ada-card-title a,
.ada-card-title .ada-card-action {
  font-size: 11px;
  font-weight: 600;
  color: var(--navy);
  letter-spacing: 0;
  cursor: pointer;
  text-decoration: none;
}

/* ---- Metrics grid ---- */
.ada-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}
.ada-metrics-3 { grid-template-columns: repeat(3, 1fr); }
.ada-metric {
  background: #fff;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 18px 16px;
}
.ada-metric-icon {
  width: 40px; height: 40px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  margin-bottom: 12px;
}
.ada-mi-navy  { background: #E6EDF8; color: var(--navy); }
.ada-mi-red   { background: var(--red-light); color: var(--red); }
.ada-mi-teal  { background: var(--teal-light); color: var(--teal); }
.ada-mi-amber { background: #FAEEDA; color: #BA7517; }
.ada-metric-label {
  font-size: 11px; font-weight: 600; color: var(--mid);
  text-transform: uppercase; letter-spacing: 0.5px;
  font-family: var(--fh);
}
.ada-metric-val {
  font-size: 28px; font-weight: 800;
  font-family: var(--fh); line-height: 1.1;
  margin: 4px 0 2px;
}
.ada-metric-sub { font-size: 11px; color: var(--mid); }

/* ---- Grid layouts ---- */
.ada-two-col   { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ada-three-col { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }

/* ---- Badges ---- */
.ada-badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px; border-radius: 20px;
  font-size: 10px; font-weight: 700;
  font-family: var(--fh); letter-spacing: 0.3px; text-transform: uppercase;
}
.ada-badge-navy   { background: #E6EDF8; color: var(--navy); }
.ada-badge-green  { background: #EAF3DE; color: #27500A; }
.ada-badge-red    { background: var(--red-light); color: #791F1F; }
.ada-badge-amber  { background: #FFF0D6; color: #633806; }
.ada-badge-grey   { background: #F0F1F3; color: var(--mid); }

/* ---- Progress bars ---- */
.ada-prog-wrap { margin-bottom: 12px; }
.ada-prog-row {
  display: flex; justify-content: space-between;
  font-size: 12px; font-weight: 600;
  font-family: var(--fh); margin-bottom: 5px;
}
.ada-prog-bar { height: 8px; background: var(--light); border-radius: 4px; overflow: hidden; }
.ada-prog-fill         { height: 100%; background: var(--navy); border-radius: 4px; transition: width 0.5s ease; }
.ada-prog-fill-teal    { background: var(--teal); }
.ada-prog-fill-amber   { background: #BA7517; }
.ada-prog-fill-red     { background: var(--red); }
.ada-prog-fill-blue    { background: #378ADD; }

/* ---- Data tables ---- */
.ada-table { width: 100%; border-collapse: collapse; }
.ada-table th {
  font-family: var(--fh); font-size: 10px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px; color: var(--mid);
  padding: 8px 12px; text-align: left; border-bottom: 1px solid var(--border);
}
.ada-table td { padding: 10px 12px; font-size: 13px; border-bottom: 1px solid var(--light); }
.ada-table tr:hover td { background: #F7F9FF; }
.ada-admin-portal .ada-table tr:hover td { background: #FFF8F8; }
.ada-table tr:last-child td { border-bottom: none; }
.ada-table a { font-size: 11px; font-weight: 700; font-family: var(--fh); color: var(--navy); }

/* ---- Lesson rows ---- */
.ada-lesson-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 0; border-bottom: 1px solid var(--light);
}
.ada-lesson-row:last-child { border-bottom: none; }
.ada-lr-date {
  width: 44px; text-align: center;
  background: var(--light); border-radius: 6px;
  padding: 6px; flex-shrink: 0;
}
.ada-lr-day  { font-family: var(--fh); font-size: 18px; font-weight: 800; color: var(--navy); line-height: 1; }
.ada-lr-mon  { font-size: 10px; font-weight: 600; text-transform: uppercase; color: var(--mid); margin-top: 2px; }
.ada-lr-info { flex: 1; }
.ada-lr-title { font-size: 13px; font-weight: 600; font-family: var(--fh); }
.ada-lr-meta  { font-size: 12px; color: var(--mid); margin-top: 2px; }
.ada-lr-actions { display: flex; gap: 8px; align-items: center; }

/* ---- Notes ---- */
.ada-note {
  background: #fff; border: 1px solid var(--border);
  border-radius: 6px; padding: 14px; margin-bottom: 12px;
}
.ada-note-header {
  display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 8px;
}
.ada-note-lesson { font-size: 12px; font-weight: 700; font-family: var(--fh); color: var(--navy); }
.ada-note-date   { font-size: 11px; color: var(--mid); }
.ada-note-text   { font-size: 13px; line-height: 1.6; color: #333; margin-bottom: 10px; }
.ada-note-chips  { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---- Chips ---- */
.ada-chip {
  background: var(--teal-light); color: var(--teal);
  font-size: 10px; font-weight: 700;
  padding: 3px 9px; border-radius: 20px;
  font-family: var(--fh); text-transform: uppercase; letter-spacing: 0.3px;
  cursor: pointer; transition: all 0.15s;
}
.ada-chip:hover      { opacity: 0.8; }
.ada-chip.selected   { background: var(--navy); color: #fff; }
.ada-chip-red    { background: var(--red-light); color: #791F1F; }
.ada-chip-amber  { background: #FFF0D6; color: #633806; }

/* ---- Messages ---- */
.ada-msg {
  padding: 12px 14px; border-bottom: 1px solid var(--light);
  cursor: pointer; border-left: 3px solid transparent;
  transition: background 0.1s;
}
.ada-msg:hover { background: #fafbfd; }
.ada-msg.unread { border-left-color: var(--navy); background: #F0F4FF; }
.ada-admin-portal .ada-msg.unread { border-left-color: var(--red); background: #FFF5F5; }
.ada-msg-from {
  font-size: 13px; font-weight: 600;
  font-family: var(--fh);
  display: flex; justify-content: space-between;
}
.ada-msg-time    { font-size: 11px; font-weight: 400; color: var(--mid); font-family: var(--fb); }
.ada-msg-preview { font-size: 12px; color: var(--mid); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---- Forms ---- */
.ada-form-group { margin-bottom: 14px; }
.ada-form-label {
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.5px;
  font-family: var(--fh); color: var(--mid);
  display: block; margin-bottom: 6px;
}

/* ---- Slot picker ---- */
.ada-slot-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  gap: 8px; margin: 8px 0;
}
.ada-slot {
  background: var(--light); border: 1px solid var(--border);
  border-radius: 6px; padding: 10px; text-align: center;
  font-family: var(--fh); font-size: 12px; font-weight: 600;
  cursor: pointer; transition: all 0.15s;
}
.ada-slot:hover:not(.full) { background: #E6EDF8; border-color: var(--navy); }
.ada-slot.full    { background: #F7F7F7; color: #bbb; cursor: not-allowed; text-decoration: line-through; }
.ada-slot.selected { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---- Calendar ---- */
.ada-cal-wrap { overflow-x: auto; }
.ada-cal-grid {
  display: grid;
  grid-template-columns: 52px repeat(5, 1fr);
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden; min-width: 560px;
}
.ada-cal-head {
  background: var(--light); font-family: var(--fh); font-size: 11px; font-weight: 700;
  text-align: center; padding: 8px 4px;
  border-bottom: 1px solid var(--border); border-right: 1px solid var(--border);
}
.ada-cal-head:last-child { border-right: none; }
.ada-cal-head.today { background: var(--navy); color: #fff; }
.ada-cal-time {
  font-size: 10px; font-weight: 600; color: var(--mid); font-family: var(--fh);
  padding: 6px 4px; text-align: right;
  border-right: 1px solid var(--border); border-bottom: 1px solid var(--light);
  background: #fafbfd; display: flex; align-items: flex-start; justify-content: flex-end;
}
.ada-cal-cell {
  border-right: 1px solid var(--light); border-bottom: 1px solid var(--light);
  padding: 3px; min-height: 38px;
}
.ada-cal-cell:last-child { border-right: none; }
.ada-cal-event {
  border-radius: 4px; padding: 3px 6px;
  font-size: 11px; font-weight: 600; font-family: var(--fh);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
}
.ada-ev-navy  { background: #E6EDF8; color: var(--navy);  border-left: 3px solid var(--navy); }
.ada-ev-red   { background: var(--red-light); color: #791F1F; border-left: 3px solid var(--red); }
.ada-ev-teal  { background: var(--teal-light); color: var(--teal); border-left: 3px solid var(--teal); }
.ada-ev-amber { background: #FFF0D6; color: #633806; border-left: 3px solid #BA7517; }
.ada-cal-blocked {
  background: repeating-linear-gradient(45deg,#f7f7f7,#f7f7f7 4px,#eee 4px,#eee 8px);
  min-height: 38px;
}

/* ---- Availability rows ---- */
.ada-avail-row {
  display: grid; grid-template-columns: 80px 1fr 1fr 40px;
  gap: 8px; align-items: center;
  padding: 10px 0; border-bottom: 1px solid var(--light);
}
.ada-avail-row:last-child { border-bottom: none; }
.ada-avail-label { font-family: var(--fh); font-size: 12px; font-weight: 700; }
.ada-avail-off   { color: #bbb; }

/* ---- Theory hub ---- */
.ada-theory-hero {
  background: linear-gradient(135deg, var(--navy-dark), var(--navy));
  color: #fff; border-radius: 8px; padding: 24px; margin-bottom: 16px;
}
.ada-theory-prog {
  height: 10px; background: rgba(255,255,255,0.2);
  border-radius: 5px; overflow: hidden; margin: 12px 0 6px;
}
.ada-theory-fill { height: 100%; background: #378ADD; border-radius: 5px; }
.ada-theory-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: 6px; padding: 14px;
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 10px; cursor: pointer; transition: border-color 0.15s;
}
.ada-theory-card:hover { border-color: var(--navy); }
.ada-theory-icon {
  width: 44px; height: 44px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}
.ada-theory-name { font-size: 13px; font-weight: 700; font-family: var(--fh); }
.ada-theory-sub  { font-size: 11px; color: var(--mid); margin-top: 2px; }

/* ---- Focus box ---- */
.ada-focus-box {
  background: #FFF8E6; border: 1px solid #BA7517;
  border-radius: 6px; padding: 14px; margin-bottom: 16px;
}
.ada-focus-title {
  font-family: var(--fh); font-size: 12px; font-weight: 700;
  color: #633806; margin-bottom: 4px; display: flex; align-items: center; gap: 6px;
}
.ada-focus-text { font-size: 12px; color: #633806; line-height: 1.5; }

/* ---- Alert/banner ---- */
.ada-banner {
  border-radius: 6px; padding: 12px 14px;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px; font-size: 12px;
}
.ada-banner-teal { background: var(--teal-light); border: 1px solid #9ad4be; color: var(--teal); }
.ada-banner-red  { background: var(--red-light);  border: 1px solid #f0b8b8; color: #791F1F; }
.ada-banner strong { font-family: var(--fh); }

/* ---- Notification list ---- */
.ada-notif-item {
  display: flex; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--light);
}
.ada-notif-item:last-child { border-bottom: none; }
.ada-notif-dot {
  width: 8px; height: 8px;
  background: var(--red); border-radius: 50%;
  flex-shrink: 0; margin-top: 4px;
}
.ada-notif-text { font-size: 12px; line-height: 1.5; }
.ada-notif-time { font-size: 10px; color: var(--mid); margin-top: 3px; }

/* ---- Instructor card avatars (admin) ---- */
.ada-instr-av {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--fh); font-size: 14px; font-weight: 700;
  color: #fff; flex-shrink: 0;
}

/* ---- Integration rows (settings) ---- */
.ada-integ-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 0; border-bottom: 1px solid var(--light);
}
.ada-integ-row:last-child { border-bottom: none; }
.ada-integ-name { font-family: var(--fh); font-size: 13px; font-weight: 700; }
.ada-integ-desc { font-size: 11px; color: var(--mid); margin-top: 2px; }

/* ---- Filter bar ---- */
.ada-filter-bar {
  display: flex; gap: 10px; margin-bottom: 16px;
  flex-wrap: wrap; align-items: center;
}
.ada-filter-bar select,
.ada-filter-bar input { width: auto; flex: 1; min-width: 140px; }

/* ---- Buttons ---- */
.ada-btn {
  font-family: var(--fh); font-size: 12px; font-weight: 700;
  letter-spacing: 0.5px; text-transform: uppercase;
  padding: 9px 18px; border-radius: 4px;
  transition: opacity 0.15s; cursor: pointer; border: none;
  display: inline-block; text-align: center;
}
.ada-btn:hover { opacity: 0.88; }
.ada-btn-navy  { background: var(--navy); color: #fff; }
.ada-btn-red   { background: var(--red);  color: #fff; }
.ada-btn-teal  { background: var(--teal); color: #fff; }
.ada-btn-outline {
  background: #fff; color: var(--navy);
  border: 1px solid var(--border);
}
.ada-btn-outline:hover { border-color: var(--navy); background: var(--light); opacity: 1; }
.ada-btn-sm { padding: 5px 12px; font-size: 10px; }

/* ---- Mini progress bar (student table) ---- */
.ada-mini-prog { height: 5px; background: var(--light); border-radius: 3px; overflow: hidden; width: 80px; }
.ada-mini-fill { height: 100%; background: var(--navy); border-radius: 3px; }

/* ---- Toast ---- */
#ada-toast {
  position: fixed; bottom: 28px; right: 28px;
  background: var(--navy-dark); color: #fff;
  padding: 12px 20px; border-radius: 6px;
  font-size: 13px; font-weight: 500;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
  transform: translateY(80px); opacity: 0;
  transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  z-index: 9999; max-width: 340px;
  pointer-events: none;
}
#ada-toast.show { transform: translateY(0); opacity: 1; }

/* ---- Loading spinner ---- */
.ada-loading {
  display: flex; align-items: center; justify-content: center;
  padding: 32px; color: var(--mid); font-size: 13px; gap: 10px;
}
.ada-spinner {
  width: 20px; height: 20px; border: 2px solid var(--border);
  border-top-color: var(--navy); border-radius: 50%;
  animation: ada-spin 0.7s linear infinite;
}
@keyframes ada-spin { to { transform: rotate(360deg); } }

/* ---- Empty state ---- */
.ada-empty {
  text-align: center; padding: 32px 16px; color: var(--mid); font-size: 13px;
}
.ada-empty i { font-size: 32px; display: block; margin-bottom: 8px; opacity: 0.4; }

/* ---- Login notice ---- */
.ada-login-notice, .ada-notice {
  background: #fff; border: 1px solid var(--border);
  border-radius: 8px; padding: 24px; text-align: center;
  font-size: 14px; color: var(--mid);
}
.ada-login-notice a, .ada-notice a { color: var(--navy); font-weight: 700; }

/* ---- Detail panel (diary click) ---- */
.ada-detail-panel {
  background: #fff; border: 1px solid var(--border);
  border-radius: 6px; padding: 16px; margin-top: 12px;
  display: none;
}
.ada-detail-panel.open { display: block; }

/* ============================================================
   LOGIN PAGES
   ============================================================ */

.ada-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg);
  padding: 24px;
  font-family: var(--fb);
}

.ada-login-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--border);
  padding: 44px 40px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 4px 24px rgba(27,58,140,0.08);
}

.ada-login-logo {
  text-align: center;
  margin-bottom: 28px;
}

.ada-login-logo-text {
  font-family: var(--fh);
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 3px;
  color: var(--navy);
}

.ada-login-logo-text span { color: var(--red); }

.ada-login-logo-sub {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--mid);
  margin-top: 3px;
}

.ada-login-title {
  font-family: var(--fh);
  font-size: 20px;
  font-weight: 800;
  color: #1a1a2e;
  text-align: center;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.ada-login-subtitle {
  font-size: 13px;
  color: var(--mid);
  text-align: center;
  margin-bottom: 28px;
  line-height: 1.5;
}

.ada-login-error {
  background: var(--red-light);
  border: 1px solid #f0b8b8;
  color: #791F1F;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 13px;
  margin-bottom: 16px;
  line-height: 1.4;
}

.ada-login-form .ada-form-group { margin-bottom: 16px; }

.ada-login-form input[type="text"],
.ada-login-form input[type="password"] {
  font-family: var(--fb);
  font-size: 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 12px 14px;
  width: 100%;
  outline: none;
  color: #1a1a2e;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}

.ada-login-form input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 3px rgba(27,58,140,0.1);
}

.ada-login-btn {
  display: block;
  width: 100%;
  background: var(--navy);
  color: #fff;
  font-family: var(--fh);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  padding: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s;
  margin-top: 8px;
}

.ada-login-btn:hover:not(:disabled) { background: var(--navy-dark); }

.ada-login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.ada-login-help {
  text-align: center;
  font-size: 12px;
  color: var(--mid);
  margin-top: 22px;
}

.ada-login-help a {
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}

.ada-login-help a:hover { text-decoration: underline; }

/* ============================================================
   REGISTRATION FORM
   ============================================================ */

.ada-reg-success {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 10px;
  padding: 24px;
  margin-bottom: 16px;
}

/* ── Pending registrations list ── */

.ada-reg-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.ada-reg-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: #fafafa;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
}

.ada-reg-av {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  flex-shrink: 0;
}

.ada-reg-info { flex: 1; min-width: 0; }

.ada-reg-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--navy);
}

.ada-reg-meta {
  font-size: 13px;
  color: var(--mid);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ada-reg-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.ada-btn-green {
  background: #16a34a;
  color: #fff;
  border: none;
}
.ada-btn-green:hover { background: #15803d; }

/* ── Sidebar badge count ── */

.ada-badge-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--red);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  padding: 0 5px;
  margin-left: auto;
}

/* ============================================================
   ACCOUNTS TAB
   ============================================================ */

/* Toolbar */
.ada-accounts-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 16px;
  background: var(--light);
  border-radius: 10px;
  margin-bottom: 20px;
}
.ada-accounts-toolbar label {
  font-size: 13px;
  font-weight: 600;
  color: var(--grey);
  margin-right: 4px;
}
.ada-accounts-toolbar select {
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: 14px;
  color: var(--navy-dark);
}
.ada-acc-export-link {
  margin-left: auto;
  font-size: 13px;
  color: var(--navy);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}
.ada-acc-export-link:hover { text-decoration: underline; }

/* Summary cards — reuse .ada-metric but tinted */
.ada-metric.acc-income  { border-top: 4px solid var(--teal); }
.ada-metric.acc-expense { border-top: 4px solid var(--red); }
.ada-metric.acc-profit  { border-top: 4px solid var(--navy); }
.ada-metric.acc-tax     { border-top: 4px solid #F59E0B; }

/* Add-entry form */
.ada-accounts-form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 24px;
}
.ada-accounts-form-card h4 {
  margin: 0 0 16px;
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
}
.ada-form-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
  align-items: end;
}
.ada-form-row .ada-form-group { margin-bottom: 0; }

/* Income / expenditure toggle */
.ada-type-toggle {
  display: flex;
  gap: 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  width: fit-content;
}
.ada-type-toggle .ada-toggle-btn {
  padding: 8px 18px;
  border: none;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--grey);
  transition: background .15s, color .15s;
}
.ada-type-toggle .ada-toggle-btn.active {
  background: var(--navy);
  color: #fff;
}
.ada-type-toggle .ada-toggle-btn:first-child { border-right: 1px solid var(--border); }

/* Ledger tables */
.ada-accounts-table td, .ada-accounts-table th {
  font-size: 13px;
}
.ada-acc-cat {
  display: inline-block;
  padding: 2px 8px;
  background: var(--light);
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}
.ada-acc-synced {
  display: inline-block;
  padding: 1px 6px;
  background: var(--teal-light);
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: .4px;
}
.ada-acc-profit { color: var(--teal); font-weight: 700; }
.ada-acc-loss   { color: var(--red);  font-weight: 700; }

/* Section headings inside accounts */
.ada-acc-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy-dark);
  margin: 24px 0 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--border);
}

/* Hint text */
.ada-hint {
  color: var(--mid);
  font-size: 13px;
  padding: 12px 0;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .ada-portal { grid-template-columns: 1fr; }
  .ada-sidebar { display: none; }
  .ada-metrics { grid-template-columns: repeat(2, 1fr); }
  .ada-metrics-3 { grid-template-columns: repeat(2, 1fr); }
  .ada-two-col, .ada-three-col { grid-template-columns: 1fr; }
  .ada-slot-grid { grid-template-columns: repeat(3, 1fr); }
  .ada-filter-bar { flex-direction: column; }
}
@media (max-width: 480px) {
  .ada-content { padding: 16px; }
  .ada-topbar { padding: 0 16px; }
  .ada-metrics { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   PUBLIC ENQUIRY FORM
   ========================================================= */

.ada-enquiry-wrap {
  font-family: 'Montserrat', 'Lato', Arial, sans-serif;
  color: var(--text, #1f2937);
  background: #f7f9fc;
  min-height: 100vh;
}

.ada-enq-hero {
  background: linear-gradient(135deg, #071a33, #0f4c81);
  color: #fff;
  padding: 64px 24px 48px;
  text-align: center;
}
.ada-enq-hero-inner { max-width: 680px; margin: 0 auto; }
.ada-enq-eyebrow {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.14em;
  text-transform: uppercase; color: #f5b942; margin: 0 0 12px;
}
.ada-enq-heading {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800; line-height: 1.1; margin: 0 0 16px; color: #fff;
}
.ada-enq-sub { font-size: 1rem; color: #c8d8ea; margin: 0; line-height: 1.6; }

.ada-enq-body {
  max-width: 760px; margin: 0 auto; padding: 36px 24px 60px;
}

/* Type selector */
.ada-enq-type-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 28px;
}
.ada-enq-type-btn {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 22px 16px; background: #fff; border: 2px solid #e5eaf1;
  border-radius: 14px; cursor: pointer; transition: all 0.2s; font-family: inherit;
}
.ada-enq-type-btn:hover { border-color: #0f4c81; }
.ada-enq-type-btn.active { border-color: #f5b942; background: #fffbf0; box-shadow: 0 0 0 3px rgba(245,185,66,.15); }
.ada-enq-type-icon { font-size: 2rem; }
.ada-enq-type-label { font-size: 0.95rem; font-weight: 700; color: #071a33; }

/* Success */
.ada-enq-success {
  text-align: center; background: #fff; border-radius: 18px; padding: 48px 32px;
  border: 1px solid #e5eaf1; box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.ada-enq-success-icon {
  width: 64px; height: 64px; background: #ecfdf5; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: #059669; margin: 0 auto 20px;
}
.ada-enq-success h2 { font-size: 1.5rem; margin: 0 0 12px; color: #071a33; }
.ada-enq-success p  { color: #64748b; margin: 0; }

/* Form */
.ada-enq-form {
  background: #fff; border-radius: 18px; padding: 32px;
  border: 1px solid #e5eaf1; box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.ada-enq-section-title {
  font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  color: #64748b; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 1px solid #f0f2f5;
}
.ada-enq-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.ada-enq-group { display: flex; flex-direction: column; gap: 6px; }
.ada-enq-full  { margin-bottom: 16px; }
.ada-enq-label { font-size: 0.82rem; font-weight: 700; color: #374151; }
.ada-enq-req   { color: #dc2626; }
.ada-enq-opt   { font-weight: 400; color: #9ca3af; }
.ada-enq-input, .ada-enq-select, .ada-enq-textarea {
  padding: 11px 14px; border: 1.5px solid #e5eaf1; border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; color: #1f2937; width: 100%; box-sizing: border-box;
  transition: border-color 0.15s;
}
.ada-enq-input:focus, .ada-enq-select:focus, .ada-enq-textarea:focus {
  outline: none; border-color: #0f4c81; box-shadow: 0 0 0 3px rgba(15,76,129,.1);
}
.ada-enq-textarea { resize: vertical; }

/* Test date box */
.ada-enq-test-box {
  background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 12px;
  padding: 20px; margin-bottom: 16px;
}
.ada-enq-test-box-label { font-size: 0.85rem; font-weight: 700; color: #374151; margin-bottom: 12px; }
.ada-enq-test-radios { display: flex; gap: 20px; flex-wrap: wrap; }
.ada-enq-radio-label {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; color: #374151;
}
.ada-enq-test-date-row { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.ada-enq-hint { font-size: 0.8rem; color: #059669; margin: 4px 0 0; font-weight: 600; }

/* Learner fields block */
.ada-enq-learner-fields { margin-top: 28px; }

.ada-enq-error {
  background: #fef2f2; border: 1px solid #fecaca; border-radius: 8px;
  padding: 12px 16px; color: #dc2626; font-size: 0.9rem; margin-bottom: 16px;
}
.ada-enq-submit {
  width: 100%; padding: 15px; background: #071a33; color: #fff; border: none;
  border-radius: 10px; font-family: inherit; font-size: 1rem; font-weight: 800;
  cursor: pointer; transition: background 0.2s; margin-top: 8px;
}
.ada-enq-submit:hover:not(:disabled) { background: #0f4c81; }
.ada-enq-submit:disabled { opacity: 0.6; cursor: not-allowed; }
.ada-enq-privacy { font-size: 0.78rem; color: #9ca3af; text-align: center; margin: 10px 0 0; }

@media (max-width: 580px) {
  .ada-enq-type-row  { grid-template-columns: 1fr; }
  .ada-enq-row       { grid-template-columns: 1fr; }
  .ada-enq-form      { padding: 20px 16px; }
}

/* =========================================================
   ADMIN ENQUIRIES TABLE
   ========================================================= */

.ada-badge-gold { background: #f5b942 !important; color: #071a33 !important; }

.ada-enq-link-box {
  display: flex; align-items: center; gap: 10px; background: #f8fafc;
  border: 1px solid #e5eaf1; border-radius: 8px; padding: 10px 14px;
  font-size: 0.85rem; flex-wrap: wrap;
}

.ada-enq-mrow {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px;
}
.ada-enq-test-box-admin {
  background: #f8fafc; border: 1.5px solid #e2e8f0; border-radius: 10px;
  padding: 16px; margin-bottom: 14px;
}
.ada-input-sm {
  padding: 5px 8px; border: 1px solid #e5eaf1; border-radius: 6px;
  font-size: 0.8rem; font-family: inherit; width: 100%; box-sizing: border-box;
}
.ada-enq-tbl th { font-size: 0.75rem; white-space: nowrap; }
.ada-enq-tbl td { vertical-align: middle; font-size: 0.82rem; }
.ada-enq-td-date { white-space: nowrap; color: #64748b; }
.ada-enq-name strong { font-size: 0.88rem; }

/* Fix: admin table rows share the .ada-enq-row class name with the
   public enquiry form's 2-col grid layout above, which was forcing
   every row into a stacked 2-column grid instead of a normal table
   row. Scope a table-specific override back to proper table display. */
.ada-enq-tbl tbody tr.ada-enq-row {
  display: table-row;
}
.ada-enq-tbl tbody tr.ada-enq-row > td {
  display: table-cell;
}
.ada-enq-tbl tbody tr:nth-child(even) {
  background: var(--light);
}
.ada-enq-tbl {
  border-collapse: collapse;
  width: 100%;
}
.ada-enq-tbl th, .ada-enq-tbl td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
}

/* Type badges */
.ada-enq-badge {
  display: inline-block; padding: 2px 8px; border-radius: 999px;
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em;
}
.ada-enq-badge-learner   { background: #dbeafe; color: #1e40af; }
.ada-enq-badge-franchise { background: #fef3c7; color: #92400e; }

/* Test secured indicators */
.ada-enq-test-yes { color: #059669; font-size: 0.8rem; font-weight: 700; white-space: nowrap; }
.ada-enq-test-no  { color: #9ca3af; font-size: 0.8rem; }

/* Status select colours */
.ada-enq-status-enquiry   { background: #eff6ff; color: #1e40af; }
.ada-enq-status-waiting   { background: #fffbeb; color: #92400e; }
.ada-enq-status-allocated { background: #ecfdf5; color: #065f46; }
.ada-enq-status-started   { background: #f0fdf4; color: #166534; }
.ada-enq-status-completed { background: #f8fafc; color: #374151; }

.ada-btn-xs {
  padding: 4px 8px; font-size: 0.75rem;
}
.ada-enq-add-form { margin-bottom: 20px; }

/* ── Enquiry form Step 2 — slot picker ── */
.ada-enquiry-wrap .ada-hidden { display: none !important; }
.ada-slot-step { background: #f8f9fc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 32px; margin-top: 24px; }
.ada-slot-step h2 { margin: 0 0 6px; font-size: 1.35rem; color: #1a2233; }
.ada-slot-step p { margin: 0 0 20px; color: #64748b; font-size: .95rem; }
.ada-slot-row { display: flex; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.ada-slot-group { flex: 1; min-width: 180px; }
.ada-slot-label { display: block; font-size: .8rem; font-weight: 600; color: #374151; margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em; }
.ada-slot-select, .ada-slot-date { width: 100%; padding: 10px 14px; border: 1.5px solid #d1d5db; border-radius: 8px; font-size: .95rem; background: #fff; color: #1a2233; }
.ada-slot-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(90px, 1fr)); gap: 10px; margin: 16px 0; }
.ada-slot-btn { padding: 10px 0; border: 1.5px solid #cbd5e1; border-radius: 8px; background: #fff; cursor: pointer; font-size: .9rem; font-weight: 600; color: #374151; text-align: center; transition: all .15s; }
.ada-slot-btn:hover { border-color: #3b82f6; color: #3b82f6; background: #eff6ff; }
.ada-slot-btn.selected { border-color: #2563eb; background: #2563eb; color: #fff; }
.ada-slot-btn.taken { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.ada-slot-empty { color: #94a3b8; font-size: .9rem; padding: 12px 0; }
.ada-slot-loading { color: #94a3b8; font-size: .9rem; }
.ada-slot-actions { display: flex; gap: 12px; align-items: center; margin-top: 20px; flex-wrap: wrap; }
.ada-slot-confirm { padding: 12px 28px; background: #2563eb; color: #fff; border: none; border-radius: 8px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: background .15s; }
.ada-slot-confirm:hover:not(:disabled) { background: #1d4ed8; }
.ada-slot-confirm:disabled { opacity: .5; cursor: not-allowed; }
.ada-slot-skip { background: none; border: none; color: #64748b; font-size: .9rem; cursor: pointer; text-decoration: underline; padding: 0; }
.ada-slot-skip:hover { color: #374151; }
.ada-slot-error { color: #dc2626; font-size: .875rem; margin-top: 8px; }

/* ============================================================
   Small bespoke "LMS" companion — My Progress / Update Progress
   Reuses the brand variables above; these are lightweight
   standalone pages, not the full sidebar dashboard layout.
   ============================================================ */
.ada-progress-page {
  max-width: 760px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  font-family: var(--fb);
  color: var(--navy-dark);
}
.ada-progress-header { text-align: center; margin-bottom: 40px; }
.ada-progress-logo {
  font-family: var(--fh); font-weight: 800; font-size: 1.6rem;
  letter-spacing: .02em; color: var(--navy);
}
.ada-progress-logo span { color: var(--red); }
.ada-progress-sub {
  font-family: var(--fh); font-size: .72rem; font-weight: 700;
  letter-spacing: .18em; color: var(--mid); margin-top: 2px;
}
.ada-progress-header h1 {
  font-family: var(--fh); font-size: 1.7rem; color: var(--navy-dark);
  margin: 18px 0 0;
}
.ada-progress-section {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; padding: 24px 28px; margin-bottom: 24px;
}
.ada-progress-section h2 {
  font-family: var(--fh); font-size: 1.05rem; margin: 0 0 18px; color: var(--navy);
}
.ada-progress-empty { color: var(--mid); font-size: .95rem; }

.ada-skill-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ada-skill-label { width: 150px; flex-shrink: 0; font-size: .9rem; font-weight: 600; color: var(--navy-dark); }
.ada-skill-track { flex: 1; height: 10px; background: var(--light); border-radius: 999px; overflow: hidden; }
.ada-skill-fill { height: 100%; background: var(--navy); border-radius: 999px; transition: width .3s; }
.ada-skill-pct { width: 40px; text-align: right; font-size: .85rem; font-weight: 700; color: var(--navy); }

.ada-lesson-list { display: flex; flex-direction: column; gap: 14px; }
.ada-lesson-row { border-top: 1px solid var(--border); padding-top: 14px; }
.ada-lesson-row:first-child { border-top: none; padding-top: 0; }
.ada-lesson-date { font-size: .85rem; font-weight: 700; color: var(--navy); }
.ada-lesson-meta { font-size: .9rem; color: var(--grey); margin-top: 2px; }
.ada-lesson-status { display: inline-block; margin-left: 8px; padding: 2px 9px; border-radius: 999px; font-size: .72rem; font-weight: 700; text-transform: uppercase; }
.ada-lesson-status--approved { background: var(--teal-light); color: var(--teal); }
.ada-lesson-status--pending  { background: #fef3c7; color: #b45309; }
.ada-lesson-note {
  margin-top: 8px; padding: 10px 14px; background: var(--light);
  border-radius: 8px; font-size: .88rem; color: var(--navy-dark);
  border-left: 3px solid var(--navy);
}

.ada-instr-list { display: flex; flex-direction: column; gap: 10px; }
.ada-instr-student { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.ada-instr-student-toggle {
  width: 100%; text-align: left; padding: 14px 18px; background: var(--light);
  border: none; font-family: var(--fh); font-weight: 700; font-size: .95rem;
  color: var(--navy-dark); cursor: pointer;
}
.ada-instr-student-toggle:hover { background: var(--border); }
.ada-instr-skills { padding: 18px; }
.ada-instr-skill-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.ada-instr-skill-row label { width: 150px; flex-shrink: 0; font-size: .88rem; font-weight: 600; }
.ada-instr-skill-slider { flex: 1; accent-color: var(--navy); }
.ada-instr-skill-val { width: 42px; text-align: right; font-size: .85rem; font-weight: 700; color: var(--navy); }
.ada-instr-save-btn {
  margin-top: 8px; padding: 10px 22px; background: var(--navy); color: var(--white);
  border: none; border-radius: 8px; font-weight: 700; font-size: .9rem; cursor: pointer;
}
.ada-instr-save-btn:hover:not(:disabled) { background: var(--navy-dark); }
.ada-instr-save-btn:disabled { opacity: .6; cursor: not-allowed; }
.ada-instr-save-status { margin-left: 12px; font-size: .85rem; color: var(--mid); }
