:root {
  --bg: #0f1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #1c2128;
  --card: rgba(22, 27, 34, 0.95);
  --card-hover: rgba(28, 33, 40, 0.98);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-hover: rgba(255, 255, 255, 0.12);
  --text: #e6edf3;
  --text-secondary: #8b949e;
  --muted: #7d8590;
  --accent: #58a6ff;
  --accent-hover: #79b8ff;
  --accent-2: #f0883e;
  --danger: #f85149;
  --danger-bg: rgba(248, 82, 73, 0.752);
  --success: #3fb950;
  --success-bg: rgba(63, 185, 80, 0.1);
  --warning: #d29922;
  --warning-bg: rgba(210, 153, 34, 0.1);
  --purple: #a371f7;
  --purple-bg: rgba(163, 113, 247, 0.1);
  --blue: #58a6ff;
  --blue-bg: rgba(88, 166, 255, 0.1);
  --bronze: #d97706;
  --silver: #9ca3af;
  --gold: #fbbf24;
  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --transition: 0.15s ease;
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica,
    Arial, sans-serif;
}

body[data-theme="light"] {
  --bg: #ffffff;
  --bg-secondary: #f6f8fa;
  --bg-tertiary: #eaeef2;
  --card: #ffffff;
  --card-hover: #f6f8fa;
  --card-border: rgba(0, 0, 0, 0.1);
  --card-border-hover: rgba(0, 0, 0, 0.15);
  --text: #1f2328;
  --text-secondary: #57606a;
  --muted: #656d76;
  --accent: #0969da;
  --accent-hover: #0550ae;
  --accent-2: #bf5700;
  --danger: #cf222e;
  --danger-bg: rgba(207, 34, 45, 0.576);
  --success: #1a7f37;
  --success-bg: rgba(26, 127, 55, 0.08);
  --warning: #9a6700;
  --warning-bg: rgba(154, 103, 0, 0.08);
  --purple: #8250df;
  --purple-bg: rgba(130, 80, 223, 0.08);
  --blue: #0969da;
  --blue-bg: rgba(9, 105, 218, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 14px;
}

body[data-theme="dark"] {
  background: var(--bg);
}

body[data-theme="light"] {
  background: var(--bg-secondary);
}

body[data-theme="light"] .logo-img {
  content: url('/static/cpass-logo.png');
}

body[data-theme="dark"] .logo-img {
  content: url('/static/cpass-logo-dark-mode.png');
}

.bg-veil {
  display: none;
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1400px, 96vw);
  margin: 0 auto;
}

.shell.shell--full {
  width: 100%;
  max-width: 100%;
  margin: 0;
}

/* Override shell width for header */
header.shell.header {
  width: 100%;
  max-width: 100%;
  padding: 0;
}

header.shell.header .nav,
header.shell.header .dashboard-nav {
  width: 100%;
  padding: 0 16px;
}

/* TVET Dashboard Layout */
.tvet-dashboard {
  display: block;
  min-height: calc(100vh - 70px);
}

.tvet-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--card-border);
  padding: 24px 16px;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 70px;
  left: 0;
  bottom: 0;
  width: 260px;
  overflow-y: auto;
  z-index: 100;
}

.tvet-main {
  margin-left: 260px;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 8px 24px;
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 24px;
}

.sidebar-logo {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.sidebar-title {
  display: flex;
  flex-direction: column;
}

.sidebar-name {
  font-weight: 600;
  font-size: 15px;
  color: var(--text);
}

.sidebar-subtitle {
  font-size: 12px;
  color: var(--muted);
}

.sidebar-menu {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.menu-section {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.menu-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  padding: 0 12px;
  margin-bottom: 8px;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all var(--transition);
}

.menu-item:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

.menu-item.active {
  background: var(--blue-bg);
  color: var(--accent);
}

.menu-item svg {
  flex-shrink: 0;
  opacity: 0.7;
}

.menu-item.active svg {
  opacity: 1;
}

.menu-badge {
  margin-left: auto;
  background: var(--accent);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
}

.sidebar-footer {
  padding-top: 16px;
  border-top: 1px solid var(--card-border);
  margin-top: auto;
}

.api-status {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: var(--success-bg);
  border-radius: var(--radius-md);
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.status-dot.active {
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

.status-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--success);
}

/* Main Content Area */
.tvet-main {
  padding: 32px 40px;
  background: var(--bg);
  min-height: 100%;
}

.logo-img {
  height: 32px;
}

header.shell.header .nav {
  width: 100%;
  justify-content: space-between;
}

.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 32px;
  flex-wrap: wrap;
}

.page-title h1 {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 8px;
  color: var(--text);
}

.page-subtitle {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}

.page-actions {
  display: flex;
  gap: 12px;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  transition: all var(--transition);
}

.stat-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-md);
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.stat-icon.blue {
  background: var(--blue-bg);
  color: var(--accent);
}

.stat-icon.purple {
  background: var(--purple-bg);
  color: var(--purple);
}

.stat-icon.amber {
  background: var(--warning-bg);
  color: var(--warning);
}

.stat-icon.green {
  background: var(--success-bg);
  color: var(--success);
}

.stat-content {
  flex: 1;
  min-width: 0;
}

.stat-value {
  display: block;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.stat-label {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.stat-trend {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 500;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.stat-trend.up {
  background: var(--success-bg);
  color: var(--success);
}

.stat-trend.down {
  background: var(--danger-bg);
  color: var(--danger);
}

.stat-trend.neutral {
  background: var(--bg-tertiary);
  color: var(--muted);
}

/* Dashboard Grid */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 24px;
}

/* Content Card */
.content-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

.card-header .card-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.card-header .card-actions .btn {
  white-space: nowrap;
}

.card-header h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0;
  color: var(--text);
}

.link-action {
  font-size: 13px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.link-action:hover {
  text-decoration: underline;
}

.badge {
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--muted);
}

/* Tier Badges */
.tier-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.tier-badge--gold {
  background: rgba(251, 191, 36, 0.15);
  color: var(--gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
}

.tier-badge--silver {
  background: rgba(156, 163, 175, 0.15);
  color: var(--silver);
  border: 1px solid rgba(156, 163, 175, 0.3);
}

.tier-badge--bronze {
  background: rgba(217, 119, 6, 0.15);
  color: var(--bronze);
  border: 1px solid rgba(217, 119, 6, 0.3);
}

/* Data Table */
.table-wrapper {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th {
  text-align: left;
  padding: 12px 24px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--card-border);
}

.data-table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--card-border);
  vertical-align: middle;
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table tr:hover td {
  background: var(--card-hover);
}

.cell-profile {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-avatar {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}

.profile-avatar.large {
  width: 48px;
  height: 48px;
  font-size: 16px;
}

.profile-info {
  display: flex;
  flex-direction: column;
}

.profile-id {
  font-weight: 500;
  color: var(--text);
}

.profile-id-small {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.profile-name {
  font-weight: 500;
  color: var(--text);
  font-size: 14px;
}

.profile-id-sub {
  font-size: 11px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.profile-avatar--pending {
  background: linear-gradient(135deg, var(--warning), var(--accent-2));
}

.badge--pending {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid rgba(154, 103, 0, 0.2);
}

.cert-type-cell {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
}

.cert-type-cell svg {
  color: var(--accent);
  flex-shrink: 0;
}

.cert-type-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cert-type-name {
  color: var(--text);
  font-weight: 500;
}

.cert-type-esco {
  font-size: 11px;
  color: var(--text-muted);
  font-family: monospace;
}

.applications-table-scroll {
  max-height: 66vh;
  overflow-y: auto;
}

.applications-table-scroll table {
  width: 100%;
}

.applications-table-scroll thead th {
  position: sticky;
  top: 0;
  background: var(--card);
  z-index: 1;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  text-transform: capitalize;
}

.status-badge.pending {
  background: var(--warning-bg);
  color: var(--warning);
}

.status-badge.approved,
.status-badge.issued {
  background: var(--success-bg);
  color: var(--success);
}

.status-badge.rejected {
  background: var(--danger-bg);
  color: var(--danger);
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.empty-state {
  text-align: center;
  color: var(--muted);
  padding: 32px;
}

.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  color: var(--muted);
}

.empty-state-card svg {
  margin-bottom: 16px;
  opacity: 0.5;
}

.empty-state-card h4 {
  margin: 0 0 8px;
  font-size: 16px;
  color: var(--text);
}

.empty-state-card p {
  margin: 0;
  font-size: 14px;
}

.empty-state-card.full-width {
  grid-column: 1 / -1;
}

/* Partner Dashboard Specific Styles */
.partner-dashboard {
  /* Inherits from tvet-dashboard */
}

.partner-dashboard .page-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--card-border);
}

.partner-dashboard .page-header .page-title h1 {
  font-size: 30px;
  letter-spacing: 0.2px;
}
.form-grid {
  gap: 1rem;
}
.partner-dashboard .content-card {
  margin-top: 1rem;
  border-radius: 18px;
  box-shadow: var(--shadow-sm);
  -webkit-border-radius: 18px;
  -moz-border-radius: 18px;
  -ms-border-radius: 18px;
  -o-border-radius: 18px;
}

.partner-overview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin: 8px 0 24px;
}

.overview-card {
  background: linear-gradient(160deg, rgba(88, 166, 255, 0.12), rgba(255, 255, 255, 0)),
    var(--card);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: 20px;
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overview-card--claims {
  background: linear-gradient(160deg, rgba(34, 197, 94, 0.12), rgba(255, 255, 255, 0)),
    var(--card);
  border-color: rgba(34, 197, 94, 0.2);
}

.overview-card--tasks {
  background: linear-gradient(160deg, rgba(251, 191, 36, 0.12), rgba(255, 255, 255, 0)),
    var(--card);
  border-color: rgba(251, 191, 36, 0.2);
}

.overview-card--evidence {
  background: linear-gradient(160deg, rgba(139, 92, 246, 0.12), rgba(255, 255, 255, 0)),
    var(--card);
  border-color: rgba(139, 92, 246, 0.2);
}

.overview-card-header {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.overview-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--muted);
  font-weight: 600;
}

.overview-meta {
  font-size: 12px;
  color: var(--text-secondary);
}

.overview-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}

