/* ============================================================================
   InternMatch — Student & Graduate Career Matching Design System
   Academic FYP Project — Universiti Tenaga Nasional (UNITEN SW01084153)
   Visual Identity: "Scholastic Launchpad" (Collegiate Slate, Future Iris, Mastery Emerald, Growth Amber)
   ============================================================================ */

@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Outfit:wght@400;500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
  /* -------------------------------------------------------------------------
     Core Semantic Palette ("Scholastic Launchpad" - 6-Color System)
     ------------------------------------------------------------------------- */
  --im-canvas:            #0c121e;   /* Deep Collegiate Slate ("Night Study" Canvas) */
  --im-surface:           #141c2d;   /* Scholastic Card Deck - tactile container base */
  --im-surface-elevated:  #1b263b;   /* Elevated Deck - hover states, modals, popovers */
  --im-surface-subtle:    #0f1523;   /* Inset Deck - inputs, dropdowns, table heads */
  
  --im-accent:            #6366f1;   /* Future Iris - student ambition & career transition */
  --im-accent-hover:      #4f46e5;   /* Electric Iris Hover */
  --im-accent-light:      rgba(99, 102, 241, 0.12);
  --im-accent-glow:       rgba(99, 102, 241, 0.28);
  
  --im-match:             #10b981;   /* Mastery Emerald - possessed skills & verified readiness */
  --im-match-text:        #34d399;   /* Luminous Mint for high-contrast readability */
  --im-match-bg:          rgba(16, 185, 129, 0.12);
  --im-match-line:        rgba(16, 185, 129, 0.32);
  
  --im-gap:               #f59e0b;   /* Growth Amber - constructive opportunity bridge / skills to acquire */
  --im-gap-text:          #fbbf24;   /* Luminous Ochre for high-contrast readability */
  --im-gap-bg:            rgba(245, 158, 11, 0.12);
  --im-gap-line:          rgba(245, 158, 11, 0.32);
  
  --im-danger:            #ef4444;   /* True Red - strictly for errors, warnings & destructive actions */
  --im-danger-bg:         rgba(239, 68, 68, 0.12);
  --im-danger-line:       rgba(239, 68, 68, 0.32);
  
  --im-border:            #222f47;   /* Architectural line - structured separation */
  --im-border-subtle:     rgba(255, 255, 255, 0.08); /* Specular highlight line */
  --im-border-focus:      #6366f1;   /* High-contrast accessible focus ring */
  
  --im-text-main:         #f8fafc;   /* Paper Ivory - crisp readability */
  --im-text-muted:        #94a3b8;   /* Scholastic Slate - secondary descriptions */
  --im-text-dim:          #64748b;   /* Deep Slate - captions, timestamps, formula labels */

  /* Legacy & Backward-Compatible Token Aliases */
  --bg-app:        var(--im-canvas);
  --bg-sidebar:    #0f1523;
  --bg-card:       var(--im-surface);
  --bg-card-hover: var(--im-surface-elevated);
  --bg-input:      var(--im-surface-subtle);
  --bg-chip:       #182338;
  
  --line:          var(--im-border);
  --line-focus:    var(--im-border-focus);
  
  --text-main:     var(--im-text-main);
  --text-muted:    var(--im-text-muted);
  --text-dim:      var(--im-text-dim);
  
  --primary:       var(--im-accent);
  --primary-hover: var(--im-accent-hover);
  --primary-light: var(--im-accent-light);
  
  --matched:       var(--im-match);
  --matched-bg:    var(--im-match-bg);
  --matched-line:  var(--im-match-line);
  
  --missing:       var(--im-gap);
  --missing-bg:    var(--im-gap-bg);
  --missing-line:  var(--im-gap-line);
  
  --amber:         var(--im-gap);
  --amber-bg:      var(--im-gap-bg);
  
  --cyan:          #38bdf8;
  --cyan-bg:       rgba(56, 189, 248, 0.12);
  
  /* Typography System */
  --font-display:  'Outfit', system-ui, -apple-system, sans-serif;
  --font-sans:     'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-mono:     'JetBrains Mono', ui-monospace, monospace;
  
  /* Tactile Radii & Elevation Shadows */
  --radius-sm:     8px;
  --radius-md:     14px;
  --radius-lg:     20px;
  --radius-full:   9999px;
  
  --shadow-sm:     0 2px 6px rgba(0, 0, 0, 0.35);
  --shadow-md:     0 10px 24px -4px rgba(0, 0, 0, 0.45);
  --shadow-lg:     0 20px 42px -6px rgba(0, 0, 0, 0.6), 0 0 1px 1px rgba(255, 255, 255, 0.06);
}

