/* ── SSN Theme Variables ────────────────────────────────────────────── */
:root {
  --ssn-blue:    #003366;
  --ssn-blue-dk: #002244;
  --ssn-accent:  #ffffff;
  --ssn-light:   #f0f4ff;
}

/* ── Base ─────────────────────────────────────────────────────────────── */
body {
  font-family: 'Inter', sans-serif;
  background: #f8f9fa;
  color: #212529;
}

/* ── Navbar ──────────────────────────────────────────────────────────── */
.ssn-navbar {
  background: var(--ssn-blue);
  box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.ssn-navbar .nav-link { color: rgba(255,255,255,.85); font-weight: 500; }
.ssn-navbar .nav-link:hover { color: #fff; }

/* ── Colors ──────────────────────────────────────────────────────────── */
.text-ssn { color: var(--ssn-blue) !important; }
.bg-ssn   { background: var(--ssn-blue) !important; }

/* ── Buttons ─────────────────────────────────────────────────────────── */
.btn-ssn {
  background: var(--ssn-blue);
  color: #fff;
  border: none;
}
.btn-ssn:hover, .btn-ssn:focus {
  background: var(--ssn-blue-dk);
  color: #fff;
}
.btn-ssn:disabled {
  background: #7a9abf;
  color: #fff;
}

/* ── Card Headers ─────────────────────────────────────────────────────── */
.ssn-card-header {
  background: var(--ssn-blue);
}

/* ── Footer ──────────────────────────────────────────────────────────── */
.ssn-footer {
  background: #f1f3f5;
  border-top: 1px solid #dee2e6;
}

/* ── Progress Bar ────────────────────────────────────────────────────── */
.progress-bar.bg-ssn { background: var(--ssn-blue) !important; }

/* ── Step Dots ───────────────────────────────────────────────────────── */
.step-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #dee2e6;
  border: 2px solid #dee2e6;
  transition: all .2s;
}
.step-dot.step-done   { background: #198754; border-color: #198754; }
.step-dot.step-active { background: var(--ssn-blue); border-color: var(--ssn-blue); box-shadow: 0 0 0 3px rgba(0,51,102,.25); }
.step-label { font-size: .65rem; color: #6c757d; }

/* ── Avatar circle ───────────────────────────────────────────────────── */
.avatar-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--ssn-light);
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── Form Tabs ───────────────────────────────────────────────────────── */
.step-tab {
  border: none;
  background: #e9ecef;
  color: #495057;
  font-size: .8rem;
  padding: .4rem .8rem;
  transition: all .15s;
}
.step-tab:hover { background: #d0d8e4; }
.step-tab.active {
  background: var(--ssn-blue);
  color: #fff;
  font-weight: 600;
}
.step-tab.completed { color: #198754; font-weight: 600; }
.step-tab.locked { opacity: .5; pointer-events: none; }

/* ── Upload Zone ─────────────────────────────────────────────────────── */
.upload-zone {
  border: 2px dashed #ced4da;
  border-radius: .5rem;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: #fafafa;
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--ssn-blue);
  background: var(--ssn-light);
}
.upload-zone .upload-preview-img {
  max-height: 100px;
  max-width: 160px;
  object-fit: contain;
  border-radius: .25rem;
}

/* ── Spinner Overlay ─────────────────────────────────────────────────── */
#spinnerOverlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ── OTP Input ───────────────────────────────────────────────────────── */
.letter-spacing-wide { letter-spacing: .5rem; font-size: 1.4rem; }

/* ── Section Heading ─────────────────────────────────────────────────── */
.form-section-heading {
  color: var(--ssn-blue);
  border-bottom: 2px solid var(--ssn-blue);
  padding-bottom: .35rem;
  margin-bottom: 1.1rem;
  font-weight: 600;
}

/* ── Accordion (Preview) ─────────────────────────────────────────────── */
.accordion-button:not(.collapsed) {
  color: var(--ssn-blue);
  background: var(--ssn-light);
}
.accordion-button:focus { box-shadow: 0 0 0 .2rem rgba(0,51,102,.25); }

/* ── Tables ──────────────────────────────────────────────────────────── */
.table th {
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #6c757d;
  white-space: nowrap;
}

/* ── Auth Tab Active Highlight ────────────────────────────────────────── */
#authTabs .nav-link.active {
  background: rgba(255,255,255,.2);
  border-bottom: 3px solid #fff;
}

/* ── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 576px) {
  .step-tab { font-size: .72rem; padding: .3rem .55rem; }
  .step-label { display: none; }
}

/* ── Print ───────────────────────────────────────────────────────────── */
@media print {
  .ssn-navbar, .ssn-footer, .btn, nav { display: none !important; }
  body { background: #fff; }
}