.claims-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.claims-metric {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: 16px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.claims-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.claims-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.claims-bar {
  height: 10px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  overflow: hidden;
}

.claims-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, rgba(34, 197, 94, 0.9), rgba(34, 197, 94, 0.45));
  border-radius: 999px;
  transition: width 0.3s ease;
}

.claims-footnote {
  font-size: 12px;
  color: var(--muted);
}

/* Light mode overrides for partner overview cards */
body[data-theme="light"] .overview-card {
  background: linear-gradient(160deg, rgba(9, 105, 218, 0.08), rgba(9, 105, 218, 0.02)),
    var(--card);
  border: 1px solid rgba(9, 105, 218, 0.25);
  box-shadow: 0 2px 8px rgba(9, 105, 218, 0.08);
}

body[data-theme="light"] .overview-card--claims {
  background: linear-gradient(160deg, rgba(26, 127, 55, 0.1), rgba(26, 127, 55, 0.02)),
    var(--card);
  border-color: rgba(26, 127, 55, 0.3);
  box-shadow: 0 2px 8px rgba(26, 127, 55, 0.08);
}

body[data-theme="light"] .overview-card--tasks {
  background: linear-gradient(160deg, rgba(154, 103, 0, 0.1), rgba(154, 103, 0, 0.02)),
    var(--card);
  border-color: rgba(154, 103, 0, 0.3);
  box-shadow: 0 2px 8px rgba(154, 103, 0, 0.08);
}

body[data-theme="light"] .overview-card--evidence {
  background: linear-gradient(160deg, rgba(130, 80, 223, 0.1), rgba(130, 80, 223, 0.02)),
    var(--card);
  border-color: rgba(130, 80, 223, 0.3);
  box-shadow: 0 2px 8px rgba(130, 80, 223, 0.08);
}

body[data-theme="light"] .claims-bar {
  background: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .claims-fill {
  background: linear-gradient(90deg, rgba(26, 127, 55, 0.95), rgba(26, 127, 55, 0.6));
}

body[data-theme="light"] .claims-metric {
  background: var(--bg-tertiary);
  border-color: rgba(0, 0, 0, 0.08);
}

/* Light mode overrides for info cards */
body[data-theme="light"] .info-card {
  background: radial-gradient(circle at top left, rgba(9, 105, 218, 0.06), transparent 55%),
    var(--card);
  border: 1px solid rgba(9, 105, 218, 0.2);
  box-shadow: 0 2px 8px rgba(9, 105, 218, 0.06);
}

body[data-theme="light"] .info-card-icon {
  background: rgba(9, 105, 218, 0.1);
}

/* Light mode overrides for profile elements */
body[data-theme="light"] .profile-avatar {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .profile-avatar--pending {
  background: linear-gradient(135deg, #b45309, #d97706);
}

body[data-theme="light"] .badge--pending {
  background: rgba(154, 103, 0, 0.1);
  color: #92400e;
  border-color: rgba(154, 103, 0, 0.25);
}

/* Light mode tier badges */
body[data-theme="light"] .tier-badge--gold {
  background: rgba(251, 191, 36, 0.2);
  color: #b45309;
  border-color: rgba(251, 191, 36, 0.4);
}

body[data-theme="light"] .tier-badge--silver {
  background: rgba(107, 114, 128, 0.15);
  color: #4b5563;
  border-color: rgba(107, 114, 128, 0.3);
}

body[data-theme="light"] .tier-badge--bronze {
  background: rgba(217, 119, 6, 0.15);
  color: #b45309;
  border-color: rgba(217, 119, 6, 0.3);
}

body[data-theme="light"] .search-input-wrapper input {
  background: var(--card);
  border-color: rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .search-input-wrapper input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.1);
}

body[data-theme="light"] .profile-code {
  background: rgba(0, 0, 0, 0.04);
  color: var(--text-secondary);
}

body[data-theme="light"] .btn-copy-link {
  background: linear-gradient(135deg, rgba(130, 80, 223, 0.08), rgba(130, 80, 223, 0.03));
  border-color: rgba(130, 80, 223, 0.25);
  color: #7c3aed;
}

body[data-theme="light"] .btn-copy-link:hover {
  background: #7c3aed;
  border-color: #7c3aed;
  color: white;
}

body[data-theme="light"] .btn-copy-link.btn-copied {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
}

body[data-theme="light"] .btn-view-profile {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(22, 163, 74, 0.03));
  border-color: rgba(22, 163, 74, 0.25);
  color: #16a34a;
}

body[data-theme="light"] .btn-view-profile:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
}

/* Light mode overrides for Bulk Upload page */
body[data-theme="light"] .bulk-upload-intro {
  background: linear-gradient(
    135deg,
    rgba(9, 105, 218, 0.06) 0%,
    rgba(130, 80, 223, 0.06) 100%
  );
  border-color: rgba(9, 105, 218, 0.15);
  box-shadow: 0 2px 8px rgba(9, 105, 218, 0.05);
}

body[data-theme="light"] .bulk-upload-intro .step-icon-prepare {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.15), rgba(14, 165, 233, 0.08));
  border-color: rgba(14, 165, 233, 0.3);
  color: #0284c7;
}

body[data-theme="light"] .bulk-upload-intro .step-icon-upload {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.15), rgba(124, 58, 237, 0.08));
  border-color: rgba(124, 58, 237, 0.3);
  color: #7c3aed;
}

body[data-theme="light"] .bulk-upload-intro .step-icon-create {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.15), rgba(22, 163, 74, 0.08));
  border-color: rgba(22, 163, 74, 0.3);
  color: #16a34a;
}

body[data-theme="light"] .card-header-icon {
  background: linear-gradient(135deg, rgba(9, 105, 218, 0.1), rgba(9, 105, 218, 0.05));
  border-color: rgba(9, 105, 218, 0.2);
  color: #0969da;
}

body[data-theme="light"] .card-header-icon.format-icon {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
  border-color: rgba(124, 58, 237, 0.2);
  color: #7c3aed;
}

body[data-theme="light"] .card-header-icon.history-icon {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.12), rgba(202, 138, 4, 0.05));
  border-color: rgba(202, 138, 4, 0.25);
  color: #ca8a04;
}

body[data-theme="light"] .file-upload-zone {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .file-upload-zone:hover {
  border-color: #0969da;
  background: rgba(9, 105, 218, 0.04);
}

body[data-theme="light"] .file-upload-zone.dragover {
  border-color: #0969da;
  background: rgba(9, 105, 218, 0.08);
}

body[data-theme="light"] .file-upload-zone.has-file {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.04);
}

body[data-theme="light"] .file-upload-zone .upload-formats {
  background: rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .file-upload-zone .file-selected {
  background: rgba(22, 163, 74, 0.08);
}

body[data-theme="light"] .file-upload-zone .remove-file {
  background: rgba(220, 38, 38, 0.1);
}

body[data-theme="light"] .code-block-wrapper {
  border-color: rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

body[data-theme="light"] .code-header {
  background: rgba(0, 0, 0, 0.03);
}

body[data-theme="light"] .code-block {
  background: rgba(0, 0, 0, 0.02);
  color: #374151;
}

body[data-theme="light"] .copy-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #374151;
}

body[data-theme="light"] .copy-btn:hover {
  background: #0969da;
  border-color: #0969da;
  color: white;
}

body[data-theme="light"] .csv-column {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.08);
}

body[data-theme="light"] .csv-column:hover {
  background: rgba(9, 105, 218, 0.03);
  border-color: rgba(9, 105, 218, 0.25);
}