/* ---------------------------------------------------------------------------
   Global Resets & Foundation
--------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  color-scheme: dark;
}

body {
  font-family: var(--font-sans);
  background-color: var(--im-canvas);
  color: var(--im-text-main);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  letter-spacing: -0.01em;
}

/* High-contrast, accessible focus ring */
:focus-visible {
  outline: 2px solid var(--im-accent);
  outline-offset: 2px;
}

a {
  color: #818cf8;
  text-decoration: none;
  transition: color 0.15s ease, text-decoration-color 0.15s ease;
}
a:hover {
  color: #a5b4fc;
  text-decoration: underline;
}

/* ---------------------------------------------------------------------------
   Typography Hierarchy
--------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--im-text-main);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
}

h1 { font-size: 2.2rem; font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: 1.55rem; font-weight: 700; }
h3 { font-size: 1.2rem;  font-weight: 700; }
h4 { font-size: 0.98rem; font-weight: 600; }

p {
  color: var(--im-text-muted);
  font-size: 0.925rem;
  line-height: 1.6;
}

/* ---------------------------------------------------------------------------
   Layout: App Shell with Sidebar Navigation
--------------------------------------------------------------------------- */
.app-container {
  display: flex;
  min-height: 100vh;
  background-color: var(--im-canvas);
}

/* Sidebar */
.app-sidebar {
  width: 260px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--im-border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  padding: 24px 18px;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.35);
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--im-text-main);
  padding: 0 4px 20px 4px;
  border-bottom: 1px solid var(--im-border);
  letter-spacing: -0.02em;
}

.brand-logo .badge-logo {
  background: linear-gradient(135deg, #6366f1 0%, #10b981 100%);
  color: #fff;
  padding: 5px 9px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.4);
}

.nav-menu {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  color: var(--im-text-muted);
  font-weight: 500;
  font-size: 0.925rem;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid transparent;
}

.nav-link:hover {
  background-color: var(--im-surface);
  color: var(--im-text-main);
  text-decoration: none;
  border-color: var(--im-border-subtle);
  transform: translateX(2px);
}

.nav-link.active {
  background: linear-gradient(90deg, rgba(99, 102, 241, 0.16) 0%, rgba(99, 102, 241, 0.04) 100%);
  color: #a5b4fc;
  font-weight: 600;
  border: 1px solid rgba(99, 102, 241, 0.35);
  border-left: 3px solid var(--im-accent);
}

.sidebar-user {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--im-border);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sidebar-user .user-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--im-text-main);
}
.sidebar-user .user-id {
  font-size: 0.78rem;
  color: var(--im-text-dim);
  font-family: var(--font-mono);
}

/* Main Content Area */
.app-main {
  margin-left: 260px;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background-color: var(--im-canvas);
}

