:root {
    --sidebar-w: 288px;
    --header-h: 61px;
}
    /* Global styles */


    *, *::before, *::after {
    box-sizing: border-box;
}

html, body {
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
  margin: 0;
  padding: 0;
  scroll-behavior: smooth;
  overflow-x: hidden; /* Prevent horizontal scroll */
  max-width: 100vw; /* Ensure body doesn't exceed viewport width */
}

html {
  width: 100vw;
  position: relative;
}

body {
  position: relative;
  width: 100%;
}

/* Brand tokens (TrustCV) */
:root {
  --tcv-indigo: #4B0082; /* Deep Indigo */
  --tcv-cyan: #00FFFF;   /* Cyan */
  --tcv-muted: #6D6D6D;  /* Muted Neutral */
}

/* Custom background colors (for non-Tailwind classes) */
.bg-light-gray {
  background-color: #F9FAFB !important; /* gray-50 equivalent */
}

.bg-border {
  border-color: #E5E7EB; /* gray-200 equivalent */
}

/* Brand gradients and utilities */
.brand-gradient {
  background-image: linear-gradient(135deg, var(--tcv-indigo) 0%, #551089 30%, var(--tcv-cyan) 100%);
}
.brand-text-gradient {
  background: linear-gradient(90deg, var(--tcv-indigo), var(--tcv-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.text-muted-brand { color: var(--tcv-muted); }

/* Brand button (primary CTA) */
.btn-brand {
  background-image: linear-gradient(90deg, var(--tcv-indigo), var(--tcv-cyan));
  color: #fff;
}
.btn-brand:hover { filter: brightness(0.95); }

::-webkit-scrollbar {
  display: none;
}

/* Scrollbar hide utility */
.scrollbar-hide {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;
}

body {
  font-family: 'Inter', sans-serif !important;
  /* No padding needed - sidebar and header are fixed */
  padding-top: 0 !important;
  margin: 0 !important;
  /* Offset for fixed footer; updated via JS */
  /*padding-bottom: calc(var(--footer-h, 72px));*/
}

/* Preserve Font Awesome icons when using CDN */
.fa, .fas, .far, .fal, .fab {
  font-family: 'Font Awesome 6 Free', 'Font Awesome 6 Brands' !important;
}

/* Button utilities */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  border-radius: 0.5rem;
  transition: all 0.2s;
  padding: 0.625rem 1.25rem;
  line-height: 1.25rem;
  cursor: pointer;
}

/* Small button variant for compact CTAs */
.btn-sm {
  padding: 0.375rem 0.75rem;
  font-size: 0.75rem;
}

.btn-primary {
  background: linear-gradient(to right, #2563EB, #3B82F6);
  color: white;
}

.btn-primary:hover {
  background: linear-gradient(to right, #1D4ED8, #2563EB);
}

.btn-secondary {
  background-color: #F3F4F6;
  color: #374151;
}

.btn-secondary:hover {
  background-color: #E5E7EB;
}

.btn-tertiary {
  background-color: white;
  color: #6366F1;
  border: 1px solid #E5E7EB;
}

.btn-tertiary:hover {
  background-color: #F9FAFB;
  border-color: #6366F1;
}

/* Disabled state */
.btn:disabled,
.btn.is-disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

/* Outline primary button (LinkedIn-like Message) */
.btn-outline-primary {
  background-color: #FFFFFF;
  color: #6366F1; /* primary */
  border: 1px solid #6366F1;
}
.btn-outline-primary:hover {
  background-color: #EEF2FF; /* indigo-50 */
}

/* Font-size utility for 14px CTAs */
.btn-14 {
  font-size: 0.875rem; /* 14px */
}

/* Large button size for hero/CTA blocks */
.btn-lg {
  padding: 1rem 1.5rem; /* py-4 px-6 */
  font-size: 1.125rem; /* 18px */
  line-height: 1.75rem;
}

/* Gradient text utility for active nav labels */
.tcv-text-gradient {
  background: linear-gradient(to right, #2563EB, #3B82F6);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Fallback text token utilities (for CDN Tailwind parity) */
.text-muted { color: #7F7D83; }
.text-neutral-650 { color: #636363; }

/* Card typography utilities (align to Trust Score) */
.tcv-card-title { font-size: 1.25rem; line-height: 1.75rem; font-weight: 700; color: #111827; }
.tcv-card-subtitle { font-size: 0.875rem; line-height: 1.25rem; color: #4B5563; }
.tcv-card-kpi { font-size: 1.875rem; line-height: 2.25rem; font-weight: 700; color: #111827; }

/* Standard banner spacing/shape for top-of-page gradient blocks */
.tcv-banner {
  border-radius: 1rem; /* ~rounded-2xl */
  padding: 1.5rem;   /* p-6 */
  margin-bottom: 1.5rem; /* mb-6 baseline */
}
@media (min-width: 768px) {
  .tcv-banner {
    padding: 2rem; /* md:p-8 visual parity */
  }
}

/* Chips */
.chip { display:inline-flex; align-items:center; gap:0.375rem; padding:0.375rem 0.625rem; font-size:0.875rem; line-height:1rem; border-radius:9999px; border:1px solid #E5E7EB; background-color:#F9FAFB; color:#374151; }
.chip-primary { background-color:#EEF2FF; color:#4F46E5; border-color:#E5E7EB; }
.chip-muted { background-color:#F3F4F6; color:#6B7280; border-color:#E5E7EB; }
.chip-outline { background-color:#FFFFFF; color:#374151; border-color:#E5E7EB; }

/* Tabs */
.tcv-tabs { display:flex; gap:1.5rem; border-bottom:0; }
.tcv-tab { padding:0.75rem 0.25rem; border-bottom:2px solid transparent; font-size:0.875rem; font-weight:600; color:#6B7280; }
.tcv-tab:hover { color:#374151; border-color:#D1D5DB; }
.tcv-tab.active { border-color:#6366F1; color:#FFFFFF; background: linear-gradient(to right, #2563EB, #3B82F6); }

.btn-ghost {
  color: #6B7280;
}

.btn-ghost:hover {
  color: #1F2937;
}

/* Sidebar styles */
#sidebar {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  height: 100dvh !important;
  z-index: 50 !important;
}

@media (max-width: 1023px) {
  #sidebar {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    height: 100dvh !important;
    z-index: 50 !important;
  }
}

@media (max-width: 767px) {
  #sidebar[data-mobile-open="true"] {
    width: min(90vw, 288px) !important;
    max-width: 288px !important;
    pointer-events: auto;
  }

  #sidebar[data-mobile-open="false"] {
    width: 0 !important;
    max-width: 0 !important;
    pointer-events: none;
  }
}

/* Content area - adjust for fixed sidebar */
#content-area {
  margin-left: 0 !important;
  width: 100% !important;
  max-width: 100vw !important;
  transition: margin-left 0.3s, width 0.3s;
  padding-top: var(--header-h, 73px) !important;
  overflow-x: hidden !important;
  min-height: 100vh !important;
}

/* On tablet and above, offset for sidebar */
/* Exclude resume-builder as it has its own wrapper with margin */
@media (min-width: 768px) {
  #content-area:not(#resume-content-wrapper #content-area) {
    margin-left: var(--sidebar-w, 288px) !important;
    width: calc(100% - var(--sidebar-w, 288px)) !important;
  }
}

/* Header styles */
#header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  transition: left 0.3s, width 0.3s;
  z-index: 40;
}

/* On tablet and above, offset header for sidebar */
@media (min-width: 768px) {
  #header {
    left: var(--sidebar-w, 288px) !important;
    width: calc(100% - var(--sidebar-w, 288px)) !important;
  }
}

.header-container {
  width: 100%;
  /* Default: px-4 */
  padding-left: 1rem;
  padding-right: 1rem;
  /* py-3 */
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

/* Main content area - let it fill naturally */
main {
  width: 100%;
  max-width: 100vw;
  min-height: calc(100dvh - var(--header-h, 73px));
  overflow-x: hidden;
}

/* Mobile-specific fixes */
@media (max-width: 767px) {
  main {
    overflow-x: hidden !important;
    display: block !important; /* Override flex on mobile */
  }

  #content-area {
    min-width: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding-top: 73px !important; /* Fixed header height for mobile */
  }

  /* Ensure sidebar doesn't create flex layout issues */
  #sidebar {
    flex: none !important;
  }
}

/* sm:px-6 */
@media (min-width: 640px) {
  .header-container {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* md:px-10 */
@media (min-width: 768px) {
  .header-container {
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}

/* Override Tailwind utility for larger hero offset on desktop */
@media (min-width: 1024px) {
  .lg\:pt-48 { padding-top: 20rem !important; }
}

/* Optional: auth variant top/bottom like Angular's md:py-4 */
.header-auth {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
@media (min-width: 768px) {
  .header-auth {
    padding-top: 1rem;
    padding-bottom: 1rem;
  }
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-icon {
  background: linear-gradient(to right, #2563EB, #3B82F6);
  border-radius: 0.5rem;
  padding: 0.5rem;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-icon i {
  font-size: 1.125rem;
}

.brand-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1F2937;
}

.onboarding-header .back-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.onboarding-header .brand-name {
  font-size: 1.125rem;
  font-weight: 600;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-left: auto;
}

/* Dropdown menu */
.menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 14rem;
  background-color: white;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  padding: 0.25rem;
  z-index: 50;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.375rem;
  color: #374151;
  text-decoration: none;
  cursor: pointer;
}

.menu-item:hover {
  background-color: #F9FAFB;
}

.menu-item i {
  font-size: 0.875rem;
}

/* Stepper nav */
.sidebar-link {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem;
  border-radius: 0.5rem;
  text-decoration: none;
  color: #6B7280;
  transition: all 0.2s;
}

.sidebar-link:hover {
  background-color: #F9FAFB;
}

.sidebar-link.active { color: #6366F1; }

.step-bubble {
  width: 1.75rem;
  height: 1.75rem;
  background-color: #E5E7EB;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-weight: 600;
  font-size: 0.875rem;
}

.sidebar-link.active .step-bubble {
  background: linear-gradient(to right, #2563EB, #3B82F6);
  color: white;
}

.step-bubble.completed {
  background: linear-gradient(to right, #2563EB, #3B82F6);
  color: white;
}

.step-label {
  font-weight: 500;
}

/* Form field */
.form-field {
  margin-bottom: 1rem;
}

.field-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 500;
  color: #374151;
  margin-bottom: 0.25rem;
}

.control input,
.control select,
.control textarea {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.control input:focus,
.control select:focus,
.control textarea:focus {
  outline: none;
  border-color: #6366F1;
  ring: 2px;
  ring-color: #6366F1;
}

/* Generic input (used outside .control), matches design tokens */
.tcv-input {
  width: 100%;
  padding: 0.625rem 0.75rem; /* 10px 12px */
  border: 1px solid #E5E7EB; /* border */
  border-radius: 0.5rem; /* lg radius */
  background-color: #FFFFFF;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.tcv-input:focus {
  outline: none;
  border-color: #6366F1; /* primary */
  box-shadow: 0 0 0 3px rgba(99,102,241,0.20);
}

.text-help {
  font-size: 0.75rem;
  color: #6B7280;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.text-error {
  font-size: 0.75rem;
  color: #DC2626;
  margin-top: 0.25rem;
}

/* Tighter alignment for Skills rows */
.skills-list .form-field { margin-bottom: 0; }

/* Education Summary textarea: add extra top padding */
textarea[id^="edu-summary-"] {
  padding-top: 1rem; /* 16px */
}

/* Chips/tags styling (used in Final Review) */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem; /* 6px */
  padding: 0.375rem 0.625rem; /* 6px 10px */
  font-size: 0.875rem;
  line-height: 1rem;
  border-radius: 9999px;
  background-color: #EEF2FF; /* indigo-50 */
  color: #4F46E5; /* primary-dark */
  border: 1px solid #E5E7EB; /* border */
}

.chip-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.125rem 0.375rem; /* 2px 6px */
  font-size: 0.7rem;
  border-radius: 9999px;
  background: linear-gradient(to right, #2563EB, #3B82F6);
  color: #fff;
}

/* Container gap for chips (16px) */
.chip-container {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem; /* 16px between chips */
  margin-bottom: 1rem; /* 16px spacing before Edit CTA */
}

/* Onboarding layout */
.onboarding-layout {
  width: 100%;
  flex-direction: column;
  flex-direction: row; /* Force row layout */
}

.onboarding-content {
  background-color: #F9FAFB;
  min-height: calc(100vh - var(--header-h, 73px));
}

.onboarding-content__inner {
  flex: 1 1 auto;
  width: 100%;
  padding: 2.5rem 2.5rem calc(3rem + var(--footer-h, 72px)); /* Force desktop padding */
}

.onboarding-sidebar {
    border-bottom: 1px solid #E5E7EB;
    background-color: #FFFFFF;
    border-bottom: none;
    border-right: 1px solid #E5E7EB;
    position: sticky;
    top: 57px /*calc(var(--header-h, 73px))*/;
    max-height: calc(100vh - var(--header-h, 73px));
    overflow: hidden;
    display: none; /* Hidden on mobile */
    padding-top:0.3rem;
}
.onboarding-bottom-space {
    padding-bottom: 120px !important;
}

@media (min-width: 768px) {
    .onboarding-sidebar {
      position:fixed;
    display: flex; /* Show on desktop */
  }
}

.onboarding-stepper {
  padding-bottom: 0.25rem;
  overflow-y: auto;
  padding-right: 0.25rem;
}

.onboarding-step-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: block; /* Force desktop block layout */
}

.onboarding-step-item {
  flex: none;
}

.onboarding-step-item + .onboarding-step-item {
  margin-top: 0.25rem;
}

.onboarding-step-remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.onboarding-step-card {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem;
  border: none;
  background: none !important;
  border-radius: 0.5rem;
  height: auto;
  min-height: auto;
  box-shadow: none !important;
  width: 100%;
}

.onboarding-step-card:hover {
  border: none;
  background: none !important;
  box-shadow: none !important;
}

.onboarding-step-card.disabled {
  opacity: 0.6;
  pointer-events: none;
}

.onboarding-step-card.onboarding-step-card--active {
  background: none !important;
  border: none;
  box-shadow: none !important;
}

.onboarding-step-card.onboarding-step-card--completed {
  background: none !important;
  border: none;
}

.onboarding-step-item--action {
  display: block;
}

.onboarding-step-icon {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.875rem;
  color: #6B7280;
  background-color: #E5E7EB;
  flex-shrink: 0;
  box-shadow: none;
}

.onboarding-step-card--active .onboarding-step-icon {
  background: linear-gradient(to right, #2563EB, #3B82F6);
  color: #FFFFFF;
}

.onboarding-step-card--completed .onboarding-step-icon {
  background: linear-gradient(to right, #2563EB, #3B82F6);
  color: #FFFFFF;
}

.onboarding-step-card--action .onboarding-step-icon {
  background-color: #EEF2FF;
  color: #4F46E5;
}

.onboarding-step-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4B5563;
  line-height: 1.2;
  text-align: left;
}

.onboarding-step-card.disabled .onboarding-step-label {
  color: #9CA3AF;
}

.onboarding-progress {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.onboarding-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  font-weight: 600;
  color: #4B5563;
}

.onboarding-progress-track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background-color: #E5E7EB;
  overflow: hidden;
}

.onboarding-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366F1 0%, #8B5CF6 100%);
  border-radius: inherit;
  transition: width 0.3s ease;
}

.onboarding-progress-info {
  font-size: 0.8rem;
  line-height: 1.4;
  color: #4B5563;
}

.onboarding-progress-note {
  background-color: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.18);
  color: #4F46E5;
  border-radius: 0.75rem;
  padding: 0.75rem;
}

.onboarding-desktop-add__btn {
  border-radius: 0.75rem;
  padding: 0.65rem 1rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.onboarding-desktop-add__btn i {
  font-size: 0.9rem;
}

.onboarding-step-item--action {
  display: none; /* Hide the "Add Section" card in the stepper list */
}

.onboarding-step-card.onboarding-step-card--action {
  display: none; /* Hide the action card itself */
}
  .onboarding-step-card--active .onboarding-step-label {
    color: #6366F1;
    font-weight: 600;
  }

  .onboarding-step-card--action {
    display: none;
  }

  .onboarding-sidebar .sidebar-link {
    background: none;
  padding: 0.75rem 1.2rem; /* Consistent padding for all states */
    border-radius: 0.75rem;
    box-shadow: none;
    border: 1px solid transparent;
    position: relative;
    transition: background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  }

  .onboarding-sidebar .sidebar-link:hover {
    background: linear-gradient(90deg, rgba(99,102,241,0.08) 0%, rgba(99,102,241,0.03) 100%);
    border-color: rgba(99,102,241,0.1);
  }

  .onboarding-sidebar .sidebar-link.active {
    background: linear-gradient(90deg, rgba(99,102,241,0.18) 0%, rgba(99,102,241,0.07) 100%);
    border-color: rgba(99,102,241,0.22);
    color: #312E81;
    font-weight: 600;
    box-shadow: 0 8px 18px -14px rgba(99,102,241,0.6);
  }

  .onboarding-sidebar .sidebar-link.active .onboarding-step-label {
    color: #111827;
  }
}

/* Upload dropzone */
.dropzone {
  border: 2px dashed #D1D5DB;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.dropzone:hover {
  border-color: #6366F1;
  background-color: #F9FAFB;
}

.icon-wrap {
  width: 3rem;
  height: 3rem;
  background-color: #F3F4F6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.dz-body {
  color: #6B7280;
}

/* Form card */
.form-card {
  background-color: white;
  padding: 1.5rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.5rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.form-grid {
  display: grid;
  /* Match Angular columns; reduce gap by 8px (24px -> 16px) */
  grid-template-columns: 1fr;
  gap: 1rem; /* 16px */
}
@media (min-width: 768px) {
  .form-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Action footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 1rem 1.5rem;
  border-top: 1px solid #E5E7EB;
  background: #ffffff;
}

/* On tablet and above, offset for sidebar */
@media (min-width: 768px) {
  .footer {
    left: var(--sidebar-w, 0px);
    padding: 1.5rem 2.5rem;
  }

/* ============================================
   ONBOARDING RESPONSIVE STYLES
   ============================================ */

/* Mobile Progress Stepper - Show only on mobile */
.mobile-progress-stepper-wrapper {
  display: block;
}

@media (min-width: 768px) {
  .mobile-progress-stepper-wrapper {
    display: none;
  }
}

#progress-stepper {
  background: white;
  border-bottom: 1px solid #E5E7EB;
  padding: 1rem 0;
  position: sticky;
  top: 65px;
  z-index: 20;
}

/* Main Content Layout */
.onboarding-main-content {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 100vh;
  background: #F9FAFB;
}

@media (min-width: 768px) {
  .onboarding-main-content {
    flex-direction: row;
  }
}

/* Content Area */
.onboarding-content-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  margin-left: 0;
}

@media (min-width: 768px) {
  .onboarding-content-area {
    margin-left: var(--onboarding-sidebar-w, 320px);
  }
}

/* Content Wrapper */
.onboarding-content-wrapper {
  flex: 1;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 1rem;
  padding-bottom: 6rem;
}

@media (min-width: 768px) {
  .onboarding-content-wrapper {
    max-width: 1536px;
    padding: 2rem 2.5rem;
  }
}

/* Welcome Banner */
.onboarding-welcome-banner {
  background: linear-gradient(90deg, #2563EB 0%, #3B82F6 50%, #06B6D4 100%);
  padding: 1.5rem;
  border-radius: 0.75rem;
  color: white;
  margin-bottom: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 6px -1px rgba(37, 99, 235, 0.1);
}

@media (min-width: 768px) {
  .onboarding-welcome-banner {
    padding: 2rem;
    margin-bottom: 2rem;
    text-align: left;
  }
}

.onboarding-banner-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .onboarding-banner-title {
    font-size: 1.875rem;
  }
}

.onboarding-banner-text {
  color: #DBEAFE;
  max-width: 100%;
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .onboarding-banner-text {
    max-width: 42rem;
    font-size: 1rem;
  }
}

/* Content Grid */
.onboarding-content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 768px) {
  .onboarding-content-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Main Column */
.onboarding-main-column {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .onboarding-main-column {
    grid-column: span 2;
    gap: 2rem;
  }
}

/* Card Styles */
.onboarding-card {
  background: white;
  padding: 1.25rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
  .onboarding-card {
    padding: 1.5rem;
    border-radius: 0.5rem;
  }
}

/* Side Card */
.onboarding-side-card {
  background: white;
  padding: 1.5rem;
  border: 1px solid #E5E7EB;
  border-radius: 0.75rem;
  box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: auto;
}

@media (min-width: 768px) {
  .onboarding-side-card {
    min-height: 360px;
    padding: 1.5rem;
  }
}

/* Card Header */
.onboarding-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

/* Card Title */
.onboarding-card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 0.5rem;
}

@media (min-width: 768px) {
  .onboarding-card-title {
    font-size: 1.25rem;
  }
}

/* Card Text */
.onboarding-card-text {
  color: #6B7280;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .onboarding-card-text {
    font-size: 1rem;
  }
}

/* Reset Button */
.onboarding-reset-btn {
  font-size: 0.875rem;
  color: #DC2626;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 0.375rem;
  cursor: pointer;
  background: none;
  border: none;
  transition: color 0.2s;
}

.onboarding-reset-btn:hover {
  color: #B91C1C;
}

.reset-btn-text {
  display: none;
}

.reset-btn-text-mobile {
  display: inline;
}

@media (min-width: 768px) {
  .reset-btn-text {
    display: inline;
  }
  .reset-btn-text-mobile {
    display: none;
  }
}

/* Instructions List */
.onboarding-instructions-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.onboarding-instruction-item {
  display: flex;
  align-items: start;
  gap: 0.75rem;
  color: #6B7280;
  font-size: 0.875rem;
}

@media (min-width: 768px) {
  .onboarding-instruction-item {
    font-size: 1rem;
  }
}

.onboarding-instruction-item i {
  margin-top: 0.25rem;
  flex-shrink: 0;
}

/* Illustration Wrapper */
.onboarding-illustration-wrapper {
  width: 100%;
  height: 10rem;
  display: flex;
  align-items: center;
  justify-center;
  margin-bottom: 1rem;
}

@media (min-width: 768px) {
  .onboarding-illustration-wrapper {
    height: 14rem;
    margin-bottom: 1.5rem;
  }
}

.onboarding-illustration {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  max-width: 72rem;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  column-gap: 2rem;
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: start;
}

.footer-center {
  display: flex;
  align-items: center;
  justify-self: center;
}

.footer-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-self: end;
  flex-wrap: nowrap;
}

.footer .btn {
  font-size: 0.875rem;
}

/* Utility classes */
/* Do not override Tailwind's .hidden so responsive variants (e.g., sm:block) work correctly */


/* Side overlay animation */
@keyframes slide-in-right {
  from {
    transform: translateX(100%);
  }
  to {
    transform: translateX(0);
  }
}

.animate-slide-in-right {
  animation: slide-in-right 0.3s ease-out;
}
/* Consistent select styling for non-form-field contexts */
.dropzone {
  border: 2px dashed #D1D5DB;
  border-radius: 0.5rem;
  padding: 2rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.tcv-select {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid #D1D5DB;
  border-radius: 0.375rem;
  box-shadow: 0 1px 2px 0 rgba(0,0,0,0.05);
  background-color: #fff;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: none; /* rely on native caret */
}

.tcv-select:focus {
  outline: none;
  border-color: #6366F1;
}

/* Increase spacing between side headings and content */
.panel-heading + .panel-body { margin-top: 0.5rem; /* 8px */ }

/* Landing page specific styles */
.hover-lift {
  transition: transform 0.3s ease;
}

.hover-lift:hover {
  transform: translateY(-8px);
}

/* Gradient text for landing page */
.bg-clip-text {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Landing page animations */
@keyframes pulse-shadow {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(37, 99, 235, 0.7);
  }
  50% {
    box-shadow: 0 0 0 20px rgba(37, 99, 235, 0);
  }
}

.pulse-cyan {
  animation: pulse-shadow 2s ease-in-out infinite;
}

/* Animated mesh gradient background for hero section */
.animated-gradient-bg {
  position: relative;
  overflow: hidden;
}

/* Gradient blob 1 - Large center blob with cyan accent */
.animated-gradient-bg::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(59, 130, 246, 0.35) 0%, rgba(6, 182, 212, 0.2) 30%, rgba(96, 165, 250, 0.15) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(60px);
  transform: translate(-50%, -50%);
  animation: blob1 4s ease-in-out infinite;
  z-index: 0;
}

/* Gradient blob 2 - Right side blob with cyan */
.animated-gradient-bg::after {
  content: '';
  position: absolute;
  top: 30%;
  right: 10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(8, 145, 178, 0.3) 0%, rgba(37, 99, 235, 0.2) 30%, rgba(59, 130, 246, 0.12) 50%, transparent 70%);
  border-radius: 50%;
  filter: blur(50px);
  animation: blob2 3s ease-in-out infinite;
  z-index: 0;
}

.animated-gradient-bg > * {
  position: relative;
  z-index: 1;
}

@keyframes blob1 {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  33% {
    transform: translate(-40%, -60%) scale(1.1);
    opacity: 0.8;
  }
  66% {
    transform: translate(-60%, -40%) scale(0.95);
    opacity: 0.9;
  }
}

@keyframes blob2 {
  0%, 100% {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  33% {
    transform: translate(-20px, 30px) scale(1.15);
    opacity: 0.7;
  }
  66% {
    transform: translate(20px, -20px) scale(0.9);
    opacity: 0.9;
  }
}

/* Smooth hover scale for landing page elements */
.group:hover .group-hover\:scale-110 {
  transform: scale(1.1);
}

/* Container utility for landing page */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 640px;
  }
}

@media (min-width: 768px) {
  .container {
    max-width: 768px;
  }
}

@media (min-width: 1024px) {
  .container {
    max-width: 1024px;
  }
}

@media (min-width: 1280px) {
  .container {
    max-width: 1280px;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}

/* =====================================================
   ACCESSIBILITY: Focus States for Keyboard Navigation
   ===================================================== */

/* Micro-onboarding card focus states */
.goal-card:focus-visible,
.user-type-card:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

/* Button focus states */
.btn:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

.btn-primary:focus-visible {
  outline-color: #2563EB;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.2);
}

.btn-secondary:focus-visible {
  outline-color: #6B7280;
  box-shadow: 0 0 0 4px rgba(107, 114, 128, 0.1);
}

.btn-tertiary:focus-visible {
  outline-color: #6366F1;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.1);
}

/* Landing page tab focus states */
.tcv-tab:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
}

/* Link focus states */
a:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px;
  border-radius: 0.25rem;
}

/* ============================================
   2025 Modern Dashboard Animations
   ============================================ */

/* Bounce animation for checkmarks */
@keyframes bounce-once {
  0%, 100% {
    transform: translateY(0);
  }
  25% {
    transform: translateY(-8px);
  }
  50% {
    transform: translateY(0);
  }
  75% {
    transform: translateY(-4px);
  }
}

.animate-bounce-once {
  animation: bounce-once 0.6s ease-in-out;
}

/* Pulse animation for new items */
@keyframes pulse-soft {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

.animate-pulse-soft {
  animation: pulse-soft 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Scale hover effect */
.hover-scale {
  transition: transform 0.2s ease-in-out;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* Counter animation */
@keyframes count-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-count-up {
  animation: count-up 0.5s ease-out;
}

/* Shimmer loading effect */
@keyframes shimmer {
  0% {
    background-position: -1000px 0;
  }
  100% {
    background-position: 1000px 0;
  }
}

.animate-shimmer {
  background: linear-gradient(90deg, #f0f0f0 0%, #f8f8f8 50%, #f0f0f0 100%);
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
}

/* Slide in from bottom */
@keyframes slide-in-bottom {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-slide-in {
  animation: slide-in-bottom 0.4s ease-out;
}

/* Fade in */
@keyframes fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.animate-fade-in {
  animation: fade-in 0.3s ease-in;
}

/* Progress bar fill animation */
@keyframes progress-fill {
  from {
    width: 0%;
  }
}

.animate-progress {
  animation: progress-fill 1s ease-out;
}

/* Glow effect for interactive elements */
.glow-on-hover {
  transition: box-shadow 0.3s ease;
}

.glow-on-hover:hover {
  box-shadow: 0 0 20px rgba(59, 130, 246, 0.3);
}

/* Card lift on hover */
.card-hover {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px -10px rgba(0, 0, 0, 0.15);
}

/* Smooth gradient animation */
@keyframes gradient-shift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.animate-gradient {
  background-size: 200% 200%;
  animation: gradient-shift 3s ease infinite;
}

/* Micro-interaction: Button press */
.btn-press {
  transition: transform 0.1s ease;
}

.btn-press:active {
  transform: scale(0.95);
}


.hidden {
    display: none;
}

.tab.active {
    border-bottom: 2px solid blue;
    font-weight: bold;
}

.tab-panel.hidden {
    display: none;
}
.text-red-600 {
    --tw-text-opacity: 1;
    color: rgb(220 38 38 / var(--tw-text-opacity, 1));
}

.h-\[73px\] {
    height: 73px;
}
/* Chat bubble styling compatible with your HTML */

.chat-wrapper {
  
    height: 640px;
    background: #fff;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.bubble {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 14px;
    max-width: 75%;
    display: inline-block;
}

    .bubble.user {
        background: #e5f0ff;
        align-self: flex-end;
    }

    .bubble.bot {
        background: #f1f1f1;
        align-self: flex-start;
    }

#chatBody {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 8px;
    resize: none;
}

.resume {
    max-width: 816px;
    margin: 0 auto;
    padding: 48px;
    background: #fff;
    box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);
}

.resume {
    font-family: Inter, Arial, sans-serif;
    color: #111827;
    line-height: 1.5;
}

    .resume h1 {
        font-size: 24px;
        margin: 0 0 4px;
        font-weight: 700;
        color: #111827;
        line-height: 1.2;
    }

    .resume h2 {
        font-size: 18px;
        margin: 20px 0 12px;
        font-weight: 700;
        color: #111827;
        border-bottom: 2px solid #E5E7EB;
        padding-bottom: 6px;
    }

    .resume h3 {
        font-size: 15px;
        margin: 0 0 4px;
        font-weight: 600;
        color: #111827;
    }

    .resume p, .resume li, .resume span {
        font-size: 14px;
        line-height: 1.6;
    }

    .resume .muted {
        color: #6B7280;
    }

    .resume .section {
        margin-bottom: 28px;
    }

    .resume .chip {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 6px 12px;
        font-size: 13px;
        line-height: 1rem;
        border-radius: 9999px;
        background: #EEF2FF;
        color: #4F46E5;
        border: 1px solid #E0E7FF;
        margin: 3px 6px 3px 0;
    }

    .resume .row {
        display: flex;
        gap: 16px;
    }

    .resume .col {
        flex: 1;
    }

    .resume .small {
        font-size: 12px;
        line-height: 1.5;
    }

    .resume .header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
        margin-bottom: 12px;
    }

    .resume .qr {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100px;
        height: 100px;
        border: 1px solid #E5E7EB;
        border-radius: 8px;
        background: #F9FAFB;
    }

        .resume .qr .icon {
            color: #111827;
            font-size: 28px;
        }

    .resume .name-row {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        margin-bottom: 8px;
    }

    .resume .verified-badge {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        padding: 3px 10px;
        border-radius: 9999px;
        border: 1px solid #E0E7FF;
        background: #EEF2FF;
        color: #1F2937;
        font-weight: 600;
        font-size: 12px;
        line-height: 1;
    }

    .resume .verified-badge span {
        font-size: 12px;
        line-height: 1;
    }

    .resume .verified-badge i {
        color: #3B82F6;
        font-size: 14px;
    }

    .chevron {
        transition: transform 0.25s ease-in-out;
    }

    .chevron.rotate {
        transform: rotate(180deg);
    }