body[data-theme="light"] .required-badge {
  background: rgba(220, 38, 38, 0.1);
  color: #dc2626;
}

body[data-theme="light"] .optional-badge {
  background: rgba(0, 0, 0, 0.05);
  color: #6b7280;
}

body[data-theme="light"] .alert-info {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.08), rgba(14, 165, 233, 0.03));
  border-color: rgba(14, 165, 233, 0.25);
}

body[data-theme="light"] .alert-info svg {
  color: #0284c7;
}

body[data-theme="light"] .download-sample-btn {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(22, 163, 74, 0.03));
  border-color: rgba(22, 163, 74, 0.25);
  color: #16a34a;
}

body[data-theme="light"] .download-sample-btn:hover {
  background: #16a34a;
  border-color: #16a34a;
  color: white;
}

body[data-theme="light"] .upload-count {
  background: rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .bulk-format-help {
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.02) 0%, rgba(0, 0, 0, 0.04) 100%);
  border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .code-example {
  background: rgba(0, 0, 0, 0.02);
  border-color: rgba(0, 0, 0, 0.1);
  color: #374151;
}

body[data-theme="light"] .summary-stat {
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

body[data-theme="light"] .summary-stat.success {
  background: linear-gradient(180deg, var(--card) 0%, rgba(22, 163, 74, 0.08) 100%);
  border-color: rgba(22, 163, 74, 0.25);
}

body[data-theme="light"] .summary-stat.warning {
  background: linear-gradient(180deg, var(--card) 0%, rgba(202, 138, 4, 0.08) 100%);
  border-color: rgba(202, 138, 4, 0.25);
}

body[data-theme="light"] .summary-stat.success .summary-value {
  color: #16a34a;
}

body[data-theme="light"] .summary-stat.warning .summary-value {
  color: #ca8a04;
}

/* Light mode overrides for Skill Mapper page */
body[data-theme="light"] .skill-mapper-intro {
  background: linear-gradient(
    135deg,
    rgba(9, 105, 218, 0.05) 0%,
    rgba(124, 58, 237, 0.05) 50%,
    rgba(22, 163, 74, 0.05) 100%
  );
  border-color: rgba(9, 105, 218, 0.12);
  box-shadow: 0 2px 12px rgba(9, 105, 218, 0.06);
}

body[data-theme="light"] .skill-mapper-intro::before {
  background: linear-gradient(90deg, #0969da, #7c3aed, #16a34a);
}

body[data-theme="light"] .intro-step {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .step-icon {
  background: linear-gradient(135deg, rgba(9, 105, 218, 0.12), rgba(9, 105, 218, 0.06));
  color: #0969da;
  box-shadow: 0 4px 12px rgba(9, 105, 218, 0.15);
}

body[data-theme="light"] .step-icon.green {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0.06));
  color: #16a34a;
  box-shadow: 0 4px 12px rgba(22, 163, 74, 0.15);
}

body[data-theme="light"] .step-icon.purple {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(124, 58, 237, 0.06));
  color: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.15);
}

body[data-theme="light"] .section-toggle {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .toggle-btn {
  color: #6b7280;
}

body[data-theme="light"] .toggle-btn.is-active {
  background: #16a34a;
  color: white;
}

body[data-theme="light"] .upload-zone {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(9, 105, 218, 0.03) 100%);
  border-color: rgba(0, 0, 0, 0.15);
}

body[data-theme="light"] .upload-zone:hover,
body[data-theme="light"] .upload-zone.drag-over {
  border-color: #0969da;
  background: linear-gradient(180deg, rgba(9, 105, 218, 0.06) 0%, rgba(9, 105, 218, 0.1) 100%);
  box-shadow: 0 8px 32px rgba(9, 105, 218, 0.12);
}

body[data-theme="light"] .upload-zone.has-file {
  border-color: #16a34a;
  background: linear-gradient(180deg, rgba(22, 163, 74, 0.06) 0%, rgba(22, 163, 74, 0.1) 100%);
  box-shadow: 0 8px 32px rgba(22, 163, 74, 0.12);
}

body[data-theme="light"] .upload-icon {
  color: #0969da;
}

body[data-theme="light"] .skill-code.partner {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.2);
}

body[data-theme="light"] .skill-code.cpass {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.1), rgba(22, 163, 74, 0.05));
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.2);
}

body[data-theme="light"] .skill-code.unknown {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1), rgba(220, 38, 38, 0.05));
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.2);
}

body[data-theme="light"] .bulk-mapping-row {
  background: rgba(0, 0, 0, 0.02);
}

body[data-theme="light"] .bulk-mapping-row:hover {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .bulk-mapping-row.needs-review {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.06), rgba(202, 138, 4, 0.1));
  border-color: rgba(202, 138, 4, 0.2);
}

body[data-theme="light"] .bulk-arrow {
  color: #16a34a;
}

body[data-theme="light"] .bulk-confidence.high .confidence-pill {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.12), rgba(22, 163, 74, 0.06));
  color: #16a34a;
  border-color: rgba(22, 163, 74, 0.25);
}

body[data-theme="light"] .bulk-confidence.low .confidence-pill {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.12), rgba(202, 138, 4, 0.06));
  color: #ca8a04;
  border-color: rgba(202, 138, 4, 0.25);
}

body[data-theme="light"] .bulk-confidence.none .confidence-pill {
  background: rgba(0, 0, 0, 0.04);
  color: #6b7280;
  border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .bulk-actions {
  background: rgba(0, 0, 0, 0.02);
}

body[data-theme="light"] .group-header {
  background: rgba(0, 0, 0, 0.03);
}

body[data-theme="light"] .group-header.success {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.08), rgba(22, 163, 74, 0.12));
  border-bottom-color: rgba(22, 163, 74, 0.2);
}

body[data-theme="light"] .group-header.success svg {
  color: #16a34a;
  filter: drop-shadow(0 2px 4px rgba(22, 163, 74, 0.25));
}

body[data-theme="light"] .group-header.warning {
  background: linear-gradient(135deg, rgba(202, 138, 4, 0.08), rgba(202, 138, 4, 0.12));
  border-bottom-color: rgba(202, 138, 4, 0.2);
}

body[data-theme="light"] .group-header.warning svg {
  color: #ca8a04;
  filter: drop-shadow(0 2px 4px rgba(202, 138, 4, 0.25));
}

body[data-theme="light"] .group-header.neutral {
  background: rgba(0, 0, 0, 0.03);
}

body[data-theme="light"] .group-hint {
  background: var(--card);
  border-color: rgba(0, 0, 0, 0.1);
}

body[data-theme="light"] .card-badge {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(124, 58, 237, 0.05));
  color: #7c3aed;
  border-color: rgba(124, 58, 237, 0.2);
}

body[data-theme="light"] .card-badge svg {
  color: #7c3aed;
}

body[data-theme="light"] .bulk-import-card::after {
  background: radial-gradient(circle at top right, rgba(124, 58, 237, 0.04) 0%, transparent 70%);
}

body[data-theme="light"] .results-group {
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

body[data-theme="light"] .confidence-bar {
  background: rgba(0, 0, 0, 0.08);
}

.info-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 20px;
}

.info-card-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.6fr) minmax(220px, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.info-card {
  background: radial-gradient(circle at top left, rgba(88, 166, 255, 0.12), transparent 55%),
    var(--card);
  border: 1px solid rgba(88, 166, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
}

.info-card--split {
  flex-direction: column;
  border-color: var(--card-border);
}

.info-card-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: rgba(88, 166, 255, 0.12);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.info-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.info-card-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.info-card-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text);
}

.info-card-meta {
  font-size: 13px;
  color: var(--text-secondary);
}

.info-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.api-analytics-card .card-subtitle {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.endpoint-breakdown {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.endpoint-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.endpoint-header h4 {
  margin: 0;
  font-size: 16px;
}

.endpoint-note {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.data-table.compact th,
.data-table.compact td {
  padding: 10px 14px;
}

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

  .info-card-row {
    grid-template-columns: 1fr;
  }
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}

.platform-card {
  padding: 24px;
}

.platform-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}

.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  flex-shrink: 0;
}

.platform-info {
  flex: 1;
}

.platform-info h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.platform-stats {
  display: flex;
  gap: 32px;
  padding: 16px 0;
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
  margin-bottom: 16px;
}

.platform-stat {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.platform-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.platform-stat-label {
  font-size: 12px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.platform-api-key label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 8px;
}

.api-key-display {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.api-key-display code {
  flex: 1;
  font-size: 13px;
  color: var(--accent);
  word-break: break-all;
}

.api-key-section {
  padding: 24px;
}

.api-key-header {
  margin-bottom: 16px;
}

.api-key-header h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
}

.api-key-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  padding: 16px;
  flex-wrap: wrap;
}

