/* ===================================================================
   RESUME ANALYSER & RECRUITMENT STUDIO
   Human-Crafted Professional SaaS Design System
   Infused with Eye-Soothing, Anti-Glare Light Blue, Pink & Mint Colours
   Designed to eliminate white-screen eye fatigue & visual irritation
   =================================================================== */

/* ─── 1. DESIGN TOKENS & THEMING ────────────────────────────────── */
:root {
  /* Surface & Background (Soothing Anti-Glare System) */
  --bg:           #eaf1f7; /* Anti-glare soft sky-sage canvas (lowered white) */
  --bg-subtle:    #dde8f2;
  --bg-card:      #f0f6fc; /* Luminous pastel surface (no stark white) */
  --bg-card-hover:#e4eff9;
  --surface:      rgba(235, 244, 252, 0.96);
  --surface-2:    rgba(242, 248, 253, 0.96);

  /* Borders & Dividers */
  --border:       #c5dcee;
  --border-subtle:#d7e7f4;
  --border-hover: #99c3e6;
  --border-active:#62a2dc;

  /* Typography (Clear high-contrast dark slate for zero squinting) */
  --text:         #0f172a;
  --text-2:       #334155;
  --text-3:       #64748b;
  --text-muted:   #64748b;

  /* Brand Accents */
  --primary:      #0284c7; /* Serene Ocean / Sky Blue */
  --primary-hover:#0369a1;
  --primary-subtle: #dcedfa;
  --primary-border: #9ecbf0;

  /* Status Tokens */
  --green:        #15803d;
  --green-bg:     var(--pastel-mint);
  --green-border: var(--pastel-mint-border);

  --red:          #be123c;
  --red-bg:       var(--pastel-rose);
  --red-border:   var(--pastel-rose-border);

  --yellow:       #b45309;
  --yellow-bg:    var(--pastel-amber);
  --yellow-border:var(--pastel-amber-border);

  /* ─── Eye-Friendly Pastels: Light Blue, Pink, Mint Green ─── */
  --pastel-sky:             #dcedfa;
  --pastel-sky-soft:        #cce5f8;
  --pastel-sky-border:      #92c6f1;
  --pastel-sky-text:        #0369a1;
  --pastel-sky-accent:      #0284c7;

  --pastel-rose:            #fce1ed;
  --pastel-rose-soft:       #f9cadf;
  --pastel-rose-border:     #f69ebd;
  --pastel-rose-text:       #9f1239;
  --pastel-rose-accent:     #be185d;

  --pastel-mint:            #d6f3e0;
  --pastel-mint-soft:       #bfeecd;
  --pastel-mint-border:     #82dfa3;
  --pastel-mint-text:       #166534;
  --pastel-mint-accent:     #15803d;

  --pastel-lavender:        #e7edfc;
  --pastel-lavender-soft:   #d8e1fa;
  --pastel-lavender-border: #acc2f8;
  --pastel-lavender-text:   #5b21b6;
  --pastel-lavender-accent: #7c3aed;

  --pastel-amber:           #fcf0c9;
  --pastel-amber-soft:      #fae4a4;
  --pastel-amber-border:    #f2cd66;
  --pastel-amber-text:      #854d0e;
  --pastel-amber-accent:    #a16207;

  --pastel-indigo:          #e1ebf9;
  --pastel-indigo-soft:     #ccddf6;
  --pastel-indigo-border:   #9fc0f1;
  --pastel-indigo-text:     #3730a3;
  --pastel-indigo-accent:   #4338ca;

  --pastel-peach:           #fce7d4;
  --pastel-peach-soft:      #f8d4b6;
  --pastel-peach-border:    #f3b281;
  --pastel-peach-text:      #9a3412;
  --pastel-peach-accent:    #c2410c;

  /* Layout & Geometry */
  --radius-sm:    7px;
  --radius:       11px;
  --radius-lg:    15px;
  --radius-xl:    20px;

  /* Soft Eye-Pleasing Elevation */
  --shadow-sm:    0 1px 3px rgba(15, 23, 42, 0.04);
  --shadow:       0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-lg:    0 18px 36px -6px rgba(15, 23, 42, 0.08);

  --font:         -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Inter", Helvetica, Arial, sans-serif;
  --font-mono:    ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

/* ─── 2. RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 14.5px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Anti-Glare Ambient Canvas Wash (Gentle Light Blue, Blush Pink & Mint Green) */
body {
  font-family: var(--font);
  background-color: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.55;
  background-image:
    radial-gradient(at 5% 5%, rgba(186, 230, 253, 0.85) 0px, transparent 55%),    /* Luminous Sky Blue */
    radial-gradient(at 95% 5%, rgba(254, 205, 226, 0.82) 0px, transparent 55%),    /* Vibrant Soft Pink */
    radial-gradient(at 50% 95%, rgba(187, 247, 208, 0.82) 0px, transparent 60%),   /* Fresh Mint Green */
    radial-gradient(at 15% 85%, rgba(254, 240, 185, 0.55) 0px, transparent 50%);   /* Warm Sunny Honey */;  /* Subtle Warm Cream */
  background-attachment: fixed;
}

#particles {
  display: none !important;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* ─── 3. TOP NAVIGATION HEADER ──────────────────────────────────── */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 2rem;
  background: rgba(235, 244, 252, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1.5px solid var(--border);
  gap: 1.5rem;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: none;
  filter: drop-shadow(0 3px 8px rgba(2, 132, 199, 0.32));
  transition: transform 0.2s ease, filter 0.2s ease;
}
.logo-icon:hover {
  transform: scale(1.05);
  filter: drop-shadow(0 4px 12px rgba(2, 132, 199, 0.45));
}
.logo-icon.staff-logo {
  background: transparent;
  box-shadow: none;
  filter: drop-shadow(0 3px 8px rgba(2, 132, 199, 0.32));
}
.logo-icon img,
.logo-icon svg {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.brand-name {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.brand-name .portal-tag {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  background: var(--pastel-mint);
  color: var(--pastel-mint-text);
  border: 1px solid var(--pastel-mint-border);
  border-radius: 12px;
}

.brand-tag {
  font-size: 0.76rem;
  color: var(--text-3);
  font-weight: 500;
  display: block;
  margin-top: -1px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

/* Platform Segmented Navigation Switcher */
.portal-nav-switcher {
  display: flex;
  align-items: center;
  background: #eef4f9;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 3px;
  gap: 3px;
}

.portal-nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  border-radius: 5px;
  transition: all 0.15s ease;
  cursor: pointer;
  white-space: nowrap;
}

.portal-nav-btn:hover {
  color: var(--primary);
}

.portal-nav-btn.active {
  background: #ffffff;
  color: var(--pastel-sky-text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--pastel-sky-border);
}

.portal-nav-btn.staff-active {
  color: var(--pastel-mint-text);
}

/* ─── 4. MAIN LAYOUT GRID ───────────────────────────────────────── */
.main-grid {
  display: grid;
  grid-template-columns: 360px 1fr 340px;
  min-height: calc(100vh - 58px);
}

@media (max-width: 1280px) {
  .main-grid {
    grid-template-columns: 340px 1fr;
  }
  .chat-side-panel {
    display: none !important;
  }
}

@media (max-width: 900px) {
  .main-grid {
    grid-template-columns: 1fr;
  }
}

/* Panels with Ergonomic Tinting */
.panel {
  padding: 1.5rem;
  overflow-y: auto;
  max-height: calc(100vh - 58px);
}

/* Left Panel: Calming Light Blue Tint */
.panel-left {
  background: rgba(228, 242, 252, 0.94);
  border-right: 1.5px solid #b3d7f0;
}

.panel-center {
  padding: 2rem 2.25rem;
  background: transparent;
}

/* Right Panel: Comforting Soft Pink Tint */
.panel-right {
  border-left: 1.5px solid #f5bed4;
  border-right: none;
  background: rgba(253, 235, 243, 0.94);
}

.panel-title {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
}

/* ─── 5. LEFT PANEL CONTROLS (TABS & DROPZONE) ─────────────────── */
.tab-row {
  display: flex;
  background: #e2edf7;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.tab {
  padding: 0.3rem 0.7rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tab:hover {
  color: var(--primary);
}

.tab.active {
  background: #ffffff;
  color: var(--pastel-sky-text);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--pastel-sky-border);
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

/* Dropzone (Restful Light Blue) */
.dropzone {
  border: 2px dashed #7fc1ed;
  border-radius: var(--radius);
  background: #dcf0fb;
  padding: 2.25rem 1.25rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: #cfe8f9;
  box-shadow: 0 4px 16px rgba(2, 132, 199, 0.12);
}

.dropzone-icon {
  width: 46px;
  height: 46px;
  margin: 0 auto 0.85rem auto;
  border-radius: 12px;
  background: #ffffff;
  border: 1.5px solid var(--pastel-sky-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.08);
}
.dropzone-icon svg {
  width: 24px;
  height: 24px;
}

.dropzone-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.dropzone-sub {
  font-size: 0.76rem;
  color: var(--text-3);
  margin-bottom: 1.1rem;
}

.btn-upload {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.1rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.25);
  transition: background 0.15s ease, transform 0.1s ease;
}

.btn-upload:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.file-info {
  margin-top: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #d4ecf9; border: 1.5px solid #91c7ee;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--pastel-sky-text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Paste Textarea */
.textarea-wrapper {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.resume-textarea {
  width: 100%;
  height: 180px;
  background: transparent;
  border: none;
  outline: none;
  resize: vertical;
  color: var(--text);
  font-size: 0.82rem;
  line-height: 1.55;
}

.textarea-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-subtle);
}

.char-count {
  font-size: 0.72rem;
  color: var(--text-3);
}

.btn-ghost {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
}
.btn-ghost:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.role-row {
  margin-top: 1.1rem;
}

.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.35rem;
}

.optional {
  color: var(--text-3);
  font-weight: 400;
}

.input {
  width: 100%;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.8rem;
  color: var(--text);
  font-size: 0.84rem;
  transition: all 0.15s ease;
  outline: none;
}

.input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--pastel-sky-border);
}

