@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Playfair+Display:wght@700;800&display=swap');

:root {
  --navy: #0F1A3C;
  --navy-light: #1A2A5E;
  --teal: #00C9B1;
  --teal-dark: #00A898;
  --coral: #FF6B6B;
  --coral-dark: #E85555;
  --accent-blue: #4A9FFF;
  --accent-purple: #8A63D2;
  --bg-light: #F8F9FC;
  --text-dark: #1A1A2E;
  --text-muted: #6B7280;
  --text-light: #94A3B8;
  --border-light: #E5E7EB;
  --border-card: #E5E7EB;
  --shadow-sm: 0 1px 3px rgba(15,26,60,0.08);
  --shadow-md: 0 4px 14px rgba(15,26,60,0.1);
  --shadow-lg: 0 8px 30px rgba(15,26,60,0.12);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

h1, h2, h3, h4, h5, .display-heading {
  font-family: 'Playfair Display', serif;
  font-weight: 800;
  letter-spacing: -0.02em;
}

main { flex: 1; }

/* ===== Navbar ===== */
.navbar-s2r {
  background: rgba(15,26,60,0.97) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 0.75rem 0;
}

.navbar-s2r .navbar-brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
}

.navbar-s2r .navbar-brand i { color: var(--teal); }

.navbar-s2r .nav-link {
  color: rgba(255,255,255,0.75) !important;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 0.5rem 1rem !important;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.navbar-s2r .nav-link:hover,
.navbar-s2r .nav-link.active {
  color: #fff !important;
  background: rgba(255,255,255,0.08);
}

.navbar-s2r .nav-link i { margin-right: 6px; }

.btn-teal {
  background: var(--teal) !important;
  border: none;
  color: var(--navy) !important;
  font-weight: 700;
  border-radius: 50px !important;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s;
}

.btn-teal:hover {
  background: var(--teal-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,201,177,0.35);
}

.btn-coral {
  background: var(--coral) !important;
  border: none;
  color: #fff !important;
  font-weight: 700;
  border-radius: 50px !important;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s;
}

.btn-coral:hover {
  background: var(--coral-dark) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255,107,107,0.35);
}

.btn-outline-teal {
  background: transparent;
  border: 2px solid var(--teal);
  color: var(--teal) !important;
  font-weight: 600;
  border-radius: 50px !important;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s;
}

.btn-outline-teal:hover {
  background: var(--teal);
  color: var(--navy) !important;
  transform: translateY(-1px);
}

.btn-outline-light-custom {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.4);
  color: #fff;
  font-weight: 600;
  border-radius: 50px !important;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s;
}

.btn-outline-light-custom:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  color: #fff;
}

/* ===== Hero ===== */
.hero {
  background: linear-gradient(135deg, var(--navy) 0%, #162A5E 50%, #1E3A7A 100%);
  color: #fff;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(0,201,177,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255,107,107,0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.15;
  position: relative;
  z-index: 1;
  color: #fff;
}

.hero .lead {
  font-size: 1.15rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-block;
  background: rgba(0,201,177,0.15);
  border: 1px solid rgba(0,201,177,0.3);
  color: var(--teal);
  padding: 6px 18px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

/* ===== Cards ===== */
.card-s2r {
  background: #fff;
  border: 1px solid var(--border-card) !important;
  border-radius: var(--radius-md) !important;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.card-s2r:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.card-s2r .card-body { padding: 2rem; }

.card-s2r .icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  font-size: 1.5rem;
}

.icon-circle-teal { background: rgba(0,201,177,0.12); color: var(--teal); }
.icon-circle-coral { background: rgba(255,107,107,0.12); color: var(--coral); }
.icon-circle-blue { background: rgba(74,159,255,0.12); color: var(--accent-blue); }
.icon-circle-purple { background: rgba(138,99,210,0.12); color: var(--accent-purple); }

/* ===== Analysis Cards ===== */
.analysis-card {
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}

.analysis-card h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ===== Skill Badges ===== */
.skill-badge {
  display: inline-block;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  margin: 3px 4px;
}

.skill-found {
  background: rgba(0,201,177,0.1);
  color: #007B6E;
  border: 1px solid rgba(0,201,177,0.2);
}

.skill-missing {
  background: rgba(255,107,107,0.1);
  color: #B33A3A;
  border: 1px solid rgba(255,107,107,0.2);
}

/* ===== Status Badges ===== */
.badge-current {
  background: var(--navy) !important;
  color: #fff !important;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
}

.badge-target {
  background: rgba(0,201,177,0.12) !important;
  color: var(--teal-dark) !important;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 50px;
  font-size: 0.8rem;
  border: 1px solid rgba(0,201,177,0.25);
}

/* ===== Drop Zone ===== */
#dropZone {
  border: 2px dashed #D1D5DB;
  border-radius: var(--radius-md);
  padding: 50px 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: rgba(0,201,177,0.03);
}

#dropZone:hover,
#dropZone.dragover {
  border-color: var(--teal);
  background: rgba(0,201,177,0.06);
}