.api-key-value {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 200px;
}

.api-key-value code {
  font-size: 14px;
  color: var(--accent);
  background: var(--bg-tertiary);
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  word-break: break-all;
}

.api-key-inline {
  display: flex;
  align-items: center;
  gap: 8px;
}

.api-key-inline code {
  font-size: 12px;
  color: var(--accent-2);
  background: var(--bg-tertiary);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
}

.copy-btn {
  color: var(--muted);
  cursor: pointer;
}

.copy-btn:hover {
  color: var(--accent);
}

.btn-danger {
  color: var(--danger);
  border-color: var(--danger);
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
}

.docs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.docs-grid .content-card {
  padding: 24px;
}

.docs-grid h3 {
  margin: 0 0 12px;
  font-size: 16px;
}

.docs-grid p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
  line-height: 1.5;
}

.code-block {
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  padding: 16px;
  overflow-x: auto;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
}

.profile-code {
  font-size: 12px;
  color: var(--accent-2);
}

.partner-task {
  background: var(--purple-bg);
  color: var(--purple);
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-size: 12px;
}

.canonical-task {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--success);
}

.canonical-task svg {
  flex-shrink: 0;
}

.empty-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.empty-state-content {
  text-align: center;
  padding: 24px;
}

.empty-state-content svg {
  color: var(--muted);
  opacity: 0.5;
  margin-bottom: 16px;
}

.empty-state-content h4 {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.empty-state-content p {
  margin: 0 0 16px;
  font-size: 14px;
  color: var(--muted);
}

.mt-24 {
  margin-top: 24px;
}

.status-badge.blue {
  background: var(--blue-bg);
  color: var(--accent);
}

.status-badge.purple {
  background: var(--purple-bg);
  color: var(--purple);
}

.status-badge.neutral {
  background: var(--bg-tertiary);
  color: var(--muted);
}

.profile-avatar.small {
  width: 28px;
  height: 28px;
  font-size: 10px;
}

.task-name {
  font-weight: 500;
  color: var(--text);
}

/* Quick Actions */
.quick-actions {
  padding: 8px;
}

.quick-action-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: all var(--transition);
}

.quick-action-item:hover {
  background: var(--bg-tertiary);
}

.quick-action-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.quick-action-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.quick-action-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.quick-action-desc {
  font-size: 12px;
  color: var(--muted);
}

/* Two Column Layout */
.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 24px;
}

/* Forms */
.form-card {
  height: fit-content;
}

.modern-form {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  transition: all var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--blue-bg);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

.form-hint {
  font-size: 12px;
  color: var(--muted);
}

.form-error {
  font-size: 12px;
  color: var(--danger);
}

.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 8px;
}

/* Sample Data */
.sample-data-info {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sample-data-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

.sample-data-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sample-data-lead {
  margin: 0;
  font-size: 14px;
  color: var(--text);
}

.sample-data-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  align-items: center;
}

.meta-separator {
  color: var(--card-border);
}

.file-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  color: var(--text);
}

.sample-data-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.sample-preview,
.format-info {
  padding: 16px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
}

.sample-preview h4,
.format-info h4 {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.csv-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  border: 1px solid var(--card-border);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  color: var(--text);
}

.csv-preview code {
  display: block;
  font-family: inherit;
  white-space: nowrap;
  overflow-x: auto;
}

.sample-tips {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tip-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.tip-label {
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: var(--bg-tertiary);
  color: var(--text);
  font-weight: 600;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  flex-shrink: 0;
}

.format-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.format-table th {
  text-align: left;
  padding: 10px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  border-bottom: 1px solid var(--card-border);
}

.format-table td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--card-border);
  color: var(--text);
  vertical-align: top;
}

.format-table code {
  background: var(--bg);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--card-border);
  font-size: 11px;
}

.required-flag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: var(--success-bg);
  color: var(--success);
}

.required-flag.optional {
  background: var(--bg-tertiary);
  color: var(--muted);
}

/* Certificate List */
.cert-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cert-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
  -webkit-border-radius: var(--radius-lg);
  -moz-border-radius: var(--radius-lg);
  -ms-border-radius: var(--radius-lg);
  -o-border-radius: var(--radius-lg);
  -webkit-transition: all var(--transition);
  -moz-transition: all var(--transition);
  -ms-transition: all var(--transition);
  -o-transition: all var(--transition);
}

.cert-item:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-sm);
}

.cert-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.cert-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--blue-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  flex-shrink: 0;
}

.cert-info h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.cert-desc {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.cert-requirements {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
}

.req-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 80px;
}

.req-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
}

.req-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.cert-actions {
  display: flex;
  gap: 8px;
}

/* Recommendations */
.recommendations-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 520px;
  overflow-y: auto;
}

.recommendation-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  transition: all var(--transition);
}

.recommendation-item:hover {
  border-color: var(--card-border-hover);
  background: var(--card-hover);
}

.rec-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--warning-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--warning);
  flex-shrink: 0;
}

.rec-content {
  flex: 1;
  min-width: 0;
}

.rec-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.rec-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.rec-profile {
  font-size: 12px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.rec-reason {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
}

.rec-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  flex-wrap: wrap;
}

/* Search Form */
.search-form {
  display: flex;
  gap: 12px;
  align-items: center;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-wrapper svg {
  position: absolute;
  left: 12px;
  color: var(--muted);
}

.search-input-wrapper input {
  width: 280px;
  padding: 10px 14px 10px 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 14px;
}

.select-input {
  min-width: 220px;
  padding: 10px 36px 10px 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--bg-secondary);
  color: var(--text);
  font-size: 14px;
  appearance: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.select-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--blue-bg);
}

.search-input-wrapper input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--blue-bg);
}

/* Shared Profiles Grid */
.shared-profiles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  padding: 24px;
}

.shared-profile-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  transition: all var(--transition);
}

.shared-profile-card:hover {
  border-color: var(--card-border-hover);
  box-shadow: var(--shadow-sm);
}

.profile-card-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.profile-card-info h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.profile-card-actions {
  display: flex;
  gap: 8px;
}

.full-width {
  width: 100%;
}

/* API Documentation */
.api-documentation {
  margin: 24px;
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--card-border);
}

.api-doc-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--accent);
}

.api-doc-header h4 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
}

.api-example code {
  display: block;
  padding: 16px;
  background: var(--bg);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  color: var(--accent-2);
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

/* API Keys List */
.api-keys-list {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.api-key-item {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
}

.api-key-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 12px;
}

.api-key-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--purple-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--purple);
  flex-shrink: 0;
}

.api-key-info h4 {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.api-key-date {
  font-size: 12px;
  color: var(--muted);
}

.api-key-value {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.api-key-value code {
  flex: 1;
  padding: 10px 14px;
  background: var(--bg);
  border-radius: var(--radius-md);
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  color: var(--accent-2);
  overflow: hidden;
  text-overflow: ellipsis;
}

.copy-btn {
  flex-shrink: 0;
}

.api-key-delete {
  display: flex;
}

/* Settings Section */
.settings-section {
  padding: 24px;
}

.settings-header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.settings-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}

.settings-info h3 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text);
}

.settings-info p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.coming-soon {
  padding: 20px;
  background: var(--bg-secondary);
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  font-size: 14px;
  text-align: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--transition);
  border: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #4a93e0 100%);
  color: white;
  border: 1px solid transparent;
  box-shadow: 0 2px 8px rgba(88, 166, 255, 0.25);
}

.btn-primary:hover {
  background: linear-gradient(
    135deg,
    var(--accent-hover) 0%,
    var(--accent) 100%
  );
  box-shadow: 0 4px 16px rgba(88, 166, 255, 0.35);
  transform: translateY(-1px);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(88, 166, 255, 0.25);
}

.btn-outline {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
  transition: all 0.2s ease;
}

.btn-outline:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid transparent;
}

.btn-danger:hover {
  background: var(--danger);
  color: white;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 12px;
}

.btn-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: transparent;
  border: 1px solid var(--card-border);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition);
}

.btn-icon:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

/* Navigation */
.org-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: all var(--transition);
}

