/* ── FlyWithAustin Student Portal Styles ─────────────────────────────
   Variables are defined on the wrapper element itself (not just :root)
   so they work inside Elementor, Divi, and other page builders.
──────────────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Barlow+Condensed:wght@600;700;800;900&family=Nunito:wght@400;500;600;700;800;900&display=swap');

/* ── Root fallbacks (standard pages) ── */
:root {
  --fwa-orange:    #e8821a;
  --fwa-orange-lt: #f5a04a;
  --fwa-orange-dk: #c96a0c;
  --fwa-sky:       #6ab4d8;
  --fwa-sky-lt:    #b8ddf0;
  --fwa-sky-bg:    #e8f4fb;
  --fwa-charcoal:  #2c2c2c;
  --fwa-white:     #ffffff;
  --fwa-off-white: #f4f6f8;
  --fwa-text:      #333333;
  --fwa-muted:     #777777;
  --fwa-border:    #e0e6ed;
  --fwa-green:     #3db87a;
  --fwa-red:       #e05252;
  --fwa-shadow:    0 4px 20px rgba(0,0,0,0.09);
  --fwa-shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --fwa-radius:    18px;
  --fwa-radius-sm: 10px;
  --fwa-font:      'Nunito', sans-serif;
  --fwa-display:   'Barlow Condensed', sans-serif;
}

/* ── Scoped variables on the portal wrapper itself (Elementor safe) ── */
.fwa-portal,
.fwa-instructor-portal {
  --fwa-orange:    #e8821a;
  --fwa-orange-lt: #f5a04a;
  --fwa-orange-dk: #c96a0c;
  --fwa-sky:       #6ab4d8;
  --fwa-sky-lt:    #b8ddf0;
  --fwa-sky-bg:    #e8f4fb;
  --fwa-charcoal:  #2c2c2c;
  --fwa-white:     #ffffff;
  --fwa-off-white: #f4f6f8;
  --fwa-text:      #333333;
  --fwa-muted:     #777777;
  --fwa-border:    #e0e6ed;
  --fwa-green:     #3db87a;
  --fwa-red:       #e05252;
  --fwa-shadow:    0 4px 20px rgba(0,0,0,0.09);
  --fwa-shadow-lg: 0 8px 32px rgba(0,0,0,0.14);
  --fwa-radius:    18px;
  --fwa-radius-sm: 10px;
  --fwa-font:      'Nunito', sans-serif;
  --fwa-display:   'Barlow Condensed', sans-serif;

  font-family: 'Nunito', sans-serif;
  color: #333333;
  background: #f4f6f8;
  box-sizing: border-box;
}

.fwa-portal *,
.fwa-portal *::before,
.fwa-portal *::after,
.fwa-instructor-portal *,
.fwa-instructor-portal *::before,
.fwa-instructor-portal *::after {
  box-sizing: border-box;
}

/* ══════════════════════════════════════════════
   PORTAL HEADER
══════════════════════════════════════════════ */
.fwa-portal-header {
  background: #2c2c2c;
  border-radius: 18px 18px 0 0;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}