.main-header {
  height: 72px;
  background-color: rgba(12, 18, 30, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--im-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 36px;
  position: sticky;
  top: 0;
  z-index: 90;
}

.main-content {
  padding: 36px;
  max-width: 1180px;
  width: 100%;
}

/* ---------------------------------------------------------------------------
   Buttons
--------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.885rem;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.btn:active { transform: scale(0.98); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }

.btn-primary {
  background: linear-gradient(135deg, #6366f1 0%, #4f46e5 100%);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(99, 102, 241, 0.35);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #4f46e5 0%, #4338ca 100%);
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.5);
  text-decoration: none;
  color: #fff;
}

.btn-secondary {
  background-color: var(--im-surface-elevated);
  border: 1px solid var(--im-border);
  color: #e2e8f0;
}
.btn-secondary:hover {
  background-color: #243149;
  border-color: #3b4e72;
  color: #ffffff;
  text-decoration: none;
}

.btn-outline {
  background-color: transparent;
  border: 1px solid var(--im-border);
  color: var(--im-text-main);
}
.btn-outline:hover {
  background-color: var(--im-surface);
  border-color: #475a7c;
  text-decoration: none;
  color: #fff;
}

.btn-success {
  background-color: var(--im-match);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.35);
}
.btn-success:hover {
  background-color: #059669;
  text-decoration: none;
}

.btn-danger {
  background-color: var(--im-danger);
  color: #ffffff;
}
.btn-danger:hover {
  background-color: #dc2626;
  text-decoration: none;
}

/* ---------------------------------------------------------------------------
   Form Controls
--------------------------------------------------------------------------- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 20px;
}

.form-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--im-text-muted);
  letter-spacing: 0.01em;
}

.form-control {
  width: 100%;
  padding: 11px 15px;
  background-color: var(--im-surface-subtle);
  border: 1px solid var(--im-border);
  border-radius: var(--radius-sm);
  color: var(--im-text-main);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease;
}

.form-control:focus {
  outline: none;
  background-color: #111827;
  border-color: var(--im-accent);
  box-shadow: 0 0 0 3px var(--im-accent-light);
}

select.form-control {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%2394a3b8' viewBox='0 0 16 16'%3E%3Cpath d='M8 11.5l-5-5h10l-5 5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 38px;
}

/* ---------------------------------------------------------------------------
   Cards & Panels
--------------------------------------------------------------------------- */
.card {
  background-color: var(--im-surface);
  border: 1px solid var(--im-border);
  border-top: 1px solid var(--im-border-subtle);
  border-radius: var(--radius-md);
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: var(--shadow-sm);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--im-border);
}

/* ---------------------------------------------------------------------------
   Profile Strength Progression Deck (Dashboard & Profile)
   Milestone-based student readiness meter
--------------------------------------------------------------------------- */
.strength-card {
  background: linear-gradient(135deg, #151e30 0%, #111726 100%);
  border: 1px solid #25334d;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 24px 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.strength-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(180deg, #6366f1 0%, #10b981 100%);
}

.strength-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}

.strength-label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--im-text-main);
  display: flex;
  align-items: center;
  gap: 10px;
}

.strength-value {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--im-match-text);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid var(--im-match-line);
  padding: 3px 12px;
  border-radius: var(--radius-full);
}

.strength-bar-bg {
  height: 11px;
  background-color: #0c121e;
  border: 1px solid #1e2b40;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin-bottom: 12px;
  padding: 1px;
}

.strength-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1 0%, #10b981 100%);
  border-radius: var(--radius-full);
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.4);
}

.strength-hint {
  font-size: 0.88rem;
  color: var(--im-text-muted);
  line-height: 1.5;
}

/* ---------------------------------------------------------------------------
   Job Cards (Dashboard & Search Results)
--------------------------------------------------------------------------- */
.job-card {
  background-color: var(--im-surface);
  border: 1px solid var(--im-border);
  border-top: 1px solid var(--im-border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.job-card:hover {
  transform: translateY(-3px);
  border-color: #3e5275;
  box-shadow: var(--shadow-md), 0 0 18px rgba(99, 102, 241, 0.12);
}

.job-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 12px;
}

.job-title {
  font-family: var(--font-display);
  font-size: 1.22rem;
  font-weight: 700;
  color: var(--im-text-main);
  line-height: 1.3;
  margin-bottom: 4px;
}

.job-company {
  font-size: 0.92rem;
  color: #94a3b8;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 6px;
}

.job-meta-row {
  display: flex;
  gap: 18px;
  font-size: 0.85rem;
  color: var(--im-text-muted);
  margin: 14px 0 16px 0;
  flex-wrap: wrap;
  align-items: center;
}

/* Tiered Contextual Score Badges */
.score-badge {
  display: inline-block;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  background: rgba(99, 102, 241, 0.14);
  border: 1px solid rgba(99, 102, 241, 0.35);
  color: #a5b4fc;
  white-space: normal;
  overflow-wrap: anywhere;
  max-width: 100%;
}

/* Tier High: Emerald Verified Fit (>= 80%) */
.score-badge[data-tier="high"],
.score-badge.tier-high {
  background: var(--im-match-bg);
  border-color: var(--im-match-line);
  color: var(--im-match-text);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.18);
}