.nav-link:hover {
  background: var(--bg-tertiary);
  color: var(--text);
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

/* Responsive */
@media (max-width: 1024px) {
  .tvet-dashboard {
    display: block;
  }

  .tvet-sidebar,
  .dashboard-sidebar {
    position: fixed;
    left: -280px;
    top: 70px;
    bottom: 0;
    width: 260px;
    z-index: 1000;
    transition: left 0.3s ease;
    background: var(--bg-secondary);
  }

  .tvet-sidebar.mobile-open,
  .dashboard-sidebar.mobile-open {
    left: 0;
    box-shadow: var(--shadow-lg);
  }

  .tvet-main,
  .dashboard-main {
    margin-left: 0;
    padding: 24px 20px;
  }

  /* Mobile menu toggle - force visible on tablets/mobile */
  .mobile-menu-toggle,
  header .mobile-menu-toggle,
  .dashboard-nav .mobile-menu-toggle,
  .nav .mobile-menu-toggle,
  .nav-left .mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .sidebar-overlay.active {
    display: block;
  }

  .page-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .two-column-layout,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .docs-grid {
    grid-template-columns: 1fr;
  }

  .sample-data-grid {
    grid-template-columns: 1fr;
  }

  .sample-data-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .sample-data-cta .btn {
    width: 100%;
    justify-content: center;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .search-input-wrapper input {
    width: 100%;
  }

  .search-form {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    width: 100%;
  }

  .search-input-wrapper {
    flex: 1 1 100%;
  }

  .select-input {
    width: auto;
    flex: 1 1 65%;
  }

  .search-form .btn {
    flex: 1 1 35%;
  }

  /* Hide org badge text on mobile */
  .dashboard-nav .org-badge span:not(svg) {
    display: none;
  }

  .dashboard-nav .org-badge {
    padding: 8px 10px;
  }

  /* Ensure ALL header elements stay visible on mobile */
  header .nav,
  header .dashboard-nav,
  header.shell.header .nav,
  header.shell.header .dashboard-nav {
    display: flex !important;
    visibility: visible !important;
  }

  .dashboard-nav .nav-left,
  .dashboard-nav .nav-actions,
  .dashboard-nav .brand-logo,
  .dashboard-nav .btn-icon,
  .nav .nav-left,
  .nav .nav-actions,
  .nav .brand-logo,
  .nav .btn-icon,
  #theme-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .dashboard-nav .logo-img,
  .brand-logo .logo-img {
    height: 32px;
    display: block !important;
    visibility: visible !important;
  }

  .dashboard-nav .nav-actions {
    gap: 8px;
  }

  .header {
    padding: 12px 16px;
  }
}

@media (max-width: 640px) {
  .recommendation-item {
    flex-direction: column;
    align-items: stretch;
  }

  .rec-actions {
    width: 100%;
  }

  .rec-actions .btn {
    flex: 1 1 auto;
    min-width: 140px;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-value {
    font-size: 24px;
  }

  .data-table th,
  .data-table td {
    padding: 12px 16px;
  }

  .shared-profiles-grid {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  /* Extra small screen - hide org badge completely */
  .dashboard-nav .org-badge {
    display: none !important;
  }

  .dashboard-nav .nav-actions {
    gap: 6px;
  }

  /* Ensure toggle is still visible on very small screens */
  .mobile-menu-toggle,
  header .mobile-menu-toggle,
  .dashboard-nav .mobile-menu-toggle,
  .nav .mobile-menu-toggle,
  .nav-left .mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 36px;
    height: 36px;
    margin-right: 8px;
  }

  .dashboard-nav .btn-icon,
  #theme-toggle {
    display: flex !important;
    visibility: visible !important;
    width: 36px;
    height: 36px;
  }

  .dashboard-nav .logo-img,
  .brand-logo .logo-img {
    height: 28px;
    display: block !important;
  }

  .header {
    padding: 10px 12px;
    height: 60px;
  }

  body {
    padding-top: 60px;
  }

  .tvet-sidebar,
  .dashboard-sidebar {
    top: 60px;
  }

  .sidebar-overlay {
    top: 60px;
  }
}

/* Legacy styles compatibility */

.dashboard-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: flex-start;
}

.sidebar {
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: sticky;
  top: 12px;
  box-shadow: var(--shadow-md);
}

.sidebar-header {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sidebar-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-md);
  color: var(--text);
  text-decoration: none;
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition);
}

.sidebar-nav a:hover {
  background: var(--bg-tertiary);
}

.sidebar-nav a.active {
  border-color: var(--card-border);
  background: var(--blue-bg);
  color: var(--accent);
}

body[data-theme="light"] .sidebar {
  background: var(--card);
  border-color: var(--card-border);
  box-shadow: var(--shadow-md);
}

body[data-theme="light"] .sidebar-nav a.active {
  background: var(--blue-bg);
  border-color: var(--accent);
}

.sidebar-toggle {
  width: 100%;
  margin-top: 12px;
}

body.sidebar-collapsed .sidebar {
  width: 64px;
  padding: 12px 10px;
}

body.sidebar-collapsed .sidebar .brand-name,
body.sidebar-collapsed .sidebar .brand-sub,
body.sidebar-collapsed .sidebar-nav a span {
  display: none;
}

body.sidebar-collapsed .sidebar-nav a {
  justify-content: center;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 10px;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: var(--bg);
  border-bottom: 1px solid var(--card-border);
  height: 70px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

/* Add padding to body to account for fixed header */
body {
  padding-top: 70px;
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
}

.brand-mark {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: white;
  display: grid;
  place-items: center;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.brand-name {
  font-weight: 600;
  letter-spacing: 0.4px;
}

.brand-sub {
  color: var(--muted);
  font-size: 12px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav a {
  color: var(--text);
  text-decoration: none;
  margin-left: 14px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  transition: background var(--transition);
}

.nav a:hover {
  background: var(--bg-tertiary);
}

/* Dashboard Nav with Logo */
.dashboard-nav {
  width: 100%;
  justify-content: space-between;
}

.dashboard-nav .nav-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.dashboard-nav .brand-logo {
  margin-left: 0;
  padding: 4px;
}

.dashboard-nav .brand-logo:hover {
  background: transparent;
}

.dashboard-nav .logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
}

/* Mobile Menu Toggle */
.mobile-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
  margin-right: 12px;
}

.mobile-menu-toggle:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
}

.mobile-menu-toggle svg {
  width: 22px;
  height: 22px;
}

/* Sidebar Overlay for Mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  display: block;
  opacity: 1;
}

.dashboard-nav .btn-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition);
}

.dashboard-nav .btn-icon:hover {
  background: var(--bg-tertiary);
  border-color: var(--accent);
}

/* Theme toggle icon visibility */
/* .dashboard-nav .theme-icon.moon {
  display: none;
} */

body[data-theme="light"] .sun {
  display: none;
}

body[data-theme="dark"] .moon {
  display: none;
}

.dashboard-nav .nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}

.dashboard-nav .nav-actions .nav-logout-form {
  margin: 0;
}

.dashboard-nav .org-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.dashboard-nav .org-badge svg {
  color: var(--accent);
}

.panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin: 16px 0 32px;
  box-shadow: var(--shadow-md);
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: center;
}

.callout {
  background: linear-gradient(145deg, var(--blue-bg), var(--card));
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 16px;
}

.callout-title {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 1px;
}

.callout-value {
  font-size: 28px;
  font-weight: 600;
  margin: 6px 0;
}

.mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.grid.three {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 18px;
}

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

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.skill-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  transition: all var(--transition);
}

.skill-row:hover {
  border-color: var(--card-border-hover);
}

.skill-name {
  font-weight: 600;
}

.tier-badge {
  padding: 6px 10px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  border: 1px solid var(--card-border);
}

.tier-bronze {
  color: var(--bronze);
  background: rgba(217, 119, 6, 0.12);
}

.tier-silver {
  color: var(--silver);
  background: rgba(156, 163, 175, 0.14);
}

.tier-gold {
  color: var(--gold);
  background: rgba(251, 191, 36, 0.12);
}

.status-pill {
  padding: 10px 14px;
  border-radius: 999px;
  font-weight: 600;
  border: 1px solid var(--card-border);
}

.status-pill.success {
  color: var(--success);
  background: var(--success-bg);
}

/* Legacy button styles */
.btn.ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--card-border);
  box-shadow: none;
}

.btn.ghost:hover {
  background: var(--bg-tertiary);
  transform: none;
}

.btn.primary {
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 15px;
}

.btn.primary:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-sm);
}

.btn.small {
  padding: 6px 12px;
  font-size: 12px;
}

.btn.tiny-btn {
  padding: 8px 10px;
  font-size: 12px;
}

.secondary-actions {
  margin-top: 8px;
  opacity: 0.9;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-form input {
  padding: 8px 10px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--bg-tertiary);
  color: var(--text);
}

.actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.lede {
  color: var(--muted);
  max-width: 640px;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 13px;
}

.tiny {
  font-size: 12px;
}

code {
  background: var(--bg-tertiary);
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--accent-2);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

ul.pill-list {
  padding: 0;
  margin: 12px 0 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

ul.pill-list li {
  padding: 6px 10px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  color: var(--muted);
  font-size: 13px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.field span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--bg-tertiary);
  color: var(--text);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--blue-bg);
}

.field textarea {
  min-height: 90px;
  resize: vertical;
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: var(--muted);
}

.form-errors {
  background: var(--danger-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--danger);
  padding: 10px;
  border-radius: var(--radius-md);
}

.toast-stack {
  position: fixed;
  top: 88px;
  right: 24px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 420px;
  width: min(420px, calc(100vw - 32px));
  pointer-events: none;
}

