/* ===== O'zgaruvchilar ===== */
:root {
  --primary: #0284c7;
  --primary-dark: #0369a1;
  --primary-light: #e0f2fe;
  --primary-mid: #7dd3fc;
  --accent: #0ea5e9;
  --accent2: #38bdf8;
  --green: #10b981;
  --green-light: #d1fae5;
  --yellow: #f59e0b;
  --yellow-light: #fef3c7;
  --red: #ef4444;
  --red-light: #fee2e2;
  --purple: #8b5cf6;
  --purple-light: #ede9fe;

  --sidebar-bg: #075985;
  --sidebar-hover: rgba(255,255,255,.08);
  --sidebar-active: rgba(255,255,255,.15);
  --sidebar-text: #bae6fd;
  --sidebar-white: #ffffff;

  --bg: #f0f9ff;
  --card: #ffffff;
  --border: #bae6fd;
  --border-soft: #e0f2fe;
  --text: #0c4a6e;
  --text-mid: #0369a1;
  --text-muted: #64748b;
  --text-light: #94a3b8;

  --shadow-sm: 0 1px 3px rgba(2,132,199,.08);
  --shadow: 0 4px 12px rgba(2,132,199,.10);
  --shadow-md: 0 8px 24px rgba(2,132,199,.14);
  --shadow-lg: 0 16px 40px rgba(2,132,199,.18);

  --radius: 12px;
  --radius-sm: 8px;
  --sidebar-w: 255px;
}

/* ===== Asosiy ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 15px; }
body {
  font-family: 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ===== Auth Sahifalar ===== */
.auth-wrapper {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-hero {
  background: linear-gradient(150deg, #075985 0%, #0369a1 45%, #0284c7 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  color: white;
  position: relative;
  overflow: hidden;
}
.auth-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Ccircle cx='40' cy='40' r='30' stroke='%23ffffff' stroke-width='.5' stroke-opacity='.06'/%3E%3Ccircle cx='40' cy='40' r='15' stroke='%23ffffff' stroke-width='.5' stroke-opacity='.06'/%3E%3C/g%3E%3C/svg%3E");
}
.auth-hero-logo { font-size: 3.5rem; margin-bottom: 1.2rem; position: relative; }
.auth-hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: .75rem; position: relative; }
.auth-hero p { font-size: 1.05rem; opacity: .85; max-width: 360px; text-align: center; position: relative; }
.auth-features { margin-top: 2.5rem; display: flex; flex-direction: column; gap: .85rem; width: 100%; max-width: 360px; position: relative; }
.auth-feature {
  display: flex; align-items: center; gap: .9rem;
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(8px);
  padding: .9rem 1.2rem; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.15);
  font-size: .92rem;
}
.auth-feature-icon { font-size: 1.3rem; }

.auth-form-side {
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2rem;
  background: white;
}
.auth-form-box { width: 100%; max-width: 420px; }
.auth-form-box h2 { font-size: 1.9rem; font-weight: 800; color: var(--text); margin-bottom: .4rem; }
.auth-form-box .subtitle { color: var(--text-muted); margin-bottom: 2rem; font-size: .95rem; }

/* Form elementlari */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-weight: 600; font-size: .85rem;
  margin-bottom: .4rem; color: var(--text);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid #cbd5e1;
  border-radius: var(--radius-sm); font-size: .95rem;
  transition: border-color .2s, box-shadow .2s;
  outline: none; background: #fafafa; color: var(--text);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(2,132,199,.12);
  background: white;
}
.form-group textarea { min-height: 100px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }

