/* ═══════════════════════════════════════════════════════════════════════════
   T.U.M.S — CORE STYLESHEET
   Colors: Navy #1a2f6e | Cyan #00a8e8 | Gold #f5c518 | Light BG #f4f5f7
   Font: Barlow (headers) + Barlow Condensed (logo/accents)
   ═══════════════════════════════════════════════════════════════════════════ */

:root {
  --navy:        #1a2f6e;
  --navy-dark:   #0f1e4a;
  --navy-light:  #2a4099;
  --cyan:        #00a8e8;
  --cyan-light:  #33bcf0;
  --gold:        #f5c518;
  --gold-dark:   #d4a800;
  --white:       #ffffff;
  --bg:          #f4f5f7;
  --bg-card:     #ffffff;
  --text:        #1a1a2e;
  --text-muted:  #6b7280;
  --border:      #e5e7eb;
  --green:       #10b981;
  --teal:        #0d9488;
  --radius:      12px;
  --shadow:      0 2px 12px rgba(26,47,110,0.10);
  --shadow-lg:   0 8px 32px rgba(26,47,110,0.15);
  --transition:  0.2s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Barlow', sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── SHARED NAV ──────────────────────────────────────────────────────────── */
.tums-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: transparent;
  transition: background var(--transition), box-shadow var(--transition);
  padding: 0 2rem;
}
.tums-nav.scrolled {
  background: var(--white);
  box-shadow: 0 1px 8px rgba(0,0,0,0.10);
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.nav-logo { height: 36px; width: auto; }
.nav-wordmark {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.5rem;
  color: var(--navy);
  letter-spacing: 1px;
}
/* Invert wordmark on dark hero */
.marketing-page .tums-nav:not(.scrolled) .nav-wordmark { color: var(--white); }
.marketing-page .tums-nav:not(.scrolled) .nav-links a { color: rgba(255,255,255,0.9); }

.nav-links {
  display: flex; align-items: center; gap: 1.75rem;
}
.nav-links a {
  color: var(--navy); font-weight: 500; font-size: 0.95rem;
  text-decoration: none; transition: color var(--transition);
}
.nav-links a:hover { color: var(--cyan); }

.btn-signin {
  background: transparent;
  border: 2px solid var(--navy);
  color: var(--navy);
  padding: .45rem 1.25rem;
  border-radius: 50px;
  font-family: 'Barlow', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
  transition: all var(--transition);
}
.btn-signin:hover { background: var(--navy); color: var(--white); }
.marketing-page .tums-nav:not(.scrolled) .btn-signin {
  border-color: var(--white); color: var(--white);
}
.marketing-page .tums-nav:not(.scrolled) .btn-signin:hover {
  background: var(--white); color: var(--navy);
}

/* ── HERO ────────────────────────────────────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  text-align: center;
  padding: 6rem 2rem 4rem;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(160deg, var(--navy-dark) 0%, var(--navy) 45%, var(--navy-light) 100%);
  z-index: 0;
}
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(0,168,232,0.18) 0%, transparent 60%);
}
.hero-content {
  position: relative; z-index: 1;
  max-width: 720px; margin: 0 auto;
}
.hero-headline {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800;
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.1;
  color: var(--white);
  margin-bottom: 1.25rem;
}
.hero-sub {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.82);
  max-width: 560px; margin: 0 auto 2.25rem;
  line-height: 1.7;
}
.hero-trust {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.btn-cta {
  background: var(--gold);
  color: var(--navy-dark);
  border: none;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(245,197,24,0.4);
  transition: transform var(--transition), box-shadow var(--transition);
}
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(245,197,24,0.5); }
.btn-cta.secondary {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white);
  box-shadow: none;
}
.btn-cta.secondary:hover { background: var(--white); color: var(--navy); }

/* ── FEATURES ────────────────────────────────────────────────────────────── */
.features-section {
  padding: 5rem 1rem;
  background: var(--white);
}
.section-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 2.25rem;
  color: var(--navy);
  text-align: center;
  margin-bottom: 3rem;
}
.section-title.light { color: var(--white); }

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  max-width: 1100px; margin: 0 auto;
}
.feature-card {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 2rem;
  border: 1px solid var(--border);
  transition: transform var(--transition), box-shadow var(--transition);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.feature-icon {
  width: 48px; height: 48px;
  background: var(--navy);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem;
  color: var(--white);
}
.feature-icon.accent-gold { background: var(--gold); color: var(--navy-dark); }
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 {
  font-weight: 700; font-size: 1.05rem;
  color: var(--navy); margin-bottom: .5rem;
}
.feature-card p { color: var(--text-muted); font-size: 0.92rem; line-height: 1.65; }

/* ── DEMO STRIP ──────────────────────────────────────────────────────────── */
.demo-strip {
  background: var(--navy);
  padding: 5rem 1rem;
}
.demo-sub {
  color: rgba(255,255,255,0.78);
  font-size: 1.05rem;
  margin-bottom: 2rem;
}

/* ── FOOTER ──────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--navy-dark);
  padding: 2rem 1rem;
}
.footer-inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
}
.footer-brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--white);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.2rem;
}
.footer-logo { height: 28px; }
.footer-copy { color: rgba(255,255,255,0.55); font-size: 0.82rem; }
.footer-copy a { color: var(--cyan); text-decoration: none; }

/* ── MODALS ──────────────────────────────────────────────────────────────── */
.tums-modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(10,15,40,0.72);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity 0.22s ease;
}
.tums-modal-overlay.active { opacity: 1; pointer-events: all; }