.toast {
  padding: 12px 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  animation: slideIn 0.3s ease-out;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  font-weight: 500;
}

.toast-text {
  flex: 1;
}

.toast-close {
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.toast-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.toast-close svg {
  width: 16px;
  height: 16px;
}

@media (max-width: 720px) {
  .toast-stack {
    top: 76px;
    left: 12px;
    right: 12px;
    width: auto;
    max-width: none;
  }

  .toast {
    padding: 12px 14px;
    font-size: 13px;
  }
}

@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.toast.success {
  border-color: rgba(45, 212, 191, 0.4);
  background: var(--success-bg);
}

.toast.error {
  border-color: rgba(239, 68, 68, 0.4);
  background: var(--danger-bg);
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.share-row {
  border: 1px dashed var(--card-border);
  border-radius: var(--radius-md);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.token {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  color: var(--accent-2);
  background: var(--bg-tertiary);
  padding: 8px;
  border-radius: var(--radius-md);
  word-break: break-all;
}

@media (max-width: 760px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .skill-row {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }
  .nav {
    display: none;
  }
}

/* =============================
   BULK UPLOAD & SKILL MAPPER
============================= */

.two-column-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (max-width: 768px) {
  .two-column-layout {
    grid-template-columns: 1fr;
  }
}


/* ============================================
   BULK UPLOAD STYLES
   ============================================ */

/* How It Works Banner */
.bulk-upload-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 28px 32px;
  background: linear-gradient(
    135deg,
    rgba(88, 166, 255, 0.08) 0%,
    rgba(139, 92, 246, 0.08) 100%
  );
  border: 1px solid rgba(88, 166, 255, 0.15);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
}

.bulk-upload-intro .intro-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  max-width: 200px;
}

.bulk-upload-intro .step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.bulk-upload-intro .step-icon-prepare {
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.2),
    rgba(56, 189, 248, 0.1)
  );
  color: var(--accent);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.bulk-upload-intro .step-icon-upload {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.2),
    rgba(139, 92, 246, 0.1)
  );
  color: var(--purple);
  border: 1px solid rgba(139, 92, 246, 0.3);
}

.bulk-upload-intro .step-icon-create {
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.2),
    rgba(34, 197, 94, 0.1)
  );
  color: var(--success);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.bulk-upload-intro .intro-step:hover .step-icon {
  transform: scale(1.1);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.bulk-upload-intro .intro-step h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px;
}

.bulk-upload-intro .intro-step p {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

.bulk-upload-intro .intro-arrow {
  color: var(--text-secondary);
  opacity: 0.5;
}

/* Upload Card Styling */
.upload-card .card-header,
.format-card .card-header,
.uploads-history-card .card-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.card-header-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    rgba(88, 166, 255, 0.15),
    rgba(88, 166, 255, 0.05)
  );
  color: var(--accent);
  border: 1px solid rgba(88, 166, 255, 0.2);
}

.card-header-icon.format-icon {
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.15),
    rgba(139, 92, 246, 0.05)
  );
  color: var(--purple);
  border-color: rgba(139, 92, 246, 0.2);
}

.card-header-icon.history-icon {
  background: linear-gradient(
    135deg,
    rgba(251, 191, 36, 0.15),
    rgba(251, 191, 36, 0.05)
  );
  color: var(--warning);
  border-color: rgba(251, 191, 36, 0.2);
}

.upload-count {
  margin-left: auto;
  font-size: 12px;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  padding: 4px 10px;
  border-radius: 20px;
}

.download-sample-btn {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1),
    rgba(34, 197, 94, 0.05)
  );
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.download-sample-btn:hover {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

/* Bulk Upload Form */
.bulk-upload-form {
  padding: 20px;
}

.bulk-upload-form .card-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

.bulk-upload-form .inline-form {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.bulk-upload-form .purge-select {
  min-width: 140px;
  height: 32px;
  font-size: 0.75rem;
  padding: 4px 8px;
}

.bulk-upload-form .form-group label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 8px;
}

.bulk-upload-form .form-group label svg {
  color: var(--text-secondary);
}

/* File Upload Zone */
.file-upload-zone {
  position: relative;
  border: 2px dashed var(--card-border);
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  transition: all 0.3s ease;
  cursor: pointer;
  overflow: hidden;
}

.file-upload-zone:hover {
  border-color: var(--accent);
  background: rgba(88, 166, 255, 0.05);
}

.file-upload-zone.dragover {
  border-color: var(--accent);
  background: rgba(88, 166, 255, 0.1);
  transform: scale(1.01);
}

.file-upload-zone.has-file {
  border-style: solid;
  border-color: var(--success);
  background: rgba(34, 197, 94, 0.05);
}

.file-upload-zone .file-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.file-upload-zone .upload-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  text-align: center;
}

.file-upload-zone .upload-icon {
  color: var(--text-secondary);
  margin-bottom: 16px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.file-upload-zone:hover .upload-icon {
  color: var(--accent);
  opacity: 1;
  transform: translateY(-4px);
}

.file-upload-zone .upload-text {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.file-upload-zone .upload-subtext {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.file-upload-zone .browse-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.file-upload-zone .browse-link:hover {
  color: var(--purple);
}

.file-upload-zone .upload-formats {
  font-size: 11px;
  color: var(--muted);
  background: var(--bg-secondary);
  padding: 4px 12px;
  border-radius: 20px;
}

.file-upload-zone .file-selected {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  background: rgba(34, 197, 94, 0.1);
}

.file-upload-zone .file-selected svg {
  color: var(--success);
}

.file-upload-zone .file-name {
  flex: 1;
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.file-upload-zone .remove-file {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  position: relative;
  z-index: 3;
}

.file-upload-zone .remove-file:hover {
  background: var(--danger);
  color: white;
}

.btn-upload {
  width: 100%;
  padding: 14px 24px;
  font-size: 15px;
  font-weight: 600;
  gap: 10px;
  margin-top: 8px;
}

/* Format Card Content */
.format-content {
  padding: 20px;
}

.format-description {
  color: var(--text-secondary);
  font-size: 14px;
  margin: 0 0 16px;
}

.code-block-wrapper {
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--card-border);
  margin-bottom: 20px;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--card-border);
}

.code-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.copy-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.copy-btn:hover {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

.code-block {
  background: var(--bg-tertiary);
  border: none;
  border-radius: 0;
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 12px;
  line-height: 1.6;
  overflow-x: auto;
  color: var(--text-secondary);
  margin: 0;
}

/* CSV Columns */
.csv-columns {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.csv-column {
  padding: 14px 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  transition: all 0.2s ease;
}

.csv-column:hover {
  border-color: var(--accent);
  background: rgba(88, 166, 255, 0.03);
}

.csv-column .column-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.csv-column strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
}

.required-badge {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.optional-badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.csv-column .column-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.4;
}

/* Alert Info Enhanced */
.alert-info {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: linear-gradient(
    135deg,
    rgba(56, 189, 248, 0.08),
    rgba(56, 189, 248, 0.03)
  );
  border: 1px solid rgba(56, 189, 248, 0.2);
  border-radius: var(--radius-md);
  font-size: 13px;
  color: var(--text-secondary);
}

.alert-info svg {
  flex-shrink: 0;
  color: var(--accent);
  margin-top: 1px;
}

.alert-info strong {
  color: var(--text);
  font-weight: 600;
}

.alert-info a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}

.alert-info a:hover {
  text-decoration: underline;
}

/* Uploads Table Styling */
.uploads-table .upload-row {
  transition: background 0.2s ease;
}

.uploads-table .upload-row:hover {
  background: var(--bg-tertiary);
}

.uploads-table .file-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.uploads-table .file-info svg {
  color: var(--text-secondary);
}

.uploads-table .platform-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.status-badge.status-completed {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.status-badge.status-failed {
  background: rgba(239, 68, 68, 0.15);
  color: var(--danger);
}

.status-badge.status-processing,
.status-badge.status-pending {
  background: rgba(251, 191, 36, 0.15);
  color: var(--warning);
}

.status-badge svg {
  margin-right: 4px;
}

.progress-info {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.progress-bar-mini {
  width: 60px;
  height: 6px;
  background: var(--bg-tertiary);
  border-radius: 3px;
  overflow: hidden;
}

.progress-bar-mini .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--purple));
  border-radius: 3px;
  transition: width 0.3s ease;
}

.progress-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
}

.error-tag {
  font-size: 11px;
  padding: 2px 8px;
  background: rgba(239, 68, 68, 0.1);
  color: var(--danger);
  border-radius: var(--radius-sm);
}

.date-cell {
  font-size: 13px;
  color: var(--text);
}

.date-cell .time-text {
  font-size: 11px;
  color: var(--muted);
}

