/* Anaxee Students portal skin v1 (23 Nov 2026).
 * Loaded after theme.css (functions.php enqueues assets/css/app.css when present).
 * Same palette and type as anaxee.com/students: navy #14212b, teal #0b7c89 / #11a6b8, amber #f4a62a,
 * Poppins body, Barlow Condensed headings. Remove this file to return to the previous look.
 */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700&family=Poppins:wght@400;500;600;700&display=swap');

:root {
  --background: 180 14% 97%;
  --foreground: 206 37% 12%;
  --card: 0 0% 100%;
  --card-foreground: 206 37% 12%;
  --popover: 0 0% 100%;
  --popover-foreground: 206 37% 12%;
  --primary: 186 85% 29%;
  --primary-foreground: 0 0% 100%;
  --secondary: 190 18% 93%;
  --secondary-foreground: 206 37% 12%;
  --muted: 190 18% 94%;
  --muted-foreground: 200 13% 38%;
  --accent: 187 55% 94%;
  --accent-foreground: 186 85% 29%;
  --border: 195 14% 86%;
  --input: 195 14% 82%;
  --ring: 186 85% 29%;
  --radius: 0.6rem;
}

html, :host, body.aar-app {
  font-family: 'Poppins', Arial, Helvetica, sans-serif;
}

body.aar-app h1,
body.aar-app h2 {
  font-family: 'Barlow Condensed', 'Poppins', Arial, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0;
  line-height: 1.05;
}

/* Page backgrounds: drop the blue wash, use the calm Anaxee grey. */
body.aar-app .bg-gradient-to-br.from-background {
  background-image: none;
  background-color: hsl(var(--background));
}

/* Sticky headers: white bar with a thin rule, like anaxee.com. */
body.aar-app header.sticky {
  background: #fff;
  border-bottom: 1px solid hsl(var(--border));
}

/* Main call-to-action buttons in Anaxee amber. */
body.aar-app .bg-primary.aar-cta,
body.aar-app a.aar-cta {
  background-color: #f4a62a !important;
  color: #14212b !important;
}

/* Dashboard hero: navy instead of a stock photo. */
body.aar-app .aar-hero {
  background: #14212b !important;
}
body.aar-app .aar-hero > .absolute {
  display: none;
}

/* Status and category chips keep their colours; cards get the Anaxee border. */
body.aar-app .rounded-lg.border {
  border-color: hsl(var(--border));
}

/* v2 (24 Nov 2026): application tracker on the dashboard. */
body.aar-app .aar-track {
  list-style: none;
  margin: 4px 0 10px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
}
body.aar-app .aar-track li {
  position: relative;
  text-align: center;
  font-size: 11px;
  line-height: 1.25;
  color: hsl(var(--muted-foreground));
}
body.aar-app .aar-track li::before {
  content: '';
  position: absolute;
  top: 13px;
  left: -50%;
  width: 100%;
  height: 2px;
  background: hsl(var(--border));
  z-index: 0;
}
body.aar-app .aar-track li:first-child::before { display: none; }
body.aar-app .aar-track li.done::before { background: #0b7c89; }
body.aar-app .aar-track .dot {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid hsl(var(--border));
  background: #fff;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}
body.aar-app .aar-track li.done .dot { color: #fff; }
body.aar-app .aar-track li.done .lbl { color: #14212b; font-weight: 600; }
body.aar-app .aar-track .lbl { display: block; padding: 0 2px; }
body.aar-app .aar-track-next {
  font-size: 13px;
  margin: 0 0 10px;
  color: #14212b;
  background: #f3f7f8;
  border-radius: 6px;
  padding: 8px 10px;
}
body.aar-app .aar-track-note {
  font-size: 13px;
  border-left: 3px solid #0b7c89;
  padding: 6px 10px;
  margin: 0 0 10px;
  background: #fff;
}

/* v2: profile checklist card on the dashboard. */
body.aar-app .aar-checklist {
  background: #fff;
  border: 1px solid hsl(var(--border));
  border-left: 4px solid #f4a62a;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 0 0 8px;
}
body.aar-app .aar-checklist-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}
body.aar-app .aar-checklist h3 { font-size: 17px; font-weight: 700; margin: 0 0 4px; }
body.aar-app .aar-checklist p { font-size: 13px; color: hsl(var(--muted-foreground)); margin: 0; }
body.aar-app .aar-bar { height: 8px; background: hsl(var(--muted)); border-radius: 999px; margin: 12px 0 8px; overflow: hidden; }
body.aar-app .aar-bar span { display: block; height: 100%; background: #0b7c89; border-radius: 999px; }
body.aar-app .aar-checklist .aar-missing { color: #14212b; }

/* v2: shared header - long page titles are cut with an ellipsis, the e-mail shows only on wide screens. */
body.aar-app .aar-head-title {
  max-width: 24vw;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 1439px) {
  body.aar-app .aar-head-email { display: none !important; }
}

/* v2: status form inside the admin actions menu. */
body.aar-app .aar-status-form { min-width: 240px; }

/* Phone header v2 (24 Nov 2026): logo on the first row, buttons wrap onto a
 * second row as compact pills, so nothing is cut off (Sign Out included). */
@media (max-width: 767px) {
  body.aar-app header.sticky .container.flex.justify-between,
  body.aar-app header.sticky .container > .flex.justify-between {
    flex-wrap: wrap;
    row-gap: 10px;
    column-gap: 8px;
  }
  body.aar-app header.sticky .aar-head-actions {
    width: 100%;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 8px;
    overflow: visible;
    max-width: none;
  }
  body.aar-app header.sticky .aar-head-actions > *,
  body.aar-app header.sticky .aar-head-actions > div > * {
    margin: 0 !important;
  }
  body.aar-app header.sticky .aar-head-actions > div,
  body.aar-app header.sticky .aar-head-actions > form {
    display: contents;
  }
  body.aar-app header.sticky .aar-head-actions a,
  body.aar-app header.sticky .aar-head-actions button {
    width: auto !important;
    flex: 0 0 auto !important;
    height: 34px;
    padding: 0 12px;
    font-size: 13px;
  }
  body.aar-app header.sticky .aar-head-actions .text-sm {
    flex-basis: 100%;
    font-size: 12px;
  }
  body.aar-app .aar-admin-title {
    font-size: 20px;
    line-height: 1.15;
  }
  body.aar-app h1 {
    font-size: 30px;
  }
}