/* Tugmalar */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .72rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: .92rem; border: none;
  transition: all .2s; cursor: pointer; white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: white;
  box-shadow: 0 2px 8px rgba(2,132,199,.3);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  box-shadow: 0 6px 16px rgba(2,132,199,.4);
  transform: translateY(-1px);
}
.btn-secondary { background: var(--primary-light); color: var(--primary-dark); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: #bae6fd; }
.btn-success { background: linear-gradient(135deg, #059669, var(--green)); color: white; }
.btn-success:hover { box-shadow: 0 4px 12px rgba(16,185,129,.3); transform: translateY(-1px); }
.btn-danger { background: linear-gradient(135deg, #dc2626, var(--red)); color: white; }
.btn-danger:hover { box-shadow: 0 4px 12px rgba(239,68,68,.3); }
.btn-warning { background: var(--yellow); color: white; }
.btn-ghost { background: transparent; color: var(--primary); }
.btn-ghost:hover { background: var(--primary-light); }
.btn-sm { padding: .42rem .9rem; font-size: .82rem; border-radius: 6px; }
.btn-lg { padding: .95rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn-full { width: 100%; }
.btn-icon { padding: .48rem; border-radius: 7px; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }

/* ===== App Layout ===== */
.app-layout { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  background: var(--sidebar-bg);
  min-height: 100vh;
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; z-index: 100;
  box-shadow: 4px 0 24px rgba(7,89,133,.25);
}
.sidebar-logo {
  padding: 1.4rem 1.4rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.sidebar-logo-inner { display: flex; align-items: center; gap: .8rem; }
.logo-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: linear-gradient(135deg, var(--accent2), var(--primary));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; box-shadow: 0 4px 12px rgba(56,189,248,.3);
}
.logo-text { font-size: 1.1rem; font-weight: 800; color: white; letter-spacing: -.01em; }
.logo-sub { font-size: .7rem; color: var(--sidebar-text); margin-top: 1px; }

.sidebar-user {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid rgba(255,255,255,.08);
  display: flex; align-items: center; gap: .8rem;
}
.user-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent2), #818cf8);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; color: white; font-size: .95rem;
  flex-shrink: 0; border: 2px solid rgba(255,255,255,.2);
}
.user-name { font-size: .9rem; font-weight: 700; color: white; }
.user-role {
  font-size: .72rem; color: var(--sidebar-text);
  background: rgba(255,255,255,.1); padding: 1px 8px;
  border-radius: 999px; display: inline-block; margin-top: 2px;
}

.sidebar-nav { padding: 1rem .85rem; flex: 1; overflow-y: auto; }
.nav-section-label {
  font-size: .68rem; text-transform: uppercase; letter-spacing: .1em;
  color: rgba(186,230,253,.4); padding: .5rem .65rem;
  margin-top: .5rem; font-weight: 700;
}
.nav-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .72rem .75rem; border-radius: 9px;
  color: var(--sidebar-text); font-size: .88rem; font-weight: 500;
  transition: all .18s; cursor: pointer; margin-bottom: 2px;
  border: none; background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--sidebar-hover); color: white; }
.nav-item.active {
  background: var(--sidebar-active);
  color: white; font-weight: 700;
  border-left: 3px solid var(--accent2);
}
.nav-icon { font-size: 1rem; width: 22px; text-align: center; }
.nav-badge {
  margin-left: auto; background: var(--accent2);
  color: white; font-size: .68rem; font-weight: 800;
  padding: 2px 8px; border-radius: 999px;
}
.sidebar-footer {
  padding: .85rem; border-top: 1px solid rgba(255,255,255,.08);
}

/* Main */
.main-content {
  margin-left: var(--sidebar-w);
  flex: 1; display: flex; flex-direction: column; min-height: 100vh;
}
.top-bar {
  background: white; padding: 1rem 2rem;
  border-bottom: 2px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
  box-shadow: 0 2px 12px rgba(2,132,199,.06);
}
.top-bar-title h1 { font-size: 1.35rem; font-weight: 800; color: var(--text); }
.top-bar-title p { font-size: .82rem; color: var(--text-muted); margin-top: 1px; }
.top-bar-actions { display: flex; align-items: center; gap: .75rem; }
.page-content { padding: 1.75rem 2rem; flex: 1; }

/* ===== Kartalar ===== */
.card {
  background: var(--card); border-radius: var(--radius);
  border: 1.5px solid var(--border-soft); box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: 1rem;
  border-bottom: 1.5px solid var(--border-soft);
}
.card-title { font-size: 1rem; font-weight: 800; color: var(--text); }
.card-subtitle { font-size: .78rem; color: var(--text-muted); margin-top: 2px; }

/* ===== Statistika Kartalar ===== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 1.1rem; margin-bottom: 1.75rem;
}
.stat-card {
  background: var(--card); border-radius: var(--radius);
  border: 1.5px solid var(--border-soft); box-shadow: var(--shadow-sm);
  padding: 1.4rem 1.25rem;
  display: flex; align-items: center; gap: 1rem;
  transition: transform .2s, box-shadow .2s; cursor: default;
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  border-radius: var(--radius) var(--radius) 0 0;
}
.stat-card.blue::after { background: linear-gradient(90deg, var(--primary), var(--accent2)); }
.stat-card.green::after { background: linear-gradient(90deg, #059669, #34d399); }
.stat-card.yellow::after { background: linear-gradient(90deg, #d97706, #fbbf24); }
.stat-card.red::after { background: linear-gradient(90deg, #dc2626, #f87171); }
.stat-card.purple::after { background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.stat-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.stat-icon {
  width: 50px; height: 50px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; flex-shrink: 0;
}
.stat-icon.blue { background: var(--primary-light); }
.stat-icon.green { background: var(--green-light); }
.stat-icon.yellow { background: var(--yellow-light); }
.stat-icon.red { background: var(--red-light); }
.stat-icon.purple { background: var(--purple-light); }
.stat-value { font-size: 1.9rem; font-weight: 900; color: var(--text); line-height: 1; }
.stat-label { font-size: .78rem; color: var(--text-muted); margin-top: .3rem; font-weight: 500; }

/* ===== Jadvallar ===== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius-sm); }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; font-size: .75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .06em;
  color: var(--primary-dark); padding: .8rem 1rem;
  background: var(--primary-light);
  border-bottom: 2px solid var(--border);
}
tbody td {
  padding: .95rem 1rem; border-bottom: 1px solid var(--border-soft);
  font-size: .88rem; vertical-align: middle; color: var(--text);
}
tbody tr:hover { background: #f0f9ff; }
tbody tr:last-child td { border-bottom: none; }

/* ===== Belgilar (badge) ===== */
.badge {
  display: inline-flex; align-items: center; gap: .25rem;
  padding: .22rem .75rem; border-radius: 999px;
  font-size: .76rem; font-weight: 700; white-space: nowrap;
}
.badge-success { background: var(--green-light); color: #065f46; }
.badge-warning { background: var(--yellow-light); color: #92400e; }
.badge-danger { background: var(--red-light); color: #991b1b; }
.badge-info { background: var(--primary-light); color: var(--primary-dark); }
.badge-neutral { background: #f1f5f9; color: #64748b; }
.badge-purple { background: var(--purple-light); color: #5b21b6; }

/* Status badge */
.status-pending { background: var(--yellow-light); color: #92400e; }
.status-under_review { background: var(--primary-light); color: var(--primary-dark); }
.status-shortlisted { background: var(--green-light); color: #065f46; }
.status-rejected { background: var(--red-light); color: #991b1b; }
.status-hired { background: var(--purple-light); color: #5b21b6; }

/* ===== Pozitsiya Kartalar ===== */
.positions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 1.2rem;
}
.position-card {
  background: var(--card); border-radius: var(--radius);
  border: 1.5px solid var(--border-soft); box-shadow: var(--shadow-sm);
  padding: 1.4rem; transition: all .22s; cursor: pointer;
  display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.position-card::before {
  content: ''; position: absolute;
  top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent2));
}
.position-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-md);
  border-color: var(--border);
}
.position-card-header {
  display: flex; align-items: flex-start;
  justify-content: space-between; margin-bottom: .75rem;
}
.position-title { font-size: 1rem; font-weight: 800; color: var(--text); margin-bottom: .2rem; }
.position-dept { font-size: .8rem; color: var(--primary); font-weight: 600; }
.position-meta { display: flex; flex-wrap: wrap; gap: .4rem; margin: .65rem 0; }
.position-tag {
  font-size: .76rem; padding: .2rem .65rem; border-radius: 6px;
  background: var(--primary-light); color: var(--primary-dark);
  font-weight: 600; display: flex; align-items: center; gap: .25rem;
}
.position-skills {
  font-size: .78rem; color: var(--text-muted); margin: .4rem 0;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.position-footer {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: auto; padding-top: .9rem;
  border-top: 1.5px solid var(--border-soft);
}
.position-apps { font-size: .8rem; color: var(--text-muted); font-weight: 500; }

/* ===== AI Tahlil ===== */
.analysis-card {
  background: linear-gradient(135deg, #075985, #0284c7);
  border-radius: var(--radius); color: white; padding: 2rem;
  margin-bottom: 1.5rem; box-shadow: var(--shadow-md);
}
.score-breakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 1rem; margin-top: 1.5rem;
}
.score-item {
  background: rgba(255,255,255,.12);
  backdrop-filter: blur(4px);
  border-radius: 10px; padding: 1rem; text-align: center;
  border: 1px solid rgba(255,255,255,.15);
}
.score-item-value { font-size: 1.6rem; font-weight: 900; }
.score-item-label { font-size: .75rem; opacity: .8; margin-top: .25rem; }

/* Score ring */
.score-ring-wrapper { display: flex; flex-direction: column; align-items: center; gap: .5rem; }
.score-ring { position: relative; width: 100px; height: 100px; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring-bg { fill: none; stroke: rgba(255,255,255,.15); stroke-width: 8; }
.score-ring-fill {
  fill: none; stroke-width: 8; stroke-linecap: round;
  transition: stroke-dashoffset 1.2s cubic-bezier(.4,0,.2,1);
}
.score-ring-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900;
}
.score-label { font-size: .76rem; font-weight: 700; opacity: .8; }
.score-excellent .score-ring-fill { stroke: #34d399; }
.score-excellent .score-ring-text { color: #34d399; }
.score-good .score-ring-fill { stroke: var(--accent2); }
.score-good .score-ring-text { color: var(--accent2); }
.score-fair .score-ring-fill { stroke: #fbbf24; }
.score-fair .score-ring-text { color: #fbbf24; }
.score-poor .score-ring-fill { stroke: #f87171; }
.score-poor .score-ring-text { color: #f87171; }

.skills-grid { display: flex; flex-wrap: wrap; gap: .5rem; }
.skill-tag { padding: .28rem .75rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.skill-matched { background: rgba(52,211,153,.2); color: #34d399; border: 1px solid rgba(52,211,153,.3); }
.skill-missing { background: rgba(248,113,113,.2); color: #f87171; border: 1px solid rgba(248,113,113,.3); }

/* ===== Fayl Yuklash ===== */
.upload-area {
  border: 2px dashed var(--border); border-radius: var(--radius);
  padding: 2.5rem 2rem; text-align: center; cursor: pointer;
  transition: all .2s; background: var(--primary-light);
}
.upload-area:hover, .upload-area.drag-over {
  border-color: var(--primary); background: #bae6fd;
}
.upload-icon { font-size: 2.8rem; margin-bottom: .75rem; }
.upload-text { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: .35rem; }
.upload-hint { font-size: .82rem; color: var(--text-muted); }
.upload-file-name { margin-top: .75rem; font-size: .9rem; color: var(--primary); font-weight: 700; }

/* Progress */
.progress-bar { background: var(--border); border-radius: 999px; height: 7px; overflow: hidden; }
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent2));
  border-radius: 999px; transition: width .3s;
}

/* ===== Modal ===== */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(7,89,133,.4); backdrop-filter: blur(5px);
  display: flex; align-items: center; justify-content: center;
  z-index: 1000; padding: 1rem;
  opacity: 0; pointer-events: none; transition: opacity .2s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: 16px; width: 100%;
  max-width: 560px; max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  transform: scale(.95) translateY(10px);
  transition: transform .25s cubic-bezier(.4,0,.2,1);
}
.modal-overlay.open .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 1.4rem 1.5rem; border-bottom: 1.5px solid var(--border-soft);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--primary-light); border-radius: 16px 16px 0 0;
}
.modal-header h3 { font-size: 1.05rem; font-weight: 800; color: var(--text); }
.modal-close {
  background: none; border: none; font-size: 1.5rem;
  cursor: pointer; color: var(--text-muted); line-height: 1;
  width: 32px; height: 32px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
}
.modal-close:hover { background: var(--border); color: var(--text); }
.modal-body { padding: 1.5rem; }
.modal-footer {
  padding: 1rem 1.5rem; border-top: 1.5px solid var(--border-soft);
  display: flex; gap: .75rem; justify-content: flex-end;
  background: #fafeff;
}

/* ===== Toast ===== */
.toast-container {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9999;
  display: flex; flex-direction: column; gap: .65rem;
}
.toast {
  background: #0c4a6e; color: white;
  padding: .85rem 1.2rem; border-radius: 10px;
  font-size: .88rem; display: flex; align-items: center; gap: .75rem;
  box-shadow: var(--shadow-lg); min-width: 270px;
  animation: slideIn .3s cubic-bezier(.4,0,.2,1);
}
.toast.success { border-left: 4px solid #34d399; }
.toast.error { border-left: 4px solid #f87171; }
.toast.info { border-left: 4px solid var(--accent2); }
@keyframes slideIn {
  from { transform: translateX(110%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* ===== Bo'sh holat ===== */
.empty-state {
  text-align: center; padding: 4rem 2rem; color: var(--text-muted);
}
.empty-state-icon { font-size: 3.5rem; margin-bottom: 1rem; opacity: .35; display: block; }
.empty-state h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin-bottom: .4rem; }
.empty-state p { font-size: .88rem; margin-bottom: 1.5rem; }

/* ===== Spinner ===== */
.spinner {
  display: inline-block; width: 18px; height: 18px;
  border: 2.5px solid rgba(2,132,199,.2);
  border-top-color: var(--primary);
  border-radius: 50%; animation: spin .7s linear infinite;
}
.spinner-lg { width: 38px; height: 38px; border-width: 3.5px; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-overlay {
  position: fixed; inset: 0;
  background: rgba(240,249,255,.9);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  z-index: 9999; gap: 1rem; font-weight: 700; color: var(--text);
}

/* ===== Qidiruv ===== */
.search-bar {
  display: flex; align-items: center; gap: .85rem;
  margin-bottom: 1.5rem; flex-wrap: wrap;
}
.search-input-wrapper { position: relative; flex: 1; min-width: 200px; }
.search-icon {
  position: absolute; left: .9rem; top: 50%;
  transform: translateY(-50%); color: var(--text-muted); font-size: .95rem;
}
.search-input { padding-left: 2.5rem !important; }
.filter-select {
  padding: .65rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius-sm); font-size: .88rem;
  outline: none; background: white; color: var(--text);
  cursor: pointer; transition: border-color .2s;
}
.filter-select:focus { border-color: var(--primary); }

/* ===== Ariza kartasi (candidate) ===== */
.app-card {
  background: var(--card); border-radius: var(--radius);
  border: 1.5px solid var(--border-soft); box-shadow: var(--shadow-sm);
  padding: 1.4rem; display: flex; gap: 1.2rem; align-items: flex-start;
  transition: all .2s; margin-bottom: 1rem;
}
.app-card:hover { box-shadow: var(--shadow); border-color: var(--border); }

/* Divider */
.divider { height: 1.5px; background: var(--border-soft); margin: 1.5rem 0; }

/* Candidate badge (register) */
.candidate-badge {
  display: flex; align-items: center; gap: .75rem;
  background: var(--primary-light); border: 1.5px solid var(--border);
  border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: 1.25rem;
}
.candidate-badge-icon { font-size: 1.8rem; }
.candidate-badge-text { font-size: .9rem; font-weight: 700; color: var(--primary-dark); }
.candidate-badge-sub { font-size: .76rem; color: var(--text-muted); }

/* Error/Info msg */
.error-msg {
  background: var(--red-light); color: #991b1b;
  padding: .75rem 1rem; border-radius: var(--radius-sm);
  font-size: .86rem; margin-bottom: 1rem; display: none;
  border: 1px solid #fecaca;
}
.success-msg {
  background: var(--green-light); color: #065f46;
  padding: .75rem 1rem; border-radius: var(--radius-sm);
  font-size: .86rem; margin-bottom: 1rem; display: none;
}
.auth-link {
  text-align: center; margin-top: 1.5rem;
  font-size: .88rem; color: var(--text-muted);
}
.auth-link a { color: var(--primary); font-weight: 700; }

/* Dropdown */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: white; border-radius: 10px;
  border: 1.5px solid var(--border-soft);
  box-shadow: var(--shadow-md); min-width: 180px; z-index: 200;
  overflow: hidden; display: none;
}
.dropdown-menu.open { display: block; }
.dropdown-item {
  display: flex; align-items: center; gap: .75rem;
  padding: .72rem 1rem; font-size: .88rem;
  cursor: pointer; transition: background .15s; color: var(--text);
}
.dropdown-item:hover { background: var(--primary-light); }
.dropdown-item.danger { color: var(--red); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-hero { display: none; }
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.mobile-open { transform: translateX(0); }
  .main-content { margin-left: 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .score-breakdown { grid-template-columns: 1fr 1fr; }
  .page-content { padding: 1.25rem; }
}
@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .page-content { padding: 1rem; }
}