.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Profile Action Buttons */
.btn-copy-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(
    135deg,
    rgba(139, 92, 246, 0.1),
    rgba(139, 92, 246, 0.05)
  );
  border-color: rgba(139, 92, 246, 0.3);
  color: var(--purple);
  transition: all 0.2s ease;
}

.btn-copy-link:hover {
  background: var(--purple);
  border-color: var(--purple);
  color: white;
}

.btn-copy-link.btn-copied {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

.btn-view-profile {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(
    135deg,
    rgba(34, 197, 94, 0.1),
    rgba(34, 197, 94, 0.05)
  );
  border-color: rgba(34, 197, 94, 0.3);
  color: var(--success);
}

.btn-view-profile:hover {
  background: var(--success);
  border-color: var(--success);
  color: white;
}

/* Empty Uploads State */
.empty-uploads {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 48px 20px;
  color: var(--text-secondary);
}

.empty-uploads svg {
  opacity: 0.3;
  margin-bottom: 16px;
}

.empty-uploads p {
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 4px;
}

.empty-uploads span {
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 768px) {
  .bulk-upload-intro {
    flex-direction: column;
    gap: 24px;
    padding: 24px 20px;
  }

  .bulk-upload-intro .intro-arrow {
    transform: rotate(90deg);
  }

  .bulk-upload-intro .intro-step {
    max-width: 100%;
  }
}

.error-count {
  color: var(--error);
  font-size: 12px;
  margin-left: 4px;
}

.info-block {
  padding: 16px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
}

.info-block h4 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.info-block .muted {
  margin: 0;
  font-size: 13px;
}

.info-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--success);
  padding: 8px 0;
}

.confidence-badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--purple-bg);
  color: var(--purple);
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
}

.btn-danger {
  color: var(--error);
  border-color: var(--error);
}

.btn-danger:hover {
  background: var(--error);
  color: white;
}

/* =============================
   SKILL MAPPER ENHANCED UI
============================= */

.skill-mapper-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  padding: 32px 40px;
  background: linear-gradient(
    135deg,
    rgba(88, 166, 255, 0.08) 0%,
    rgba(163, 113, 247, 0.08) 50%,
    rgba(63, 185, 80, 0.08) 100%
  );
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
}

.skill-mapper-intro::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(
    90deg,
    var(--accent),
    var(--purple),
    var(--success)
  );
}

.intro-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  background: var(--card);
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
}

.intro-step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--card-border-hover);
}

.step-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(
    135deg,
    var(--blue-bg) 0%,
    rgba(88, 166, 255, 0.2) 100%
  );
  color: var(--accent);
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.2);
}

.step-icon.green {
  background: linear-gradient(
    135deg,
    var(--success-bg) 0%,
    rgba(63, 185, 80, 0.2) 100%
  );
  color: var(--success);
  box-shadow: 0 4px 12px rgba(63, 185, 80, 0.2);
}

.step-icon.purple {
  background: linear-gradient(
    135deg,
    var(--purple-bg) 0%,
    rgba(163, 113, 247, 0.2) 100%
  );
  color: var(--purple);
  box-shadow: 0 4px 12px rgba(163, 113, 247, 0.2);
}

.step-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.step-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.step-example {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
}

.intro-arrow {
  color: var(--muted);
  opacity: 0.4;
  animation: pulse-arrow 2s ease-in-out infinite;
}

@keyframes pulse-arrow {
  0%,
  100% {
    opacity: 0.4;
    transform: translateX(0);
  }
  50% {
    opacity: 0.7;
    transform: translateX(4px);
  }
}

@media (max-width: 900px) {
  .skill-mapper-intro {
    flex-direction: column;
    gap: 12px;
    padding: 24px 20px;
  }
  .intro-step {
    width: 100%;
    justify-content: center;
  }
  .intro-arrow {
    transform: rotate(90deg);
    animation: pulse-arrow-vertical 2s ease-in-out infinite;
  }
  @keyframes pulse-arrow-vertical {
    0%,
    100% {
      opacity: 0.4;
      transform: rotate(90deg) translateX(0);
    }
    50% {
      opacity: 0.7;
      transform: rotate(90deg) translateX(4px);
    }
  }
}

/* Mapping Form */
.mapping-form {
  padding: 24px;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(88, 166, 255, 0.02) 100%
  );
}

.mapping-form-grid {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr auto;
  gap: 20px;
  align-items: end;
}

.form-group-wide {
  grid-column: span 1;
}

.form-group-action {
  padding-bottom: 0;
}

.form-group label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 8px;
  color: var(--text);
}

@media (max-width: 900px) {
  .mapping-form-grid {
    grid-template-columns: 1fr;
  }
  .form-group-wide {
    grid-column: span 1;
  }
}

.label-hint {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-left: 4px;
  padding: 2px 6px;
  background: var(--bg-tertiary);
  border-radius: 4px;
}

.confidence-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.confidence-slider {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  outline: none;
}

.confidence-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: var(--success);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.confidence-slider::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: var(--success);
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid var(--surface);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.confidence-value {
  min-width: 40px;
  font-size: 14px;
  font-weight: 600;
  color: var(--success);
}

.btn-lg {
  padding: 14px 28px;
  font-size: 14px;
  font-weight: 600;
  gap: 8px;
  box-shadow: 0 4px 12px rgba(88, 166, 255, 0.25);
  transition: all 0.2s ease;
}

.btn-lg:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(88, 166, 255, 0.35);
}

.mapping-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  background: var(--bg-tertiary);
  padding: 6px 12px;
  border-radius: 20px;
  border: 1px solid var(--card-border);
}

/* Mappings List */
.mappings-list {
  padding: 12px;
}