.tums-modal {
  background: var(--white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%; max-width: 480px;
  position: relative;
  box-shadow: 0 24px 60px rgba(0,0,0,0.22);
  transform: translateY(16px);
  transition: transform 0.22s ease;
}
.tums-modal-overlay.active .tums-modal { transform: translateY(0); }
.tums-modal.small { max-width: 420px; }

.modal-close {
  position: absolute; top: 1rem; right: 1rem;
  background: none; border: none;
  font-size: 1.5rem; color: var(--text-muted);
  cursor: pointer; line-height: 1;
  transition: color var(--transition);
}
.modal-close:hover { color: var(--text); }

.modal-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.7rem;
  color: var(--navy); margin-bottom: .4rem;
}
.modal-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

.form-group { margin-bottom: 1rem; }
.form-group label {
  display: block; font-size: 0.85rem; font-weight: 600;
  color: var(--text); margin-bottom: .35rem;
}
.form-group input {
  width: 100%; padding: .65rem .9rem;
  border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 0.95rem;
  font-family: 'Barlow', sans-serif;
  transition: border-color var(--transition);
  outline: none;
}
.form-group input:focus { border-color: var(--navy); }

.btn-modal-primary {
  width: 100%; padding: .8rem;
  background: var(--navy);
  color: var(--white); border: none;
  border-radius: 8px;
  font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: 1rem;
  cursor: pointer; margin-top: .5rem;
  transition: background var(--transition);
}
.btn-modal-primary:hover { background: var(--navy-light); }

.btn-modal-back {
  width: 100%; padding: .6rem;
  background: transparent; color: var(--text-muted);
  border: none; font-family: 'Barlow', sans-serif;
  font-size: 0.9rem; cursor: pointer; margin-top: .25rem;
}
.btn-modal-back:hover { color: var(--text); }

.modal-divider {
  display: flex; align-items: center; gap: .75rem;
  margin: 1.25rem 0;
  color: var(--text-muted); font-size: 0.82rem;
}
.modal-divider::before, .modal-divider::after {
  content: ''; flex: 1; height: 1px; background: var(--border);
}

.modal-error {
  display: none;
  background: #fee2e2; color: #b91c1c;
  border-radius: 6px; padding: .55rem .8rem;
  font-size: 0.88rem; margin-bottom: .75rem;
}

.modal-footer-link {
  text-align: center; font-size: 0.88rem;
  color: var(--text-muted); margin-top: 1rem;
}
.modal-footer-link a { color: var(--navy); font-weight: 600; text-decoration: none; }

.hidden { display: none !important; }

/* Azure info box */
.azure-info-box {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 1.1rem;
  margin-bottom: 1.25rem;
}
.azure-info-box svg { color: var(--navy); margin-top: 2px; flex-shrink: 0; }
.azure-info-box strong { display: block; font-weight: 700; color: var(--navy); }
.azure-info-box span { font-size: 0.88rem; color: var(--text-muted); }

/* ── DASHBOARD NAV ───────────────────────────────────────────────────────── */
.dash-nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 62px;
}
.dash-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 800; font-size: 1.35rem;
  color: var(--navy); letter-spacing: .5px;
}
.dash-brand .nav-logo { height: 32px; }
.dash-nav-right {
  display: flex; align-items: center; gap: .75rem;
  font-size: 0.88rem;
}
.dash-welcome { color: var(--text); font-weight: 500; }
.dash-back, .dash-logout {
  color: var(--cyan); font-weight: 600;
  text-decoration: none;
  transition: color var(--transition);
}
.dash-back:hover, .dash-logout:hover { color: var(--navy); }
.dash-sep { color: var(--border); }

/* ── DASHBOARD MAIN ──────────────────────────────────────────────────────── */
.dash-main {
  max-width: 1200px; margin: 0 auto;
  padding: 2.5rem 2rem;
}
.dash-header { margin-bottom: 1.75rem; }
.dash-header h1 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 2rem;
  color: var(--text);
}
.dash-sub { color: var(--text-muted); font-size: 0.9rem; margin-top: .25rem; }