/* Tier Mid: Amber Growth Fit (60% - 79%) */
.score-badge[data-tier="mid"],
.score-badge.tier-mid {
  background: var(--im-gap-bg);
  border-color: var(--im-gap-line);
  color: var(--im-gap-text);
}

/* ---------------------------------------------------------------------------
   Tags & Skill Chips
--------------------------------------------------------------------------- */
.tag-container {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}

.tag-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: #182338;
  border: 1px solid #28374d;
  color: #e2e8f0;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 500;
  transition: all 0.15s ease;
}

.tag-chip:hover {
  border-color: #3e5275;
}

/* Possessed / Matched Skill: Mint Emerald */
.tag-chip--matched {
  background-color: rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}

/* Missing Skill / Gap: Warm Ochre (Opportunity Bridge) */
.tag-chip--missing {
  background-color: rgba(245, 158, 11, 0.12);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fbbf24;
}

.tag-remove {
  cursor: pointer;
  color: var(--im-text-dim);
  font-weight: bold;
  padding-left: 2px;
}
.tag-remove:hover { color: #f87171; }

/* ---------------------------------------------------------------------------
   Skill Alignment & Analysis View (skill-analysis.html)
   The Core Product Screen: Makes "What you have vs. what you need" immediate
--------------------------------------------------------------------------- */
.analysis-score-container {
  text-align: center;
  padding: 38px 28px;
  background: linear-gradient(180deg, #151e30 0%, #101624 100%);
  border: 1px solid var(--im-border);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  margin-bottom: 28px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.analysis-score-container::after {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, #10b981, transparent);
}

.big-score-circle {
  width: min(100%, 420px);
  min-height: 126px;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  border: 4px solid var(--im-accent);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(12, 18, 30, 0.7) 70%);
  box-shadow: 0 0 24px rgba(99, 102, 241, 0.28);
  position: relative;
}

.big-score-number {
  font-family: var(--font-mono);
  font-size: 2.1rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.big-score-label {
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 600;
  color: #a5b4fc;
  letter-spacing: 0.04em;
  margin-top: 5px;
}

.analysis-summary-text {
  font-size: 1.05rem;
  color: #e2e8f0;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Academic Explainability Formula Bar */
.formula-breakdown-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--im-text-dim);
}

.formula-tag {
  background: var(--im-surface-subtle);
  border: 1px solid var(--im-border);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--im-text-muted);
}

/* Split Comparison Board */
.alignment-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 28px;
}
@media (max-width: 768px) {
  .alignment-grid { grid-template-columns: 1fr; }
}

.alignment-column-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.alignment-column-card--matched {
  background: linear-gradient(180deg, rgba(16, 185, 129, 0.06) 0%, var(--im-surface) 35%);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-top: 3px solid var(--im-match);
}

.alignment-column-card--missing {
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.06) 0%, var(--im-surface) 35%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-top: 3px solid var(--im-gap);
}

.column-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--im-border);
}