#dropZone i { font-size: 2.5rem; color: var(--teal); }

/* ===== Loading ===== */
.loading-spinner { display: none; }
.loading-spinner.active { display: block; }

/* ===== Gap Analysis Cards (CareerPath style) ===== */
.gap-status-badge {
  display: inline-block;
  padding: 3px 12px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.gap-status-badge.bg-teal {
  background: rgba(0,201,177,0.12);
  color: #007B6E;
  border: 1px solid rgba(0,201,177,0.2);
}

.gap-status-badge.bg-yellow {
  background: rgba(233,171,0,0.12);
  color: #8A6D00;
  border: 1px solid rgba(233,171,0,0.2);
}

.gap-status-badge.bg-coral {
  background: rgba(255,107,107,0.12);
  color: #B33A3A;
  border: 1px solid rgba(255,107,107,0.2);
}

.gap-progress-bar {
  height: 8px;
  background: #E5E7EB;
  border-radius: 50px;
  position: relative;
  overflow: visible;
}

.gap-progress-fill {
  height: 100%;
  border-radius: 50px;
  transition: width 0.6s ease;
  position: absolute;
  left: 0;
  top: 0;
}

.gap-progress-marker {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 14px;
  background: #6B7280;
  border-radius: 2px;
  z-index: 2;
}

.gap-risk-box {
  background: #F9FAFB;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 10px;
  line-height: 1.5;
}

.gap-risk-icon {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #9CA3AF;
  flex-shrink: 0;
  margin-top: 3px;
  position: relative;
}

.gap-risk-icon::after {
  content: '!';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-size: 10px;
  font-weight: 700;
  color: #9CA3AF;
  line-height: 1;
}

.gap-fix-box {
  background: rgba(74,159,255,0.06);
  border: 1px solid rgba(74,159,255,0.12);
  border-radius: 8px;
  padding: 12px;
}

.gap-fix-box p { font-size: 0.82rem; color: var(--text-muted); }

/* ===== Progress Bar ===== */
.score-bar {
  height: 8px;
  border-radius: 50px;
  background: #E5E7EB;
  overflow: hidden;
}

.score-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--teal), #00E0C5);
  transition: width 0.8s ease;
}

/* ===== Tables ===== */
.table-s2r { margin-bottom: 0; }

.table-s2r thead th {
  background: var(--bg-light);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 2px solid var(--border-light);
  padding: 0.85rem 1rem;
}

.table-s2r tbody td {
  padding: 0.85rem 1rem;
  vertical-align: middle;
  border-color: var(--border-light);
}

.table-s2r tbody tr:hover { background: rgba(0,201,177,0.03); }

/* ===== Footer ===== */
.footer-s2r {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(255,255,255,0.06);
  margin-top: auto;
}

.footer-s2r .brand {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
}

.footer-s2r a { color: rgba(255,255,255,0.6); text-decoration: none; }
.footer-s2r a:hover { color: var(--teal); }

/* ===== Forms ===== */
.form-s2r .form-control,
.form-s2r .form-control-lg {
  border: 2px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  transition: all 0.2s;
}

.form-s2r .form-control:focus,
.form-s2r .form-control-lg:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0,201,177,0.12);
}

/* ===== Page Header ===== */
.page-header {
  margin-bottom: 2rem;
}

.page-header h4 {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 800;
}

/* ===== Back Link ===== */
.back-link {
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
}

.back-link:hover { color: var(--teal); }

/* ===== Learning Plan ===== */
.plan-milestone {
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  position: relative;
}

.plan-milestone:hover { box-shadow: var(--shadow-md); }

.plan-milestone .step-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  margin-right: 12px;
  flex-shrink: 0;
}

.plan-milestone h5 {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
}

.plan-milestone .timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(0,201,177,0.1);
  color: var(--teal-dark);
  padding: 4px 12px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}

.plan-resource-card {
  background: #F8F9FC;
  border: 1px solid var(--border-light);
  border-radius: 10px;
  padding: 12px;
  height: 100%;
  transition: all 0.2s;
}

.plan-resource-card:hover {
  border-color: var(--teal);
  box-shadow: var(--shadow-sm);
}

.plan-resource-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.9rem;
}

.plan-resource-type {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  background: rgba(0,201,177,0.1);
  color: var(--teal-dark);
}

/* ===== Pagination (dashboard) ===== */
.pagination-s2r .page-link {
  border: 1px solid var(--border-card);
  color: var(--navy);
  font-size: 0.85rem;
  padding: 0.4rem 0.8rem;
  border-radius: var(--radius-sm);
  margin: 0 2px;
}