.jd-textarea {
  resize: vertical;
  min-height: 70px;
}

/* Analyse Button */
.btn-analyse {
  margin-top: 1.4rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.28);
  transition: all 0.15s ease;
}

.btn-analyse:hover:not(:disabled) {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

.btn-analyse:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ─── Shining Watermark below Analyse Button ─── */
.analyse-watermark-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 0.85rem;
  padding: 0.15rem 0;
  user-select: none;
  pointer-events: none;
}

.analyse-watermark-shine {
  font-family: 'Space Grotesk', 'Outfit', -apple-system, BlinkMacSystemFont, 'Inter', sans-serif;
  font-size: 0.94rem;
  font-weight: 800;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  padding-left: 0.38em; /* balances letter-spacing visually */

  /* Luminous multi-hue shimmering gradient */
  background: linear-gradient(
    120deg,
    rgba(2, 132, 199, 0.5) 0%,
    rgba(14, 165, 233, 0.85) 20%,
    #ffffff 45%,
    #e0f2fe 52%,
    #f472b6 60%,
    rgba(14, 165, 233, 0.85) 78%,
    rgba(2, 132, 199, 0.5) 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: wamenderShimmer 3.2s cubic-bezier(0.4, 0, 0.2, 1) infinite;

  /* Ambient light sheen */
  filter: drop-shadow(0 0 9px rgba(14, 165, 233, 0.45));
  opacity: 0.95;
  transition: opacity 0.25s ease;
}

@keyframes wamenderShimmer {
  0% {
    background-position: 220% 0;
  }
  100% {
    background-position: -40% 0;
  }
}

/* Center Bottom Watermark in Staff Portal */
.staff-bottom-watermark-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 2.2rem auto 1.5rem auto;
  padding: 0.5rem 0;
  user-select: none;
  pointer-events: none;
}

/* ─── 6. CENTER RESULTS DASHBOARD (Eye-Care Light Blue, Pink & Green Cards) ─── */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 480px;
  text-align: center;
  padding: 2rem;
}

.empty-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  background: var(--pastel-sky);
  border: 1.5px solid var(--pastel-sky-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.08);
}

.empty-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.empty-sub {
  font-size: 0.85rem;
  color: var(--text-3);
  max-width: 380px;
}

/* Score Section Banner (Soothing Light Blue to Mint Gradient) */
.score-section {
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 2rem;
  background: linear-gradient(135deg, #dcedfa 0%, #dbf5e7 100%);
  border: 1.5px solid #a8daf5;
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 20px -2px rgba(2, 132, 199, 0.06);
  margin-bottom: 1.5rem;
}

.score-ring-wrap {
  position: relative;
  width: 110px;
  height: 110px;
  flex-shrink: 0;
}

.score-ring {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}

.ring-bg {
  fill: none;
  stroke: #d7e8f5;
  stroke-width: 8;
}

.ring-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 8;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.score-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.score-num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--text);
}

.score-label {
  font-size: 0.72rem;
  color: var(--text-3);
  font-weight: 600;
  margin-top: 2px;
}

.score-meta {
  flex: 1;
}

.score-grade-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin-bottom: 0.6rem;
}

.score-grade {
  font-size: 0.95rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background: var(--pastel-sky);
  color: var(--pastel-sky-text);
  border: 1px solid var(--pastel-sky-border);
}

.verdict-pill {
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.65rem;
  border-radius: 20px;
  background: var(--pastel-mint);
  border: 1px solid var(--pastel-mint-border);
  color: var(--pastel-mint-text);
}

.btn-copy-json {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  font-size: 0.76rem;
  font-weight: 600;
  background: #ffffff;
  border: 1.5px solid var(--pastel-sky-border);
  border-radius: var(--radius-sm);
  color: var(--pastel-sky-text);
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-copy-json:hover {
  background: var(--pastel-sky);
}

.btn-open-editor {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.4rem 0.85rem;
  background: var(--primary);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.2);
  transition: all 0.15s ease;
}
.btn-open-editor:hover {
  background: var(--primary-hover);
}

.score-summary {
  font-size: 0.86rem;
  color: var(--text-2);
  line-height: 1.55;
}

/* AI Resume Editor Action Banner (Tri-Pastel Wash: Blue -> Pink -> Green) */
.ai-editor-cta-banner {
  margin-bottom: 1.5rem;
  padding: 1.15rem 1.4rem;
  background: linear-gradient(135deg, #dcf0fc 0%, #fce2ed 50%, #d8f3e3 100%);
  border: 1.5px solid #b3daf5;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.05);
}

.cta-banner-content {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.cta-banner-icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #ffffff;
  border: 1.5px solid #bde0f7;
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.1);
}