.mapping-row {
  display: grid;
  grid-template-columns: 1.5fr auto 2fr 120px auto;
  gap: 20px;
  align-items: center;
  padding: 18px 20px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.mapping-row:hover {
  background: var(--card);
  border-color: var(--card-border);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  transform: translateX(4px);
}

.mapping-row:last-child {
  margin-bottom: 0;
}

.mapping-source {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mapping-platform {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.mapping-arrow {
  color: var(--success);
  opacity: 0.8;
  transition: all 0.2s ease;
}

.mapping-row:hover .mapping-arrow {
  transform: translateX(4px);
  opacity: 1;
}

.mapping-target {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.skill-category {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.skill-code {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.skill-code.partner {
  background: linear-gradient(
    135deg,
    var(--purple-bg) 0%,
    rgba(163, 113, 247, 0.15) 100%
  );
  color: var(--purple);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  border-color: rgba(163, 113, 247, 0.2);
}

.skill-code.cpass {
  background: linear-gradient(
    135deg,
    var(--success-bg) 0%,
    rgba(63, 185, 80, 0.15) 100%
  );
  color: var(--success);
  border-color: rgba(63, 185, 80, 0.2);
}

.mapping-confidence {
  display: flex;
  align-items: center;
  gap: 10px;
}

.confidence-bar {
  flex: 1;
  height: 8px;
  background: var(--card-border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}

.confidence-fill {
  height: 100%;
  background: linear-gradient(
    90deg,
    var(--success) 0%,
    #4ade80 50%,
    var(--accent-2) 100%
  );
  border-radius: 4px;
  transition: width 0.5s ease;
  box-shadow: 0 1px 3px rgba(63, 185, 80, 0.4);
}

.confidence-text {
  font-size: 13px;
  font-weight: 700;
  color: var(--success);
  min-width: 40px;
  text-align: right;
}

.mapping-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-icon:hover {
  background: var(--bg-tertiary);
  color: var(--text);
  transform: scale(1.05);
}

.btn-icon-danger:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

.empty-state-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 64px 32px;
  text-align: center;
  background: linear-gradient(180deg, transparent 0%, var(--bg-tertiary) 100%);
  border-radius: var(--radius-md);
}

.empty-icon {
  color: var(--accent);
  opacity: 0.3;
  margin-bottom: 20px;
}

.empty-state-card h4 {
  margin: 0 0 12px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.empty-state-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  max-width: 340px;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .mapping-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .mapping-arrow {
    display: none;
  }
  .mapping-confidence {
    justify-content: flex-start;
  }
  .mapping-actions {
    justify-content: flex-start;
  }
}

/* =============================
   BULK SKILL IMPORT
============================= */

.bulk-import-section {
  padding: 28px;
}

.section-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: var(--radius-lg);
  background: var(--bg-tertiary);
  border: 1px solid var(--card-border);
  margin: 8px 0 16px;
}

.toggle-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 14px;
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.toggle-btn.is-active {
  background: #1a7f37;
  color: var(--text);
  box-shadow: var(--shadow-sm);
}

.is-hidden {
  display: none;
}

.scrollable-list {
  max-height: 420px;
  overflow-y: auto;
  padding-right: 8px;
}

.scrollable-table {
  max-height: 420px;
  overflow-y: auto;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
  padding: 16px;
  border-bottom: 1px solid var(--card-border);
  background: var(--bg-secondary);
  position: sticky;
  top: 0;
  z-index: 2;
}

.list-toolbar .form-group {
  margin-bottom: 0;
  min-width: 220px;
}

.bulk-upload-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  border: 2px dashed var(--card-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(
    180deg,
    var(--bg-tertiary) 0%,
    rgba(88, 166, 255, 0.03) 100%
  );
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.upload-zone::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at center,
    rgba(88, 166, 255, 0.05) 0%,
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.upload-zone:hover::before,
.upload-zone.drag-over::before {
  opacity: 1;
}

.upload-zone:hover,
.upload-zone.drag-over {
  border-color: var(--accent);
  background: linear-gradient(
    180deg,
    var(--blue-bg) 0%,
    rgba(88, 166, 255, 0.08) 100%
  );
  transform: scale(1.005);
  box-shadow: 0 8px 32px rgba(88, 166, 255, 0.15);
}

.upload-zone.has-file {
  border-color: var(--success);
  background: linear-gradient(
    180deg,
    var(--success-bg) 0%,
    rgba(63, 185, 80, 0.08) 100%
  );
  box-shadow: 0 8px 32px rgba(63, 185, 80, 0.15);
}

.upload-icon {
  color: var(--accent);
  margin-bottom: 20px;
  opacity: 0.7;
  transition: all 0.3s ease;
}

.upload-zone:hover .upload-icon {
  transform: translateY(-4px);
  opacity: 1;
}

.upload-zone h4 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
}

.upload-zone .muted {
  margin: 0 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.upload-btn {
  padding: 12px 24px;
  font-weight: 600;
}

.upload-btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: white;
}

.upload-zone .file-input {
  display: none;
}

.file-name {
  margin-top: 16px;
  font-size: 14px;
  color: var(--success);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.file-name::before {
  content: "✓";
  width: 20px;
  height: 20px;
  background: var(--success);
  color: white;
  border-radius: 50%;
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bulk-format-help {
  padding: 20px;
  background: linear-gradient(
    135deg,
    var(--bg-tertiary) 0%,
    var(--bg-secondary) 100%
  );
  border-radius: var(--radius-md);
  border: 1px solid var(--card-border);
}

.bulk-format-help strong {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.bulk-format-help strong::before {
  content: "📄";
  font-size: 14px;
}

.code-example {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  padding: 16px;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, monospace;
  font-size: 13px;
  line-height: 1.8;
  color: var(--text-secondary);
  margin: 0 0 12px;
  overflow-x: auto;
}

.btn-full {
  width: 100%;
  justify-content: center;
  padding: 16px 28px;
  font-size: 15px;
}

/* Results Section */
.bulk-results-section {
  padding: 28px;
}

.results-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}

.summary-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px 16px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  text-align: center;
  transition: all 0.2s ease;
}

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

.summary-stat.success {
  background: linear-gradient(180deg, var(--card) 0%, var(--success-bg) 100%);
  border-color: rgba(63, 185, 80, 0.3);
}

.summary-stat.warning {
  background: linear-gradient(180deg, var(--card) 0%, var(--warning-bg) 100%);
  border-color: rgba(210, 153, 34, 0.3);
}

.summary-stat.neutral {
  background: var(--card);
}

.summary-value {
  font-size: 32px;
  font-weight: 800;
  color: var(--text);
  line-height: 1;
}

.summary-stat.success .summary-value {
  color: var(--success);
}

.summary-stat.warning .summary-value {
  color: var(--warning);
}

.summary-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-top: 8px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.results-group {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-sm);
}

.group-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--bg-tertiary);
  border-bottom: 1px solid var(--card-border);
}

.group-header.success {
  background: linear-gradient(
    135deg,
    var(--success-bg) 0%,
    rgba(63, 185, 80, 0.15) 100%
  );
  border-bottom-color: rgba(63, 185, 80, 0.2);
}

.group-header.success svg {
  color: var(--success);
  filter: drop-shadow(0 2px 4px rgba(63, 185, 80, 0.3));
}

.group-header.warning {
  background: linear-gradient(
    135deg,
    var(--warning-bg) 0%,
    rgba(210, 153, 34, 0.15) 100%
  );
  border-bottom-color: rgba(210, 153, 34, 0.2);
}

.group-header.warning svg {
  color: var(--warning);
  filter: drop-shadow(0 2px 4px rgba(210, 153, 34, 0.3));
}

.group-header.neutral {
  background: var(--bg-tertiary);
}

.group-header.neutral svg {
  color: var(--muted);
}

.group-header h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text);
}

.group-hint {
  font-size: 13px;
  color: var(--muted);
  margin-left: auto;
  padding: 4px 10px;
  background: var(--card);
  border-radius: 20px;
  border: 1px solid var(--card-border);
}

.bulk-mappings-list {
  padding: 12px;
}

.bulk-mapping-row {
  display: grid;
  grid-template-columns: 36px 1.5fr auto 2fr 90px;
  gap: 16px;
  align-items: center;
  padding: 14px 18px;
  background: var(--bg-tertiary);
  border-radius: var(--radius-md);
  margin-bottom: 6px;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.bulk-mapping-row:hover {
  background: var(--bg-secondary);
  border-color: var(--card-border);
  box-shadow: var(--shadow-sm);
}

.bulk-mapping-row:last-child {
  margin-bottom: 0;
}

.bulk-mapping-row.needs-review {
  background: linear-gradient(
    135deg,
    rgba(210, 153, 34, 0.05) 0%,
    rgba(210, 153, 34, 0.08) 100%
  );
  border-color: rgba(210, 153, 34, 0.15);
}

.bulk-mapping-row.no-match {
  background: var(--bg-tertiary);
  opacity: 0.85;
}

.bulk-checkbox {
  display: flex;
  align-items: center;
  justify-content: center;
}

.bulk-checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: var(--success);
  border-radius: 4px;
}

.bulk-checkbox label {
  display: none;
}

.bulk-source {
  display: flex;
  align-items: center;
}

.bulk-arrow {
  color: var(--success);
  font-size: 16px;
  text-align: center;
  font-weight: 600;
  opacity: 0.7;
}

.bulk-target select {
  width: 100%;
}

.bulk-confidence {
  display: flex;
  justify-content: flex-end;
}

.confidence-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 700;
  min-width: 56px;
  text-align: center;
}

.bulk-confidence.high .confidence-pill {
  background: linear-gradient(
    135deg,
    var(--success-bg) 0%,
    rgba(63, 185, 80, 0.2) 100%
  );
  color: var(--success);
  border: 1px solid rgba(63, 185, 80, 0.3);
}

.bulk-confidence.low .confidence-pill {
  background: linear-gradient(
    135deg,
    var(--warning-bg) 0%,
    rgba(210, 153, 34, 0.2) 100%
  );
  color: var(--warning);
  border: 1px solid rgba(210, 153, 34, 0.3);
}

.bulk-confidence.none .confidence-pill {
  background: var(--bg-tertiary);
  color: var(--muted);
  border: 1px solid var(--card-border);
}

.bulk-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 18px 24px;
  background: var(--bg-tertiary);
  border-top: 1px solid var(--card-border);
}

.bulk-footer {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.skill-code.unknown {
  background: linear-gradient(
    135deg,
    var(--danger-bg) 0%,
    rgba(248, 81, 73, 0.15) 100%
  );
  color: var(--text);
  border-color: rgba(248, 81, 73, 0.2);
}

.form-control-sm {
  padding: 8px 12px;
  font-size: 13px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.form-control-sm:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(88, 166, 255, 0.15);
}

.mt-16 {
  margin-top: 16px;
}

/* Enhanced Card Header for Skill Mapper */
.content-card .card-header h3 {
  display: flex;
  align-items: center;
  gap: 10px;
}

.content-card .card-header h3 svg {
  color: var(--accent);
}

/* Card Badge */
.card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: linear-gradient(
    135deg,
    var(--purple-bg) 0%,
    rgba(163, 113, 247, 0.15) 100%
  );
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(163, 113, 247, 0.2);
}

.card-badge svg {
  color: var(--purple);
}

/* Bulk Import Card Enhancement */
.bulk-import-card {
  position: relative;
  overflow: hidden;
}

.bulk-import-card::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle at top right,
    rgba(163, 113, 247, 0.05) 0%,
    transparent 70%
  );
  pointer-events: none;
}

@media (max-width: 768px) {
  .results-summary {
    grid-template-columns: repeat(2, 1fr);
  }

  .bulk-mapping-row {
    grid-template-columns: 36px 1fr 70px;
    gap: 12px;
    padding: 12px 14px;
  }

  .bulk-arrow {
    display: none;
  }

  .bulk-target {
    grid-column: 2 / 4;
    grid-row: 2;
  }

  .group-hint {
    display: none;
  }

  .summary-value {
    font-size: 24px;
  }
}