.pagination-s2r .page-link:hover {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.pagination-s2r .page-item.active .page-link {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

/* ===== Signal Score Gauge (CareerPath style) ===== */
.signal-score-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
}

.signal-score-svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.signal-ring-bg {
  fill: none;
  stroke: #E5E7EB;
  stroke-width: 10;
}

.signal-ring-fill {
  fill: none;
  stroke: var(--teal);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 1.8s ease-out;
}

.signal-ring-fill.ring-amber { stroke: #FFB347; }
.signal-ring-fill.ring-coral { stroke: var(--coral); }

.signal-score-value {
  font-family: 'Playfair Display', serif;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
  color: var(--teal);
}
.signal-score-value.val-amber { color: #FFB347; }
.signal-score-value.val-coral { color: var(--coral); }

.signal-score-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 4px;
}

.readiness-badge {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.readiness-badge.strong { background: rgba(0,201,177,0.12); color: #007B6E; border: 1px solid rgba(0,201,177,0.2); }
.readiness-badge.moderate { background: rgba(255,179,71,0.12); color: #8A6D00; border: 1px solid rgba(255,179,71,0.2); }
.readiness-badge.weak { background: rgba(255,107,107,0.12); color: #B33A3A; border: 1px solid rgba(255,107,107,0.2); }

/* ===== Score Cards (4-metric row) ===== */
.score-card-s2r {
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.25s ease;
}
.score-card-s2r:hover { box-shadow: var(--shadow-md); }

.score-card-s2r .score-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.6rem;
  font-size: 1.2rem;
}
.score-card-s2r .score-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
  font-weight: 800;
  line-height: 1.2;
}
.score-card-s2r .score-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ===== Executive Verdict ===== */
.executive-verdict {
  background: #fff;
  border-left: 4px solid var(--accent-blue);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow-sm);
}
.executive-verdict p {
  font-size: 0.95rem;
  color: var(--text-dark);
  margin-bottom: 0;
  line-height: 1.7;
}

/* ===== Radar Chart Container ===== */
.radar-chart-wrap {
  max-width: 380px;
  margin: 0 auto;
  position: relative;
}
.radar-chart-wrap canvas {
  width: 100% !important;
  height: auto !important;
}

/* ===== Breadcrumb ===== */
.breadcrumb-s2r {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}
.breadcrumb-s2r a {
  color: var(--text-muted);
  text-decoration: none;
}
.breadcrumb-s2r a:hover { color: var(--teal); }
.breadcrumb-s2r .separator {
  margin: 0 8px;
  color: var(--text-light);
}
.breadcrumb-s2r .current {
  color: var(--navy);
  font-weight: 700;
}

/* ===== Pricing Badges ===== */
.badge-ai {
  display: inline-block;
  background: var(--teal);
  color: var(--navy);
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.btn-navy {
  background: var(--navy) !important;
  border: none;
  color: #fff !important;
  font-weight: 700;
  border-radius: 50px !important;
  padding: 0.5rem 1.5rem;
  transition: all 0.2s;
}

.btn-navy:hover {
  background: var(--navy-light) !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15,26,60,0.3);
}

/* ===== Role Match Cards (results.php revamp) ===== */
.role-match-card {
  background: #fff;
  border: 1px solid var(--border-card);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
  height: 100%;
}

.role-match-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.role-match-title {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 0;
  color: var(--navy);
}

.match-pct-badge {
  display: inline-block;
  background: rgba(0,201,177,0.12);
  color: #007B6E;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.match-bar {
  height: 6px;
  background: #E5E7EB;
  border-radius: 50px;
  overflow: hidden;
}

.match-bar-fill {
  height: 100%;
  border-radius: 50px;
  background: linear-gradient(90deg, var(--teal), #00E0C5);
  transition: width 0.8s ease;
}

.demand-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 50px;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.demand-high {
  background: rgba(0,201,177,0.12);
  color: #007B6E;
  border: 1px solid rgba(0,201,177,0.2);
}

.demand-med {
  background: rgba(255,179,71,0.12);
  color: #8A6D00;
  border: 1px solid rgba(255,179,71,0.2);
}

.demand-low {
  background: rgba(156,163,175,0.12);
  color: #6B7280;
  border: 1px solid rgba(156,163,175,0.2);
}

/* ===== Readiness Gauge ===== */
.readiness-gauge {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--teal) 0deg, #E5E7EB 0deg);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.readiness-gauge::before {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #fff;
}

.readiness-value {
  position: relative;
  z-index: 1;
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1;
}

.readiness-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}

/* ===== Locked Section ===== */
.locked-section {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-card);
}

.locked-content-preview {
  padding: 2rem;
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
  background: #F8F9FC;
}

.locked-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,26,60,0.85);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-lg);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .hero { padding: 60px 0 50px; }
  .hero h1 { font-size: 2rem; }
  .hero .lead { font-size: 1rem; }
}