.cta-banner-text h4 {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 2px;
}

.cta-banner-text p {
  font-size: 0.78rem;
  color: var(--text-2);
  line-height: 1.45;
}

.btn-cta-launch-editor {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.15rem;
  background: var(--primary);
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.25);
  transition: all 0.15s ease;
}
.btn-cta-launch-editor:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

/* ─── Cards System: Soft Tinted Anti-Glare Surfaces ─── */
.card {
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
  margin-bottom: 1.4rem;
  box-shadow: var(--shadow-sm);
}

/* Specific Eye-Care Tinting per Card Type */
#evalDimensionsCard {
  background: #e9f4fc;
  border: 1.5px solid #b5ddf7;
}

#sectionScoresCard {
  background: #fde6f0;
  border: 1.5px solid #f6b4ce;
}

#diagnosticAuditCard {
  background: #e0f6e9;
  border: 1.5px solid #99e1b5;
}

#skillsInventoryCard {
  background: #ebf3fe;
  border: 1.5px solid #bad9f9;
}

#bulletRewriteCard {
  background: #e8f3fd;
  border: 1.5px solid #b1d9f6;
}

#languageAuditCard {
  background: #fde6f0;
  border: 1.5px solid #f6b4ce;
}

#employmentGapsCard {
  background: #e0f6e9;
  border: 1.5px solid #99e1b5;
}

#suggestedRolesCard {
  background: #e8f3fd;
  border: 1.5px solid #b1d9f6;
}

.card-action {
  background: #e0f6e9;
  border: 1.5px solid #99e1b5;
}

.card:not([id]):not([class*="card-"]) {
  background: #eaf3fb;
  border: 1.5px solid #bfdcf1;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 1rem;
}

.cards-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.2rem;
  margin-bottom: 1.4rem;
}
.cards-row .card {
  margin-bottom: 0;
}

/* Evaluation Dimensions */
.eval-dimensions-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.dimensions-weight-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--pastel-sky-text);
  background: #ffffff;
  border: 1.5px solid var(--pastel-sky-border);
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
}

.dimensions-desc {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-bottom: 1.1rem;
}

.evaluation-dimensions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}

.eval-dimension-item {
  background: #f7fbfe;
  border: 1.5px solid #c8e2f4;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  transition: all 0.15s ease;
}
.eval-dimension-item:hover {
  border-color: #9bc8ea;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.06);
}

.dim-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.dim-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.dim-weight-tag {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--pastel-sky-text);
  background: var(--pastel-sky);
  border: 1px solid var(--pastel-sky-border);
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
}

.dim-meter-track {
  height: 6px;
  background: #e2eef7;
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.dim-meter-fill {
  height: 100%;
  border-radius: 3px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.dim-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.72rem;
}

.dim-score-text {
  color: var(--text-2);
}

.dim-status-text {
  font-weight: 700;
  color: var(--pastel-mint-text);
}

/* Section Bars */
.section-bars {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-bar-item {
  display: grid;
  grid-template-columns: 140px 1fr 45px;
  align-items: center;
  gap: 0.85rem;
}

.section-bar-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
}

.section-bar-track {
  height: 7px;
  background: #f8c9dc;
  border-radius: 4px;
  overflow: hidden;
}

.section-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.section-bar-val {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text);
  text-align: right;
}

/* Evidence Audit Grid (Mint Green Theme) */
.audit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.85rem;
}

.audit-item {
  background: #f3fcf6;
  border: 1.5px solid #a9e4be;
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.audit-highlight {
  grid-column: 1 / -1;
  background: #d3f4df;
  border: 1.5px solid #77dba0;
}

.audit-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.4rem;
}

.audit-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-2);
}

.audit-value {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.audit-sub {
  font-size: 0.74rem;
  color: var(--text-2);
  line-height: 1.45;
  margin-top: 0.25rem;
}

/* Seniority tracks in audit */
.audit-seniority-tracks {
  margin: 0.65rem 0;
  padding: 0.6rem 0.8rem;
  background: #ffffff;
  border: 1px solid #bce8cb;
  border-radius: var(--radius-sm);
}

.audit-seniority-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.45rem;
}

.seniority-tier-item {
  margin-bottom: 0.4rem;
}

.tier-header-line {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  margin-bottom: 2px;
}

.tier-meter {
  height: 5px;
  background: #e2f2e7;
  border-radius: 3px;
  overflow: hidden;
}

.tier-meter-bar {
  height: 100%;
  border-radius: 3px;
}

/* Technical Skills Categorized Inventory (Restful Blue, Pink & Green Groups) */
.skills-category-container {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.skills-category-group {
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.1rem;
  border: 1.5px solid var(--border);
}

/* Group 1: Light Sky Blue */
.skills-category-group:nth-child(1) {
  background: #dcedfa;
  border-color: #92c6f1;
}
/* Group 2: Soft Rose Pink */
.skills-category-group:nth-child(2) {
  background: #fce1ed;
  border-color: #f69ebd;
}
/* Group 3: Calming Mint Green */
.skills-category-group:nth-child(3) {
  background: #d6f3e0;
  border-color: #82dfa3;
}
/* Group 4: Soft Lavender Blue */
.skills-category-group:nth-child(4) {
  background: #e7edfc;
  border-color: #acc2f8;
}
/* Group 5: Soft Peach Warmth */
.skills-category-group:nth-child(5) {
  background: #fce7d4;
  border-color: #f4b484;
}

.category-group-header {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.55rem;
}

.category-group-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text);
}

.category-group-count {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.1rem 0.45rem;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text-2);
}

.category-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.category-skill-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.22rem 0.6rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Bullet Lists & Highlights */
.bullet-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bullet-list li {
  position: relative;
  padding-left: 1.2rem;
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.45;
}

.bullet-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 800;
}

/* 3 Key Status Cards: Green, Pink, Yellow */
.card-green {
  border: 1.5px solid #8be3ab;
  background: #d8f5e3;
}
.card-green .card-title {
  color: #166534;
}
.card-green .bullet-list li::before {
  color: #166534;
}

.card-red {
  border: 1.5px solid #f6a6c3;
  background: #fce3ee;
}
.card-red .card-title {
  color: #9f1239;
}
.card-red .bullet-list li::before {
  color: #9f1239;
}

.card-yellow {
  border: 1.5px solid #f1cd64;
  background: #fcf1ca;
}
.card-yellow .card-title {
  color: #854d0e;
}

/* ATS Pillar Row */
.ats-score-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.65rem;
}

.ats-score-num {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
}

.ats-badge {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #f4e39e;
  color: #854d0e;
}

/* Weakness List */
.weakness-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  list-style: none;
}

.weakness-item {
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.weakness-text {
  font-size: 0.8rem;
  color: var(--text-2);
  line-height: 1.45;
}

.severity-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.15rem 0.5rem;
  border-radius: 12px;
  white-space: nowrap;
}
.severity-high {
  background: var(--pastel-rose);
  border: 1px solid var(--pastel-rose-border);
  color: var(--pastel-rose-text);
}
.severity-medium {
  background: var(--pastel-amber);
  border: 1px solid var(--pastel-amber-border);
  color: var(--pastel-amber-text);
}
.severity-low {
  background: var(--pastel-sky);
  border: 1px solid var(--pastel-sky-border);
  color: var(--pastel-sky-text);
}