.fwa-portal-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #6ab4d8;
  text-transform: uppercase;
  margin-bottom: 5px;
}
.fwa-portal-welcome {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif !important;
  font-size: 40px !important;
  font-weight: 800 !important;
  letter-spacing: 2px !important;
  line-height: 1 !important;
  color: #ffffff !important;
  margin: 0 0 6px !important;
  padding: 0 !important;
}
.fwa-portal-welcome span { color: #e8821a; }
.fwa-portal-sub { color: #99a8b4; font-size: 13px; font-weight: 600; margin: 0; }

/* ══════════════════════════════════════════════
   HOURS WIDGET
══════════════════════════════════════════════ */
.fwa-hours-widget {
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255,255,255,0.07);
  border: 2px solid rgba(255,255,255,0.10);
  border-radius: 10px;
  padding: 14px 22px;
  flex-wrap: wrap;
}
.fwa-hours-stat { text-align: center; }
.fwa-hours-num {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  color: #e8821a;
  letter-spacing: 1px;
}
.fwa-hours-num.fwa-teal  { color: #6ab4d8; }
.fwa-hours-num.fwa-green { color: #3db87a; }
.fwa-hours-label {
  font-size: 10px;
  font-weight: 800;
  color: #99a8b4;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 2px;
}
.fwa-hours-divider { width: 1px; height: 44px; background: rgba(255,255,255,0.12); }

/* ══════════════════════════════════════════════
   PROGRESS BAR
══════════════════════════════════════════════ */
.fwa-progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: rgba(255,255,255,0.10);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 12px;
}
.fwa-progress-bar {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #6ab4d8, #e8821a);
  transition: width 0.6s cubic-bezier(.4,0,.2,1);
}

/* ══════════════════════════════════════════════
   PORTAL NAV TABS
══════════════════════════════════════════════ */
.fwa-portal-nav {
  display: flex;
  background: #2c2c2c;
  border-bottom: 3px solid #e8821a;
  padding: 0 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.fwa-portal-nav::-webkit-scrollbar { display: none; }

.fwa-ptab {
  padding: 13px 18px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  font-family: 'Nunito', sans-serif;
  color: #99a8b4;
  border: none;
  border-bottom: 3px solid transparent;
  background: none;
  transition: all 0.18s;
  margin-bottom: -3px;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.fwa-ptab:hover { color: #ffffff; }
.fwa-ptab.active { color: #e8821a; border-bottom-color: #e8821a; }

/* ══════════════════════════════════════════════
   PANELS
══════════════════════════════════════════════ */
.fwa-ppanel {
  display: none;
  padding: 24px;
  background: #f4f6f8;
  animation: fwaFadeUp 0.22s ease;
}
.fwa-ppanel.active { display: block; }
@keyframes fwaFadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════════════
   CARDS
══════════════════════════════════════════════ */
.fwa-portal-card {
  background: #ffffff;
  border: 1px solid #e0e6ed;
  border-radius: 18px;
  padding: 26px;
  margin-bottom: 18px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.09);
}
.fwa-card-title {
  font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #2c2c2c;
  margin: 0 0 4px;
  display: inline-block;
  line-height: 1.1;
}
.fwa-card-underline {
  height: 4px;
  width: 48px;
  background: #e8821a;
  border-radius: 2px;
  margin-bottom: 18px;
}
.fwa-portal-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }

/* ══════════════════════════════════════════════
   NOTES
══════════════════════════════════════════════ */
.fwa-note-item {
  background: #e8f4fb;
  border: 1px solid #b8ddf0;
  border-left: 4px solid #6ab4d8;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.fwa-note-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 6px;
  font-size: 12px;
  flex-wrap: wrap;
}
.fwa-note-meta strong { color: #e8821a; font-weight: 800; }
.fwa-note-meta span   { color: #777777; font-weight: 600; }
.fwa-note-body { font-size: 14px; line-height: 1.65; color: #333333; font-weight: 500; }

/* ══════════════════════════════════════════════
   ASSIGNMENT ITEMS
══════════════════════════════════════════════ */
.fwa-assignment-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 10px;
  border: 1px solid #e0e6ed;
  background: #ffffff;
  margin-bottom: 10px;
  transition: all 0.18s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  cursor: pointer;
}
.fwa-assignment-item:hover {
  border-color: #f5a04a;
  box-shadow: 0 4px 16px rgba(232,130,26,0.12);
  transform: translateY(-1px);
}
.fwa-assign-check {
  width: 24px; height: 24px;
  border-radius: 6px;
  border: 2px solid #e0e6ed;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  font-size: 13px; font-weight: 900;
  transition: all 0.2s;
  color: #ffffff;
  user-select: none;
}
.fwa-assign-check:hover  { border-color: #e8821a; }
.fwa-assign-check.done   { background: #3db87a; border-color: #3db87a; }
.fwa-assign-info { flex: 1; min-width: 0; }
.fwa-assign-title { font-size: 14px; font-weight: 700; color: #333333; }
.fwa-assign-desc  { font-size: 12px; color: #777777; margin-top: 3px; line-height: 1.5; }
.fwa-assign-due   { font-size: 12px; color: #6ab4d8; font-weight: 700; margin-top: 3px; }
.fwa-assign-link  { font-size: 12px; color: #e8821a; text-decoration: none; font-weight: 700; display: inline-block; margin-top: 4px; }
.fwa-assign-link:hover { text-decoration: underline; }
.fwa-assign-done .fwa-assign-title { text-decoration: line-through; opacity: 0.4; }

/* ══════════════════════════════════════════════
   BADGES
══════════════════════════════════════════════ */
.fwa-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-family: 'Nunito', sans-serif;
}
.fwa-badge-active,
.fwa-badge-complete    { background: #d4f5e4; color: #1e8a4e; }
.fwa-badge-pending     { background: #fdecd3; color: #c96a0c; }
.fwa-badge-in-progress { background: #e8f4fb; color: #2980a8; }
.fwa-badge-solo-ready  { background: #e8f4fb; color: #2980a8; }
.fwa-badge-graduated   { background: #ede9ff; color: #6c48c5; }
.fwa-badge-inactive,
.fwa-badge-cancelled   { background: #f0f0f0; color: #777777; }
.fwa-badge-on-hold,
.fwa-badge-new,
.fwa-badge-unpaid      { background: #fdecd3; color: #c96a0c; }
.fwa-badge-paid        { background: #d4f5e4; color: #1e8a4e; }
.fwa-badge-partial     { background: #e8f4fb; color: #2980a8; }
.fwa-badge-suspended   { background: #fdf0f0; color: #e05252; }

/* ══════════════════════════════════════════════
   KNOWLEDGE BASE GRID
══════════════════════════════════════════════ */
.fwa-kb-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.fwa-kb-card {
  background: #ffffff;
  border: 1px solid #e0e6ed;
  border-radius: 18px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.22s;
  box-shadow: 0 2px 10px rgba(0,0,0,0.07);
  position: relative;
  overflow: hidden;
}
.fwa-kb-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 4px;
  background: #6ab4d8;
  transform: scaleX(0);
  transition: transform 0.22s;
  transform-origin: left;
}
.fwa-kb-card:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(0,0,0,0.14); border-color: #b8ddf0; }
.fwa-kb-card:hover::before { transform: scaleX(1); }
.fwa-kb-icon  { font-size: 30px; margin-bottom: 10px; display: block; }
.fwa-kb-title { font-size: 15px; font-weight: 800; color: #2c2c2c; margin-bottom: 6px; }
.fwa-kb-desc  { font-size: 12px; color: #777777; line-height: 1.55; font-weight: 500; }
.fwa-kb-tag   {
  display: inline-flex; margin-top: 10px;
  font-size: 10px; font-weight: 800;
  padding: 3px 10px; border-radius: 20px;
  background: #e8f4fb; color: #2980a8;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.fwa-kb-new-badge {
  position: absolute; top: 10px; right: 10px;
  background: #e8821a; color: #fff;
  font-size: 9px; font-weight: 900;
  padding: 2px 7px; border-radius: 10px;
  letter-spacing: 1px; text-transform: uppercase;
  font-family: 'Nunito', sans-serif;
}

/* ══════════════════════════════════════════════
   INVOICE ITEMS
══════════════════════════════════════════════ */
.fwa-invoice-item {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; padding: 18px 20px; border-radius: 10px;
  border: 1px solid #e0e6ed; background: #ffffff;
  margin-bottom: 12px; transition: all 0.2s;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05); flex-wrap: wrap;
}
.fwa-invoice-item:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.09); transform: translateY(-1px); }
.fwa-invoice-unpaid { border-color: #f5a04a; border-left: 4px solid #e8821a; background: #fffaf5; }
.fwa-invoice-left  { flex: 1; min-width: 0; }
.fwa-invoice-title { font-size: 15px; font-weight: 800; color: #2c2c2c; margin-bottom: 3px; }
.fwa-invoice-desc  { font-size: 12px; color: #777777; margin-bottom: 6px; font-weight: 500; }
.fwa-invoice-meta  { font-size: 12px; color: #777777; font-weight: 600; }
.fwa-invoice-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.fwa-invoice-amount { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: 30px; font-weight: 800; color: #2c2c2c; line-height: 1; letter-spacing: 1px; }
.fwa-invoice-unpaid .fwa-invoice-amount { color: #c96a0c; }

.fwa-pay-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #e8821a; color: #ffffff;
  padding: 10px 20px; border-radius: 50px;
  font-size: 13px; font-weight: 800; text-decoration: none;
  transition: all 0.18s; box-shadow: 0 4px 14px rgba(232,130,26,0.35);
  text-transform: uppercase; letter-spacing: 0.5px; white-space: nowrap;
  border: none; cursor: pointer; font-family: 'Nunito', sans-serif;
}
.fwa-pay-btn:hover { background: #c96a0c; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(232,130,26,0.45); color: #ffffff; }

/* Total due callout */
.fwa-total-due {
  background: #2c2c2c; border-radius: 10px;
  padding: 14px 22px; text-align: center; display: inline-block;
}
.fwa-total-due-label  { font-size: 10px; color: #99a8b4; letter-spacing: 2px; text-transform: uppercase; font-weight: 800; margin-bottom: 2px; }
.fwa-total-due-amount { font-family: 'Barlow Condensed', 'Arial Narrow', sans-serif; font-size: 34px; font-weight: 800; color: #e8821a; letter-spacing: 2px; line-height: 1; }

/* ══════════════════════════════════════════════
   LOGIN / NOTICE
══════════════════════════════════════════════ */
.fwa-login-notice,
.fwa-notice {
  background: #e8f4fb; border: 2px solid #b8ddf0;
  border-radius: 18px; padding: 24px 28px;
  color: #333333; font-family: 'Nunito', sans-serif;
  font-size: 15px; font-weight: 600; text-align: center;
}
.fwa-login-notice a, .fwa-notice a { color: #e8821a; font-weight: 800; }
.fwa-empty { color: #777777; font-size: 14px; text-align: center; padding: 24px 0; font-weight: 600; }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .fwa-portal-header   { flex-direction: column; padding: 20px; border-radius: 10px 10px 0 0; }
  .fwa-hours-widget    { justify-content: center; width: 100%; }
  .fwa-portal-grid     { grid-template-columns: 1fr; }
  .fwa-kb-grid         { grid-template-columns: repeat(2, 1fr); }
  .fwa-portal-welcome  { font-size: 30px !important; }
  .fwa-ppanel          { padding: 16px; }
}
@media (max-width: 480px) {
  .fwa-kb-grid         { grid-template-columns: 1fr; }
  .fwa-hours-widget    { flex-direction: column; gap: 14px; }
  .fwa-hours-divider   { width: 60px; height: 1px; }
  .fwa-ptab            { padding: 10px 12px; font-size: 11px; }
  .fwa-portal-card     { padding: 18px; border-radius: 12px; }
}