/* Setup banner */
.setup-banner {
  display: flex; align-items: center; gap: .75rem;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: .9rem 1.25rem;
  margin-bottom: 1.75rem;
  font-size: 0.92rem;
}
.setup-banner svg { color: #ea580c; flex-shrink: 0; }
.setup-banner span { flex: 1; color: var(--text); }
.btn-banner {
  background: var(--navy);
  color: var(--white); text-decoration: none;
  padding: .4rem 1rem; border-radius: 6px;
  font-size: 0.85rem; font-weight: 600;
  white-space: nowrap;
  transition: background var(--transition);
}
.btn-banner:hover { background: var(--navy-light); color: var(--white); }

/* ── DASH GRID ───────────────────────────────────────────────────────────── */
.dash-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
}
.dash-card {
  background: var(--white);
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  padding: 1.75rem 1.5rem;
  transition: box-shadow var(--transition), transform var(--transition);
}
.dash-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.dash-card.card-active { border-color: var(--navy-light); }
.dash-card.card-complete { border-color: var(--green); }

.card-icon {
  width: 44px; height: 44px;
  background: #e8edf8;
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 1rem; color: var(--navy);
}
.card-icon.accent-blue { background: #e0f4fc; color: var(--cyan); }
.card-icon.accent-gold { background: #fef9e7; color: var(--gold-dark); }
.card-icon svg { width: 20px; height: 20px; }

.dash-card h3 {
  font-weight: 700; font-size: 1rem;
  color: var(--navy); margin-bottom: .4rem; line-height: 1.3;
}
.dash-card p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: .9rem; }

.card-badge {
  display: inline-block;
  padding: .3rem .75rem;
  border-radius: 50px;
  font-size: 0.78rem; font-weight: 700;
  text-decoration: none;
}
.badge-complete { background: #d1fae5; color: #065f46; }
.badge-partial  { background: #fff7ed; color: #9a3412; }
.badge-active   { background: #e0f2fe; color: #075985; }
.badge-new      { background: var(--navy); color: var(--white); }

.card-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--navy-dark);
  padding: .4rem 1rem;
  border-radius: 6px;
  font-weight: 700; font-size: 0.85rem;
  text-decoration: none;
  margin-top: .5rem;
  transition: background var(--transition);
}
.card-btn:hover { background: var(--gold-dark); color: var(--navy-dark); }

.card-link {
  color: var(--navy); font-weight: 600; font-size: 0.88rem;
  text-decoration: none;
  transition: color var(--transition);
}
.card-link:hover { color: var(--cyan); }

/* ── WIZARD ──────────────────────────────────────────────────────────────── */
.wizard-tabs {
  display: flex; align-items: center;
  gap: 0; background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.5rem;
  margin-bottom: 1.5rem;
  justify-content: center;
}
.wizard-tab {
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
  flex: 1; max-width: 140px;
  color: var(--text-muted); font-size: 0.82rem; font-weight: 600;
  position: relative; cursor: default;
}
.wizard-tab::after {
  content: ''; position: absolute;
  top: 16px; left: calc(50% + 20px);
  right: calc(-50% + 20px);
  height: 2px; background: var(--border);
  z-index: 0;
}
.wizard-tab:last-child::after { display: none; }

.tab-circle {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--border);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem;
  z-index: 1; position: relative;
  transition: background var(--transition), color var(--transition);
}
.wizard-tab.active .tab-circle { background: var(--navy); color: var(--white); }
.wizard-tab.done .tab-circle   { background: var(--green); color: var(--white); }
.wizard-tab.active span        { color: var(--navy); }

.wizard-body {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 2rem;
}
.wizard-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 1.6rem;
  color: var(--text); margin-bottom: .5rem;
}
.wizard-sub { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* Drop zone */
.drop-zone {
  border: 2px dashed var(--cyan);
  border-radius: var(--radius);
  padding: 3rem 2rem;
  text-align: center;
  background: #f0faff;
  cursor: pointer;
  transition: background var(--transition);
}
.drop-zone.drag-over { background: #e0f4fc; }
.drop-zone svg { width: 48px; height: 48px; color: var(--cyan); margin-bottom: 1rem; }
.drop-zone p { color: var(--text-muted); margin: .25rem 0; }
.drop-sub { font-size: 0.85rem; }
.drop-filename { font-size: 0.88rem; color: var(--navy); font-weight: 600; margin-top: .5rem; }

.btn-choose {
  display: inline-block;
  background: var(--white);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: .4rem 1rem;
  border-radius: 6px;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; margin-top: .5rem;
}

.btn-template {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #6b7280; color: var(--white);
  padding: .5rem 1.25rem;
  border-radius: 8px;
  text-decoration: none;
  font-size: 0.88rem; font-weight: 600;
  transition: background var(--transition);
}
.btn-template:hover { background: #4b5563; color: var(--white); }
.btn-template svg { width: 15px; height: 15px; }

.upload-result { margin-top: 1rem; padding: .75rem 1rem; border-radius: 8px; background: #f9fafb; }
.upload-success { color: var(--green); font-weight: 600; }
.upload-error   { color: #dc2626; font-weight: 600; }

/* Role list */
.role-list { margin-bottom: 1rem; }
.role-row {
  display: flex; align-items: center; gap: 1rem;
  padding: .85rem 1rem;
  border: 1px solid var(--border);
  border-radius: 8px; margin-bottom: .5rem;
  background: var(--bg);
}
.role-title { font-weight: 600; min-width: 160px; color: var(--text); }
.role-assigned { flex: 1; display: flex; align-items: center; gap: .4rem; }
.role-check { color: var(--green); font-size: 1.1rem; }
.role-name  { color: var(--navy); font-weight: 600; }
.role-empty { color: var(--text-muted); font-size: 0.88rem; }

.btn-edit-role {
  background: var(--teal); color: var(--white);
  border: none; border-radius: 6px;
  padding: .3rem .85rem;
  font-size: 0.82rem; font-weight: 700;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-edit-role:hover { background: #0f766e; }

.btn-add-role {
  display: inline-flex; align-items: center; gap: .4rem;
  background: transparent;
  border: 1.5px dashed var(--border);
  color: var(--text-muted);
  padding: .5rem 1rem; border-radius: 8px;
  font-size: 0.88rem; font-weight: 600;
  cursor: pointer; margin-bottom: 1.5rem;
  transition: border-color var(--transition), color var(--transition);
}
.btn-add-role:hover { border-color: var(--navy); color: var(--navy); }
.btn-add-role svg { width: 15px; height: 15px; }

/* Wizard actions */
.wizard-actions {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 1.5rem; padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.btn-next {
  background: var(--navy); color: var(--white);
  border: none; border-radius: 8px;
  padding: .7rem 1.75rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 700; font-size: 0.95rem;
  cursor: pointer;
  transition: background var(--transition);
}
.btn-next:hover { background: var(--navy-light); }
.btn-back {
  background: #e5e7eb; color: var(--text);
  border: none; border-radius: 8px;
  padding: .7rem 1.25rem;
  font-family: 'Barlow', sans-serif;
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer;
}

/* Review */
.review-section { margin-bottom: 1.5rem; }
.review-section h4 {
  font-weight: 700; color: var(--navy);
  margin-bottom: .75rem; font-size: 1rem;
}
.review-row {
  display: flex; justify-content: space-between;
  padding: .5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.review-row span:first-child { color: var(--text-muted); }
.review-row span:last-child  { font-weight: 600; color: var(--navy); }

/* ── ADMIN SETTINGS ──────────────────────────────────────────────────────── */
.admin-dept-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
}
.admin-dept-card {
  background: var(--white);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}
.admin-dept-card h4 { font-weight: 700; color: var(--navy); margin-bottom: .4rem; }
.admin-dept-card p  { color: var(--text-muted); font-size: 0.88rem; margin-bottom: .9rem; }
.btn-dept {
  display: inline-block;
  background: var(--teal); color: var(--white);
  padding: .4rem 1rem; border-radius: 6px;
  font-size: 0.85rem; font-weight: 700;
  text-decoration: none;
  transition: background var(--transition);
}
.btn-dept:hover { background: #0f766e; color: var(--white); }

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  .nav-links a:not(.btn-signin) { display: none; }
  .dash-welcome { display: none; }
  .wizard-tabs { gap: .5rem; padding: 1rem; }
  .wizard-tab { font-size: 0.72rem; }
  .tab-circle { width: 26px; height: 26px; font-size: 0.75rem; }
  .wizard-tab::after { display: none; }
  .dash-main { padding: 1.5rem 1rem; }
}

/* Microsoft sign-in button */
.btn-ms-signin {
  display: flex; align-items: center; justify-content: center; gap: .6rem;
  width: 100%; padding: .62rem 1rem;
  background: var(--white); color: #3c4043;
  border: 1.5px solid var(--border);
  border-radius: 8px; text-decoration: none;
  font-family: 'Barlow', sans-serif;
  font-weight: 600; font-size: .9rem;
  margin-top: .6rem;
  transition: background var(--transition), border-color var(--transition);
}
.btn-ms-signin:hover { background: #f8faff; border-color: #5b5ea6; color: #3c4043; }