/* ─── High-Impact Bullet Rewriter (STAR / Google XYZ Formula) ─── */
.rewrite-intro {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 1rem;
  line-height: 1.5;
}

.rewrite-list {
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
}

.rewrite-card {
  background: #ffffff;
  border: 1.5px solid #bddcf6;
  border-radius: var(--radius-md, 12px);
  padding: 1.25rem 1.35rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
  transition: all 0.2s ease;
}

.rewrite-card:hover {
  border-color: #79baea;
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.1);
  transform: translateY(-1px);
}

.rewrite-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed #dbeafe;
}

.rewrite-badge {
  font-size: 0.75rem;
  font-weight: 800;
  background: #e0e7ff;
  color: #3730a3;
  border: 1px solid #c7d2fe;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.rewrite-issue {
  font-size: 0.79rem;
  font-weight: 600;
  color: #b91c1c;
  background: #fee2e2;
  border: 1px solid #fecaca;
  padding: 0.25rem 0.7rem;
  border-radius: 8px;
}

.rewrite-comparison {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 768px) {
  .rewrite-comparison {
    grid-template-columns: 1fr;
  }
}

.rewrite-block {
  border-radius: 10px;
  padding: 0.95rem 1.05rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  line-height: 1.55;
  transition: border-color 0.15s ease;
}

.rewrite-block.original {
  background: #fff5f5;
  border: 1.5px solid #fecaca;
}

.rewrite-block.original .rewrite-label {
  color: #dc2626;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rewrite-block.original .rewrite-text {
  font-size: 0.83rem;
  color: #475569;
}

.rewrite-block.improved {
  background: #f0fdf4;
  border: 1.5px solid #bbf7d0;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.05);
}

.rewrite-block.improved .rewrite-label {
  color: #15803d;
  font-size: 0.76rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 5px;
}

.rewrite-block.improved .rewrite-text {
  font-size: 0.84rem;
  color: #0f172a;
  font-weight: 600;
}

.empty-rewrite-box {
  background: #ffffff;
  border: 1.5px dashed #bbf7d0;
  border-radius: var(--radius-md, 12px);
  padding: 1.5rem;
  text-align: center;
}

/* ─── Recommended Job Roles to Apply For (Separated Boxes) ─── */
.roles-intro {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-bottom: 1.15rem;
  line-height: 1.5;
}

.suggested-roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(310px, 1fr));
  gap: 1.25rem;
}

.suggested-role-card {
  background: #ffffff;
  border: 1.5px solid #bddcf6;
  border-radius: var(--radius-md, 14px);
  padding: 1.3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.suggested-role-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: #94a3b8;
}

.suggested-role-card.priority-high::before {
  background: linear-gradient(90deg, #10b981, #059669);
}

.suggested-role-card.priority-mid::before {
  background: linear-gradient(90deg, #f59e0b, #d97706);
}

.suggested-role-card.priority-low::before {
  background: linear-gradient(90deg, #94a3b8, #64748b);
}

.suggested-role-card:hover {
  transform: translateY(-3px);
  border-color: #79baea;
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.12);
}

.role-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid #eef4f9;
}

.role-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text, #0f172a);
  line-height: 1.3;
}

.role-level {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-3, #64748b);
  margin-top: 3px;
}

.role-match-badge-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex-shrink: 0;
}