.column-legend-pill {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.legend-matched {
  background: rgba(16, 185, 129, 0.15);
  color: var(--im-match-text);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.legend-missing {
  background: rgba(245, 158, 11, 0.15);
  color: var(--im-gap-text);
  border: 1px solid rgba(245, 158, 11, 0.3);
}

/* Guidance Section: Actionable Learning Pathways */
.guidance-box {
  background-color: #111726;
  border: 1px solid #202b3e;
  border-left: 4px solid var(--im-gap);
  border-radius: var(--radius-md);
  padding: 22px;
  margin-bottom: 18px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.guidance-box:hover {
  border-color: #2e3e58;
  border-left-color: #f59e0b;
  transform: translateX(2px);
}

.guidance-item {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #1c2637;
}
.guidance-item:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.guidance-skill-title {
  font-family: var(--font-display);
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 6px;
  font-size: 1.02rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ---------------------------------------------------------------------------
   Search Layout with Filters Sidebar
--------------------------------------------------------------------------- */
.search-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  gap: 28px;
}
@media (max-width: 860px) {
  .search-layout { grid-template-columns: 1fr; }
}

.filters-panel {
  background-color: var(--im-surface);
  border: 1px solid var(--im-border);
  border-top: 1px solid var(--im-border-subtle);
  border-radius: var(--radius-md);
  padding: 24px;
  height: fit-content;
  box-shadow: var(--shadow-sm);
}

.filter-section {
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--im-border);
}
.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-title {
  font-family: var(--font-display);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--im-text-main);
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.filter-checkbox-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.885rem;
  color: var(--im-text-muted);
  cursor: pointer;
  transition: color 0.15s ease;
}
.filter-checkbox-label:hover {
  color: var(--im-text-main);
}
.filter-checkbox-label input[type="checkbox"] {
  accent-color: var(--im-accent);
  width: 16px;
  height: 16px;
  border-radius: 4px;
}

/* ---------------------------------------------------------------------------
   Admin Tables
--------------------------------------------------------------------------- */
.data-table-container {
  overflow-x: auto;
  border: 1px solid var(--im-border);
  border-radius: var(--radius-md);
  background-color: var(--im-surface);
  box-shadow: var(--shadow-sm);
}

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

.data-table th {
  background-color: #0f1523;
  color: var(--im-text-muted);
  font-family: var(--font-display);
  font-weight: 600;
  padding: 14px 18px;
  border-bottom: 1px solid var(--im-border);
}

.data-table td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--im-border);
  color: var(--im-text-main);
}
.data-table tr:last-child td {
  border-bottom: none;
}
.data-table tr:hover td {
  background-color: rgba(255, 255, 255, 0.02);
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-family: var(--font-mono);
  font-weight: 700;
}
.status-badge--active {
  background-color: var(--im-match-bg);
  color: var(--im-match-text);
  border: 1px solid var(--im-match-line);
}
.status-badge--inactive, .status-badge--closed {
  background-color: var(--im-gap-bg);
  color: var(--im-gap-text);
  border: 1px solid var(--im-gap-line);
}

/* ---------------------------------------------------------------------------
   Modals & Alerts
--------------------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(6, 9, 15, 0.84);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.modal-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.modal-box {
  background-color: var(--im-surface-elevated);
  border: 1px solid #2e3e58;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  max-width: 620px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 32px;
  box-shadow: var(--shadow-lg);
}

.alert-toast {
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.89rem;
  margin-bottom: 20px;
  display: none;
  line-height: 1.5;
}
.alert-toast.is-visible { display: block; }

.alert-toast--success {
  background-color: var(--im-match-bg);
  border: 1px solid var(--im-match-line);
  color: var(--im-match-text);
}
.alert-toast--error {
  background-color: var(--im-danger-bg);
  border: 1px solid var(--im-danger-line);
  color: #f87171;
}
.alert-toast--info {
  background-color: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.4);
  color: #a5b4fc;
}

/* ---------------------------------------------------------------------------
   Responsive Mobile Navigation
--------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .app-sidebar {
    width: 100%;
    height: auto;
    position: relative;
    border-right: none;
    border-bottom: 1px solid var(--im-border);
    padding: 16px;
  }
  .app-main {
    margin-left: 0;
  }
  .app-container {
    flex-direction: column;
  }
  .main-header {
    padding: 0 20px;
    height: 64px;
  }
  .main-content {
    padding: 24px 16px;
  }
}

.saved-job-actions { display:flex; gap:8px; flex-wrap:wrap; margin-top:12px; }
.saved-job-dialog { max-width:640px; width:calc(100% - 32px); max-height:85vh; overflow:auto; margin:auto; color:var(--text-main); }
.saved-job-dialog::backdrop { background:rgba(0,0,0,.65); }
.saved-job-dialog p { white-space:pre-wrap; margin:16px 0; }
.saved-job-dialog button { margin:8px 8px 0 0; }
.analysis-header-actions { display:flex; align-items:center; justify-content:flex-end; gap:12px; flex-wrap:wrap; flex-shrink:0; }
.analysis-header-actions .btn { padding:9px 24px; }
@media (max-width:640px) {
  .analysis-header-actions { width:100%; justify-content:flex-start; }
}