.role-priority-badge {
  font-size: 0.69rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.role-priority-badge.priority-high {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}

.role-priority-badge.priority-mid {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}

.role-priority-badge.priority-low {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #e2e8f0;
}

.role-match-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

.role-desc {
  font-size: 0.81rem;
  color: #334155;
  line-height: 1.5;
  margin: 0;
}

/* Seniority Matrix Sub-Box inside Role Card */
.role-seniority-matrix {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 0.95rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.seniority-track-title {
  font-size: 0.72rem;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.seniority-track-items {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.seniority-tier-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.tier-header-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.72rem;
}

.tier-label {
  color: #475569;
  font-weight: 500;
}

.tier-stat {
  font-weight: 700;
  color: #0f172a;
}

.tier-meter {
  height: 6px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.tier-meter-bar {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}

/* Skills Breakdown inside Role Card */
.role-skills-section {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.role-skills-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.role-skills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.role-skill-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  line-height: 1.3;
}

.role-skill-badge.match {
  background: #eaf8f0;
  color: #15803d;
  border: 1px solid #b7ebd0;
}

.role-skill-badge.missing {
  background: #fef8ee;
  color: #92400e;
  border: 1px solid #fae2b8;
}

/* ─── Language Issues & Employment Gaps Boxes ─── */
.lang-issues-list {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lang-issue-card {
  background: #ffffff;
  border: 1.5px solid #fecaca;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  box-shadow: 0 2px 6px rgba(220, 38, 38, 0.04);
}

.lang-issue-badge {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b91c1c;
}

.lang-snippet-text {
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
  background: #fef2f2;
  padding: 4px 8px;
  border-radius: 6px;
  border-left: 3px solid #ef4444;
}

.lang-suggestion-text {
  font-size: 0.82rem;
  color: #0f172a;
}

.lang-positive-box,
.gap-positive-box {
  background: #ffffff;
  border: 1.5px solid #bbf7d0;
  border-radius: 10px;
  padding: 0.9rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #15803d;
}

.lang-positive-box .lang-icon,
.gap-positive-box .gap-icon {
  font-weight: 800;
  font-size: 1.1rem;
  color: #16a34a;
}

.gap-notice-card {
  background: #ffffff;
  border: 1.5px solid #fde68a;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.04);
}

.gap-notice-badge {
  font-size: 0.74rem;
  font-weight: 700;
  color: #b45309;
}

.gap-notice-desc {
  font-size: 0.81rem;
  color: #334155;
}

/* Keywords Chips */
.keyword-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.kw-chip {
  font-size: 0.76rem;
  font-weight: 600;
  padding: 0.25rem 0.65rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-2);
}

.kw-chip.matched {
  background: #eaf6ee;
  border-color: #aee4c2;
  color: #166534;
}

.kw-chip.missing {
  background: #fdf0f5;
  border-color: #f8bed6;
  color: #9f1239;
}

/* Action Plan */
.action-list {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.action-list li {
  font-size: 0.82rem;
  color: var(--text-2);
  line-height: 1.45;
}

/* Career Continuity & Language Issues */
.gap-positive-box, .lang-positive-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  line-height: 1.45;
}
.gap-positive-box {
  background: #ffffff;
  border: 1.5px solid #aee4c2;
  color: #166534;
}
.lang-positive-box {
  background: #ffffff;
  border: 1.5px solid #b5daf5;
  color: #0369a1;
}

.lang-issue-card {
  background: #ffffff;
  border: 1.5px solid #f8bed6;
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.95rem;
  margin-bottom: 0.5rem;
}

.lang-issue-badge {
  font-size: 0.72rem;
  font-weight: 700;
  color: #9f1239;
  background: #fdf0f5;
  border: 1px solid #f8bed6;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
}

.lang-snippet-text {
  font-size: 0.76rem;
  font-style: italic;
  color: var(--text-3);
  margin: 0.35rem 0;
}

.lang-suggestion-text {
  font-size: 0.78rem;
  color: var(--text-2);
}

/* ─── 7. RIGHT PANEL (CAREER ADVISOR - COMFORTING SOFT PINK) ─── */
.chat-side-panel {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 58px);
}

.chat-header {
  padding-bottom: 1rem;
  border-bottom: 1px solid #fae2ec;
  margin-bottom: 1rem;
}

.chat-header-left {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.chat-avatar {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: #fdf0f5;
  border: 1.5px solid #f8bed6;
  color: #be185d;
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-name {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
}

.chat-status {
  font-size: 0.72rem;
  color: var(--text-3);
}

.quick-prompts {
  margin-bottom: 1rem;
}

.quick-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--text-3);
  margin-bottom: 0.4rem;
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.quick-chip {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  background: #e8f4fc;
  border: 1.5px solid #8fc3ec;
  border-radius: 12px;
  color: #0369a1;
  cursor: pointer;
  transition: all 0.15s ease;
}
.quick-chip:hover {
  background: #e8f4fc;
  border-color: #0284c7;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-right: 0.35rem;
  margin-bottom: 1rem;
}

.chat-msg {
  display: flex;
  gap: 0.65rem;
  max-width: 95%;
}

.chat-msg.user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.chat-msg.assistant {
  align-self: flex-start;
}

.msg-avatar {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: #fdf0f5;
  border: 1px solid #f8bed6;
  color: #be185d;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.msg-bubble {
  padding: 0.75rem 0.95rem;
  border-radius: var(--radius);
  font-size: 0.82rem;
  line-height: 1.5;
}

.chat-msg.user .msg-bubble {
  background: var(--primary);
  color: #ffffff;
  border-bottom-right-radius: 2px;
}

.chat-msg.assistant .msg-bubble {
  background: #fef7fa;
  border: 1.5px solid #f6bed4;
  color: #1e293b;
  border-bottom-left-radius: 2px;
  box-shadow: 0 2px 6px rgba(190, 24, 93, 0.05);
}

.chat-input-area {
  display: flex;
  gap: 0.45rem;
  background: #fef7fa;
  border: 1.5px solid #f6bed4;
  border-radius: var(--radius);
  padding: 0.45rem 0.6rem;
}

.chat-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-size: 0.82rem;
  color: var(--text);
  max-height: 80px;
}

.chat-send {
  background: var(--primary);
  color: #ffffff;
  border: none;
  border-radius: var(--radius-sm);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
  align-self: flex-end;
}
.chat-send:hover {
  background: var(--primary-hover);
}

/* ─── 8. RESUME EDITOR MODAL STUDIO (Anti-Glare Warm Paper) ─────── */
.resume-editor-backdrop {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.resume-editor-window {
  width: 96vw;
  max-width: 1160px;
  height: 94vh;
  background: #f4f8fc;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--border);
}

.editor-header {
  padding: 0.85rem 1.4rem;
  background: #ffffff;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-shrink: 0;
}

.editor-header-left {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.editor-title-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.editor-target-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: #e8f4fc;
  color: #0369a1;
  border-radius: 12px;
  border: 1px solid #b5daf5;
}

.editor-ats-pill {
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  background: #eaf6ee;
  color: #166534;
  border-radius: 12px;
  border: 1px solid #aee4c2;
}

.editor-header-actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.btn-editor-action {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--text);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-editor-action:hover {
  background: #e8f4fc;
  border-color: #9bc8ea;
}

.btn-editor-action.btn-download-pdf {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}
.btn-editor-action.btn-download-pdf:hover {
  background: var(--primary-hover);
}

.btn-close-editor {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #ffffff;
  color: var(--text-3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}
.btn-close-editor:hover {
  background: var(--pastel-rose);
  color: var(--pastel-rose-text);
  border-color: var(--pastel-rose-border);
}

/* Fixes Banner */
.editor-fixes-banner {
  padding: 0.65rem 1.4rem;
  background: #fdf2f7;
  border-bottom: 1.5px solid #f8c8dc;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow-x: auto;
  flex-shrink: 0;
}

.fixes-banner-title {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #9f1239;
  white-space: nowrap;
}

.fixes-pills-wrap {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.fix-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  background: #ffffff;
  color: #9f1239;
  border: 1px solid #f8c3d7;
  border-radius: 12px;
  white-space: nowrap;
}
.fix-badge-pill .fix-cat {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.66rem;
}

/* Document Paper Canvas (Ivory Eye-Comfort Anti-Glare Paper) */
.editor-body-wrap {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
  background: #dce9f4;
  display: flex;
  justify-content: center;
}

.editor-canvas-container {
  width: 100%;
  max-width: 820px;
}

.editor-paper {
  background: #fcfaf6; /* Ivory reading paper tint, zero white glare */
  color: #0f172a;
  padding: 3.2rem 3.5rem;
  min-height: 1050px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  border-radius: 4px;
  border: 1.5px solid #ded6c8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  font-size: 0.95rem;
}

[contenteditable="true"] {
  outline: none;
  transition: all 0.15s ease;
  border-radius: 3px;
}
[contenteditable="true"]:hover {
  background: #e8f4fc;
}
[contenteditable="true"]:focus {
  background: #e8f4fc;
  box-shadow: 0 0 0 1.5px #0284c7;
  padding: 2px 4px;
}

.resume-header-block {
  text-align: center;
  margin-bottom: 1.5rem;
}

.resume-candidate-name {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.35rem 0;
  color: #0f172a;
  text-transform: uppercase;
}

.resume-candidate-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0284c7;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.resume-contact-line {
  font-size: 0.85rem;
  color: #475569;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.contact-sep {
  color: #cbd5e1;
}

.resume-section-block {
  margin-bottom: 1.35rem;
}

.resume-section-heading {
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #0f172a;
  border-bottom: 1.5px solid #0f172a;
  padding-bottom: 0.25rem;
  margin-bottom: 0.65rem;
}

.resume-summary-text {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
  text-align: justify;
}

.resume-skills-editable {
  font-size: 0.88rem;
  color: #1e293b;
  line-height: 1.6;
  font-weight: 500;
}

.editor-hint {
  font-size: 0.74rem;
  color: #64748b;
  margin-top: 0.35rem;
  font-style: italic;
}

.resume-job-item, .resume-proj-item {
  margin-bottom: 1rem;
}

.resume-job-header, .resume-proj-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.job-title, .proj-title {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.job-company {
  font-size: 0.88rem;
  color: #475569;
  font-style: italic;
}

.job-period {
  font-size: 0.82rem;
  color: #64748b;
  font-weight: 500;
}

.proj-tools {
  font-size: 0.82rem;
  color: #0284c7;
  font-weight: 600;
}

.resume-bullets-list {
  margin: 0;
  padding-left: 1.3rem;
}

.bullet-item-wrap {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  margin-bottom: 0.35rem;
  position: relative;
}

.bullet-item {
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.55;
  flex: 1;
}

.btn-bullet-del {
  opacity: 0;
  background: none;
  border: none;
  color: #ef4444;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  transition: opacity 0.15s ease;
}
.bullet-item-wrap:hover .btn-bullet-del {
  opacity: 1;
}

.btn-item-delete {
  opacity: 0.35;
  background: none;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  color: #64748b;
  font-size: 0.7rem;
  cursor: pointer;
  padding: 1px 5px;
  margin-left: auto;
  transition: all 0.15s ease;
}
.btn-item-delete:hover {
  opacity: 1;
  color: #ef4444;
  border-color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.btn-add-bullet-to-item {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.74rem;
  color: #0284c7;
  background: none;
  border: none;
  cursor: pointer;
  font-weight: 600;
  padding: 0;
}
.btn-add-bullet-to-item:hover {
  text-decoration: underline;
}

.resume-education-block {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.6;
}

.btn-editor-add {
  display: inline-block;
  margin-top: 0.45rem;
  padding: 0.3rem 0.75rem;
  background: transparent;
  border: 1px dashed #cbd5e1;
  border-radius: 6px;
  font-size: 0.76rem;
  color: #475569;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-editor-add:hover {
  background: #f8fafc;
  border-color: #0284c7;
  color: #0284c7;
}

.editor-toast-pill {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  background: #0f172a;
  color: #ffffff;
  padding: 0.6rem 1.25rem;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 100000;
  transition: opacity 0.3s ease;
}
.editor-toast-pill.fade-out {
  opacity: 0;
}

/* ─── 9. STAFF PLACEMENT PORTAL STYLING (staff.html) ─────────────── */
.staff-main-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 2.5rem;
}

.staff-batch-uploader-card {
  background: linear-gradient(135deg, #dcf4e5 0%, #dcedfa 100%);
  border: 1.5px solid #9ce1b7;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  margin-bottom: 2rem;
}

.section-heading {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 0.3rem;
}

.section-subheading {
  font-size: 0.84rem;
  color: var(--text-2);
  line-height: 1.5;
}

.batch-drive-settings {
  display: flex;
  gap: 1.25rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.setting-item {
  flex: 1;
  min-width: 260px;
}
.setting-item label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 0.4rem;
}

.batch-dropzone {
  margin-top: 1.5rem;
  border: 2px dashed #92e0b5;
  border-radius: var(--radius);
  background: #e8f7f0;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}
.batch-dropzone:hover {
  border-color: #15803d;
  background: #def4e7;
  box-shadow: 0 4px 16px rgba(21, 128, 61, 0.1);
}

.btn-batch-browse {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1.25rem;
  background: #15803d;
  color: #ffffff;
  font-size: 0.84rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  margin-top: 1rem;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
  transition: background 0.15s ease;
}
.btn-batch-browse:hover {
  background: #166534;
}

.batch-selected-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.25rem;
  padding: 0.85rem 1.25rem;
  background: #ffffff;
  border: 1.5px solid #aee4c2;
  border-radius: var(--radius-sm);
}

.files-count-badge {
  font-size: 0.88rem;
  font-weight: 700;
  color: #166534;
}

.files-size-info {
  font-size: 0.76rem;
  color: var(--text-3);
  margin-left: 0.5rem;
}

.btn-start-batch-audit {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.55rem 1.2rem;
  background: #15803d;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(21, 128, 61, 0.25);
  transition: all 0.15s ease;
}
.btn-start-batch-audit:hover {
  background: #166534;
  transform: translateY(-1px);
}

/* Real-Time Progress Bar */
.batch-progress-wrap {
  margin-top: 1.25rem;
  padding: 1rem 1.25rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.45rem;
}

.progress-track {
  height: 8px;
  background: #e2f2e7;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.45rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #15803d, #22c55e);
  border-radius: 4px;
  transition: width 0.3s ease;
}

.progress-status-log {
  font-size: 0.74rem;
  color: var(--text-3);
}

/* KPI Overview Grid (Distinct Pastel Light Blue, Mint Green, Pink & Amber Tiles) */
.batch-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.1rem;
  margin-bottom: 2rem;
}

.kpi-card {
  border-radius: var(--radius);
  padding: 1.35rem 1.6rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease;
}
.kpi-card:hover {
  transform: translateY(-2px);
}

/* 1. Batch Size: Restful Light Sky Blue */
.kpi-card:nth-child(1) {
  background: #dcedfa;
  border: 1.5px solid #92c6f1;
}
.kpi-card:nth-child(1) .kpi-label {
  color: #0369a1;
}

/* 2. Class Average: Calming Mint Green */
.kpi-card.highlight-emerald {
  background: #d6f3e0;
  border: 1.5px solid #82dfa3;
}
.kpi-card.highlight-emerald .kpi-label {
  color: #15803d;
}

/* 3. Placement Ready: Gentle Rose Pink */
.kpi-card.highlight-blue {
  background: #fce1ed;
  border: 1.5px solid #f69ebd;
}
.kpi-card.highlight-blue .kpi-label {
  color: #be185d;
}

/* 4. Batch Highest: Warm Soft Butter Amber */
.kpi-card.highlight-gold {
  background: #fcf0c9;
  border: 1.5px solid #f2cd66;
}
.kpi-card.highlight-gold .kpi-label {
  color: #a16207;
}

.kpi-value {
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 0.25rem;
}

.kpi-label {
  font-size: 0.8rem;
  font-weight: 700;
  margin-bottom: 2px;
}

.kpi-sub {
  font-size: 0.74rem;
  color: var(--text-3);
}

/* Podium Cards (Gold, Sky Blue & Rose Pink) */
.podium-card {
  background: #e8f2f9;
  border: 1.5px solid #b7d6ed;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.podium-header-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.podium-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.podium-subtitle {
  display: block;
  font-size: 0.78rem;
  color: var(--text-3);
  margin-top: 2px;
}

.btn-deduplicate {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.85rem;
  background: #fdf0f5;
  border: 1.5px solid #f8c2d6;
  border-radius: var(--radius-sm);
  color: #9f1239;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-deduplicate:hover {
  background: #fae2ec;
}

.podium-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.25rem;
}

.podium-rank-card {
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.podium-rank-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

/* Rank 1: Warm Soft Gold */
.podium-rank-card.rank-1 {
  background: #fefcf0;
  border: 1.5px solid #f6dd8f;
}
.podium-rank-card.rank-1 .podium-badge {
  background: #fdf8e8;
  color: #854d0e;
  border: 1px solid #f4df8f;
}

/* Rank 2: Light Sky Blue */
.podium-rank-card.rank-2 {
  background: #edf6fd;
  border: 1.5px solid #b8dcf5;
}
.podium-rank-card.rank-2 .podium-badge {
  background: #e8f4fc;
  color: #0369a1;
  border: 1px solid #b5daf5;
}

/* Rank 3: Soft Rose Pink */
.podium-rank-card.rank-3 {
  background: #fdf2f6;
  border: 1.5px solid #f9c8da;
}
.podium-rank-card.rank-3 .podium-badge {
  background: #fdf0f5;
  color: #9f1239;
  border: 1px solid #f8bfd6;
}

.podium-badge {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  margin-bottom: 0.65rem;
}

.podium-student-name {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.podium-score-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
}

.podium-score-num {
  font-size: 1.85rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.podium-grade-pill {
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.15rem 0.55rem;
  border-radius: 12px;
  background: #eaf6ee;
  color: #166534;
  border: 1px solid #aee4c2;
}

.role-priority-pill {
  font-size: 0.74rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  background: #e8f4fc;
  border: 1px solid #b5daf5;
  color: #0369a1;
}

.podium-details {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 1rem 0;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.podium-detail-item {
  font-size: 0.78rem;
  color: var(--text-2);
}
.podium-detail-item strong {
  color: var(--text);
}

.btn-podium-audit {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.5rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-podium-audit:hover {
  background: #e8f4fc;
  border-color: #9bc8ea;
  color: #0369a1;
}

.btn-card-remove {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: transparent;
  border: none;
  font-size: 0.74rem;
  color: var(--text-3);
  cursor: pointer;
}
.btn-card-remove:hover {
  color: var(--red);
}

/* Candidate Directory Card & Table (Anti-Glare Light Blue/Slate) */
.candidate-directory-card {
  background: #f4f8fb;
  border: 1.5px solid #d0e2f2;
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-sm);
}

.directory-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.directory-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.directory-count {
  font-size: 0.76rem;
  color: var(--text-3);
}

.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.input-search {
  min-width: 220px;
}

.select-filter {
  padding: 0.45rem 0.7rem;
  font-size: 0.78rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

.btn-export-pdf, .btn-export-csv {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.85rem;
  font-size: 0.78rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-export-pdf {
  background: #e8f4fc;
  border: 1.5px solid #b5daf5;
  color: #0369a1;
}
.btn-export-pdf:hover {
  background: #ddecfa;
}

.btn-export-csv {
  background: #eaf6ee;
  border: 1.5px solid #aee4c2;
  color: #166534;
}
.btn-export-csv:hover {
  background: #d8f2df;
}

.table-responsive {
  overflow-x: auto;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
}

.candidate-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.82rem;
}

.candidate-table th {
  padding: 0.8rem 1rem;
  background: #e2edf7;
  font-weight: 700;
  color: var(--text-2);
  border-bottom: 2px solid var(--border);
  white-space: nowrap;
}

.candidate-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  background: #ffffff;
}

.candidate-table tr:nth-child(even) td {
  background: #f8fbfe;
}

.candidate-table tr:hover td {
  background: #edf6fd;
}

.student-name-text {
  font-weight: 700;
  color: var(--text);
  font-size: 0.86rem;
}

.student-contact-text {
  font-size: 0.74rem;
  color: var(--text-3);
  display: flex;
  gap: 0.5rem;
  margin-top: 2px;
}

.table-score-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  font-size: 0.78rem;
  border: 1px solid transparent;
}

.table-grade-pill {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 10px;
  background: #eaf6ee;
  border: 1px solid #aee4c2;
  color: #166534;
  margin-left: 0.35rem;
}

.table-skill-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #e8f4fc;
  border: 1px solid #b5daf5;
  color: #0369a1;
  white-space: nowrap;
}

.skills-total-pill {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  background: #fdf0f5;
  border: 1px solid #f8bed6;
  color: #9f1239;
}

.badge-status {
  font-size: 0.74rem;
  font-weight: 700;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
}
.status-pass {
  background: #eaf6ee;
  border: 1px solid #aee4c2;
  color: #166534;
}
.status-warn {
  background: #fdf8e8;
  border: 1px solid #f4df8f;
  color: #854d0e;
}

.cgpa-val {
  font-weight: 700;
  color: var(--text);
}
.cgpa-none {
  color: var(--text-3);
  font-weight: 400;
}

.btn-table-audit {
  padding: 0.35rem 0.7rem;
  background: #e8f4fc;
  border: 1.5px solid #b5daf5;
  border-radius: 4px;
  color: #0369a1;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}
.btn-table-audit:hover {
  background: #ddecfa;
}

.btn-table-remove {
  padding: 0.35rem 0.55rem;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-3);
  font-size: 0.75rem;
  cursor: pointer;
}
.btn-table-remove:hover {
  background: #fdf0f5;
  border-color: #f8bed6;
  color: #9f1239;
}

/* Candidate Table Column Widths & Layout */
.candidate-table .col-rank { width: 5%; text-align: center; }
.candidate-table .col-name { width: 17%; }
.candidate-table .col-score { width: 12%; }
.candidate-table .col-cgpa { width: 7%; text-align: center; }
.candidate-table .col-skills { width: 16%; }
.candidate-table .col-exp { width: 9%; text-align: center; }
.candidate-table .col-proj { width: 11%; text-align: center; }
.candidate-table .col-ats { width: 10%; text-align: center; }
.candidate-table .col-action { width: 13%; text-align: center; }

.table-proj-wrap,
.table-ats-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.proj-score-sub,
.ats-score-label {
  font-size: 0.69rem;
  color: var(--text-3);
  font-weight: 600;
}

.ats-pct-tag {
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.15rem 0.5rem;
  border-radius: 6px;
  background: #eaf6ee;
  border: 1px solid #aee4c2;
  color: #166534;
}

.pdf-audit-print-tag {
  display: none;
}

.pdf-audit-pill {
  font-size: 0.72rem;
  font-weight: 700;
  background: #eaf6ee;
  border: 1px solid #aee4c2;
  color: #166534;
  padding: 3px 8px;
  border-radius: 6px;
  white-space: nowrap;
}

/* ─── PDF Export Print Styling ─── */
.exporting-pdf {
  background: #ffffff !important;
  color: #0f172a !important;
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.exporting-pdf .directory-toolbar,
.exporting-pdf .btn-deduplicate,
.exporting-pdf .btn-table-remove,
.exporting-pdf .btn-table-audit,
.exporting-pdf .table-actions-group {
  display: none !important;
}

.exporting-pdf .pdf-audit-print-tag {
  display: block !important;
}

.exporting-pdf .table-responsive {
  overflow: visible !important;
  border: 1.5px solid #cbd5e1 !important;
  box-shadow: none !important;
  width: 100% !important;
}

.exporting-pdf .candidate-table {
  width: 100% !important;
  table-layout: fixed !important;
  font-size: 0.71rem !important;
}

.exporting-pdf .candidate-table th,
.exporting-pdf .candidate-table td {
  padding: 0.55rem 0.45rem !important;
  word-wrap: break-word !important;
  overflow-wrap: break-word !important;
  white-space: normal !important;
}

/* Institutional PDF Header Banner */
.pdf-export-banner {
  background: linear-gradient(135deg, #1e3a8a 0%, #0369a1 100%);
  color: #ffffff;
  padding: 1.35rem 1.6rem;
  border-radius: 12px;
  margin-bottom: 1.4rem;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.2);
}

.pdf-banner-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
}

.pdf-banner-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 4px;
}

.pdf-banner-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.01em;
  margin: 0 0 4px 0;
}

.pdf-banner-sub {
  font-size: 0.84rem;
  color: #e0f2fe;
}

.pdf-banner-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.pdf-banner-chip {
  background: rgba(16, 185, 129, 0.25);
  border: 1px solid #34d399;
  color: #6ee7b7;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.pdf-banner-meta {
  font-size: 0.74rem;
  color: #bae6fd;
}

/* Candidate Dossier Print Section */
.pdf-dossier-wrapper {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.pdf-dossier-intro-banner {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: #ffffff;
  padding: 1.2rem 1.5rem;
  border-radius: 12px;
  border-left: 6px solid #38bdf8;
}

.pdf-dossier-main-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: #ffffff;
  margin: 0 0 4px 0;
}

.pdf-dossier-main-sub {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

.pdf-candidate-card {
  background: #ffffff;
  border: 1.5px solid #cbd5e1;
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  page-break-inside: avoid;
  margin-bottom: 1.2rem;
}

.pdf-cand-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 0.75rem;
  border-bottom: 1.5px solid #e2e8f0;
  margin-bottom: 0.9rem;
}

.pdf-cand-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.pdf-cand-rank {
  font-size: 1.1rem;
  font-weight: 800;
  background: #0284c7;
  color: #ffffff;
  padding: 0.25rem 0.65rem;
  border-radius: 8px;
}

.pdf-cand-name {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 2px 0;
}

.pdf-cand-contact {
  font-size: 0.76rem;
  color: #64748b;
  display: flex;
  gap: 0.5rem;
}

.pdf-cand-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.pdf-cand-score-badge {
  font-size: 0.92rem;
  font-weight: 800;
  color: #0369a1;
  background: #e0f2fe;
  border: 1px solid #7dd3fc;
  padding: 2px 10px;
  border-radius: 8px;
}

.pdf-cand-fit-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: #15803d;
  background: #dcfce7;
  border: 1px solid #86efac;
  padding: 1px 8px;
  border-radius: 6px;
}

.pdf-cand-grid {
  display: grid;
  grid-template-columns: 1fr 1.25fr 1fr;
  gap: 1rem;
}

.pdf-cand-box {
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.pdf-box-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: #1e293b;
  display: flex;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 0.4rem;
}

.pdf-ats-score-row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.pdf-ats-num {
  font-size: 1.25rem;
  font-weight: 800;
  color: #0f172a;
}

.pdf-ats-grade {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
}
.pdf-ats-grade.grade-good {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.pdf-ats-grade.grade-fair {
  background: #fef3c7;
  color: #b45309;
  border: 1px solid #fde68a;
}
.pdf-ats-grade.grade-poor {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}

.pdf-checklist {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.73rem;
  color: #334155;
}

.pdf-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 5px;
}

.chk-icon {
  font-weight: 800;
  color: #16a34a;
}

.pdf-metric-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.pdf-metric-pill {
  font-size: 0.72rem;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  padding: 2px 8px;
  border-radius: 6px;
  color: #334155;
}

.pdf-proj-count-label {
  font-size: 0.74rem;
  color: #0369a1;
  font-weight: 700;
  margin-bottom: 3px;
}

.pdf-proj-list {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.73rem;
  color: #475569;
}

.pdf-proj-item {
  line-height: 1.4;
}

.pdf-audit-subtitle {
  font-size: 0.72rem;
  font-weight: 700;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.pdf-audit-list {
  list-style: none;
  padding: 0;
  margin: 2px 0 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.73rem;
  color: #15803d;
}

.pdf-role-matches {
  font-size: 0.73rem;
  color: #0369a1;
  font-weight: 600;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 2px;
}

.pdf-audit-note {
  font-size: 0.72rem;
  color: #b45309;
  background: #fffbeb;
  border: 1px solid #fef3c7;
  padding: 2px 8px;
  border-radius: 6px;
  margin-top: 2px;
}

/* Modal Window */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.audit-modal-window {
  width: 90vw;
  max-width: 920px;
  max-height: 88vh;
  background: #f4f8fc;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.audit-modal-header {
  padding: 1.1rem 1.6rem;
  background: #e4edf6;
  border-bottom: 1.5px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-student-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text);
}

.modal-student-meta {
  font-size: 0.78rem;
  color: var(--text-3);
}

.btn-close-modal {
  background: transparent;
  border: none;
  color: var(--text-3);
  font-size: 1.2rem;
  cursor: pointer;
}
.btn-close-modal:hover {
  color: var(--text);
}

.audit-modal-body {
  padding: 1.6rem;
  overflow-y: auto;
}

/* Toast Container */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 100000;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  padding: 0.65rem 1rem;
  background: #ffffff;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 600;
  animation: toastIn 0.2s ease;
}

.toast-success {
  border-left: 3.5px solid #15803d;
}
.toast-error {
  border-left: 3.5px solid #be123c;
}

@keyframes toastIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.hidden {
  display: none !important;
}

/* ─── 10. PRINT MEDIA FOR FLAWLESS ATS PDF EXPORT ────────────────── */
@media print {
  body * {
    visibility: hidden;
  }
  
  .editor-paper, .editor-paper * {
    visibility: visible;
  }

  .editor-paper {
    position: absolute;
    left: 0;
    top: 0;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
  }

  .editor-header,
  .editor-fixes-banner,
  .btn-editor-add,
  .btn-bullet-del,
  .btn-item-delete,
  .btn-add-bullet-to-item,
  .editor-hint,
  #particles,
  header,
  .panel-left,
  .panel-right,
  .toast-container {
    display: none !important;
  }

  [contenteditable="true"] {
    outline: none !important;
    background: transparent !important;
  }

  @page {
    size: A4;
    margin: 1.2cm 1.5cm;
  }
}

/* ===================================================================
   RESERVED ADVERTISEMENT SLOTS (Zero Layout Shift / Light-Mode Clean)
   =================================================================== */
.ad-slot-placeholder-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.ad-slot-placeholder-wrap.hidden-ad-slot,
.ad-slot-placeholder-wrap[style*="display: none"] {
  display: none !important;
}

.ad-slot {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: #f1f5f9;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  position: relative;
  overflow: hidden;
  text-align: center;
  transition: all 0.2s ease;
}

.ad-slot:hover {
  background-color: #e2e8f0;
  border-color: #94a3b8;
}

.ad-slot-label {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: #94a3b8;
  padding: 5px 12px 2px;
  line-height: 1;
  user-select: none;
}

.ad-slot-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  color: #94a3b8;
}

/* Formats: Banner (728x90 / responsive) */
.ad-slot-banner {
  min-height: 90px;
  height: 90px;
  max-width: 728px;
  width: 100%;
}

/* Formats: Rectangle (300x250 Medium Rectangle) */
.ad-slot-rectangle {
  min-height: 250px;
  height: 250px;
  width: 300px;
  max-width: 100%;
}

/* Strict Button Distance Policy: >= 200px from any action button */
/* Slot 1: Between Interactive Resume Optimization banner (with Open Editor button) and 6 Core Dimensions */
.ad-slot-placeholder-center-optimization,
.ad-slot-center-banner {
  margin-top: 205px !important;
  margin-bottom: 1.5rem !important;
}

/* Slot 2: Bottom of center column, after Section Breakdown */
.ad-slot-placeholder-center-bottom,
.ad-slot-bottom-banner {
  margin-top: 2.5rem !important;
  margin-bottom: 2rem !important;
}

/* Slot 3: Left column below Analyse Resume button (and watermark) */
.ad-slot-placeholder-left,
.ad-left-rectangle {
  margin-top: 205px !important;
  margin-bottom: 1.5rem !important;
  margin-left: auto;
  margin-right: auto;
}

@media print {
  .ad-slot,
  .ad-slot-placeholder-wrap {
    display: none !important;
  }
}

