/* ============================================================
   TalentVault — Main Stylesheet
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;1,300&display=swap');

:root {
  --bg: #0a0a0f;
  --surface: #12121a;
  --surface2: #1a1a25;
  --surface3: #22223a;
  --border: #2a2a3a;
  --accent: #6c63ff;
  --accent-hover: #7c74ff;
  --accent2: #ff6b6b;
  --green: #00d68f;
  --gold: #ffd700;
  --danger: #ff4757;
  --warning: #ffa502;
  --text: #e8e8f0;
  --text2: #8888aa;
  --text3: #555570;
  --radius: 14px;
  --shadow: 0 8px 30px rgba(0,0,0,0.4);
  --shadow-accent: 0 8px 24px rgba(108,99,255,0.25);
}

*, *::before, *::after { margin:0; padding:0; box-sizing:border-box; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 3px; }

/* TYPOGRAPHY */
h1,h2,h3,h4 { font-family: 'Syne', sans-serif; font-weight: 700; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

/* LAYOUT */
.container { max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.page-content { padding: 2rem 1.5rem; max-width: 1280px; margin: 0 auto; }

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(10,10,15,0.94);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  height: 64px;
  display: flex; align-items: center;
}
.navbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem;
}
.nav-logo { font-family: 'Syne', sans-serif; font-size: 1.4rem; font-weight: 800; }
.nav-logo .accent { color: var(--accent); }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link {
  padding: 0.45rem 0.9rem; border-radius: 8px; font-size: 0.875rem;
  font-weight: 500; color: var(--text2); transition: all 0.2s;
}
.nav-link:hover, .nav-link.active { background: var(--surface); color: var(--text); }
.nav-right { display: flex; align-items: center; gap: 0.75rem; }
.nav-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #a855f7);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; cursor: pointer;
  border: 2px solid var(--border);
}
.notif-badge {
  position: relative; cursor: pointer;
}
.notif-badge .count {
  position: absolute; top: -6px; right: -6px;
  background: var(--danger); color: #fff;
  font-size: 0.65rem; font-weight: 700;
  border-radius: 100px; padding: 1px 5px;
  min-width: 18px; text-align: center;
}

/* HERO SECTION */
.hero {
  padding: 5rem 1.5rem;
  text-align: center;
  background: radial-gradient(ellipse at 50% 0%, rgba(108,99,255,0.18) 0%, transparent 65%);
  position: relative; overflow: hidden;
}
.hero h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1.1; margin-bottom: 1.25rem; }
.hero h1 span { color: var(--accent); }
.hero p { color: var(--text2); font-size: 1.15rem; max-width: 580px; margin: 0 auto 2.5rem; }
.hero-stats {
  display: flex; justify-content: center; gap: 4rem; margin-top: 3rem;
  flex-wrap: wrap;
}
.hero-stat .num { font-family: 'Syne',sans-serif; font-size: 2.2rem; font-weight: 800; color: var(--accent); }
.hero-stat .lbl { font-size: 0.8rem; color: var(--text2); }

/* SEARCH BAR */
.search-box {
  display: flex; gap: 0.75rem; max-width: 760px; margin: 0 auto;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0.75rem;
}
.search-box input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 0.95rem; font-family: 'DM Sans',sans-serif;
}
.search-box input::placeholder { color: var(--text3); }
.search-box select {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  color: var(--text2); font-family: 'DM Sans',sans-serif; font-size: 0.85rem;
  padding: 0.4rem 0.75rem; outline: none; cursor: pointer;
}

/* CARDS */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  transition: all 0.25s; position: relative; overflow: hidden;
}
.card:hover { border-color: rgba(108,99,255,0.5); box-shadow: var(--shadow-accent); }

.card-job { cursor: default; }
.card-job .job-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1rem; }
.company-logo-box {
  width: 50px; height: 50px; border-radius: 12px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; flex-shrink: 0;
}
.job-title-main { font-family: 'Syne',sans-serif; font-size: 1.05rem; font-weight: 700; margin-bottom: 2px; }
.job-company { font-size: 0.83rem; color: var(--text2); }
.job-salary { font-family: 'Syne',sans-serif; font-size: 1.1rem; font-weight: 800; color: var(--green); }
.job-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0.65rem 0; }
.meta-pill { font-size: 0.78rem; color: var(--text2); display: flex; align-items: center; gap: 4px; }
.job-desc { font-size: 0.83rem; color: var(--text2); line-height: 1.55; margin-bottom: 0.75rem; }
.job-footer { display: flex; justify-content: space-between; align-items: center; }
.posted-time { font-size: 0.78rem; color: var(--text3); }

/* TAGS / BADGES */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 100px; font-size: 0.75rem; font-weight: 500;
  background: rgba(108,99,255,0.15); color: var(--accent);
  border: 1px solid rgba(108,99,255,0.25);
}
.tag-green { background: rgba(0,214,143,0.12); color: var(--green); border-color: rgba(0,214,143,0.25); }
.tag-red { background: rgba(255,71,87,0.12); color: var(--danger); border-color: rgba(255,71,87,0.25); }
.tag-gold { background: rgba(255,215,0,0.12); color: var(--gold); border-color: rgba(255,215,0,0.25); }
.tag-orange { background: rgba(255,165,2,0.12); color: var(--warning); border-color: rgba(255,165,2,0.25); }
.tag-gray { background: var(--surface2); color: var(--text2); border-color: var(--border); }

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 0.6rem 1.3rem; border-radius: 10px; font-size: 0.875rem; font-weight: 500;
  cursor: pointer; border: none; font-family: 'DM Sans',sans-serif; transition: all 0.2s;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); box-shadow: 0 4px 15px rgba(108,99,255,0.4); color: #fff; }
.btn-outline { background: transparent; color: var(--text); border: 1px solid var(--border); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #ff6070; color: #fff; }
.btn-green { background: var(--green); color: #000; font-weight: 600; }
.btn-green:hover { background: #00f0a0; color: #000; }
.btn-gold { background: var(--gold); color: #000; font-weight: 600; }
.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.8rem; border-radius: 8px; }
.btn-lg { padding: 0.8rem 1.8rem; font-size: 1rem; }
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* FORMS */
.form-group { margin-bottom: 1.25rem; }
.form-label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--text2); margin-bottom: 0.4rem; }
.form-label span.req { color: var(--danger); margin-left: 3px; }
.form-input, .form-select, .form-textarea {
  width: 100%; background: var(--surface2); border: 1px solid var(--border);
  border-radius: 10px; padding: 0.65rem 0.9rem; color: var(--text);
  font-family: 'DM Sans',sans-serif; font-size: 0.9rem; outline: none;
  transition: border-color 0.2s;
}
.form-input:focus, .form-select:focus, .form-textarea:focus { border-color: var(--accent); }
.form-input::placeholder { color: var(--text3); }
.form-textarea { resize: vertical; min-height: 100px; }
.form-select option { background: var(--surface2); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 1rem; }
.form-error { color: var(--danger); font-size: 0.8rem; margin-top: 0.3rem; }
.form-success { color: var(--green); font-size: 0.8rem; margin-top: 0.3rem; }

/* STAR RATING */
.stars { display: inline-flex; gap: 2px; }
.star { color: var(--text3); font-size: 1rem; cursor: pointer; transition: color 0.15s; }
.star.filled { color: var(--gold); }

/* GRIDS */
.grid-2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px,1fr)); gap: 1.25rem; }
.grid-3 { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px,1fr)); gap: 1.25rem; }
.grid-4 { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap: 1rem; }

/* STAT CARDS */
.stat-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem;
  transition: all 0.2s;
}
.stat-card:hover { border-color: var(--accent); }
.stat-num { font-family: 'Syne',sans-serif; font-size: 2rem; font-weight: 800; }
.stat-label { font-size: 0.8rem; color: var(--text2); margin-top: 4px; }
.stat-change { font-size: 0.78rem; margin-top: 6px; }
.stat-change.up { color: var(--green); }
.stat-change.down { color: var(--danger); }

/* PROGRESS BAR */
.progress-bar { background: var(--border); border-radius: 100px; height: 6px; overflow: hidden; margin: 4px 0; }
.progress-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--accent), #a855f7); transition: width 0.7s ease; }
.progress-fill.green { background: var(--green); }
.progress-fill.gold { background: var(--gold); }
.progress-fill.danger { background: var(--danger); }

/* TABLE */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border); }
table { width: 100%; border-collapse: collapse; }
th { background: var(--surface2); padding: 0.75rem 1rem; text-align: left; font-size: 0.78rem; font-weight: 600; color: var(--text2); text-transform: uppercase; letter-spacing: 0.5px; border-bottom: 1px solid var(--border); }
td { padding: 0.85rem 1rem; border-bottom: 1px solid rgba(42,42,58,0.5); font-size: 0.875rem; vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: rgba(108,99,255,0.04); }

/* AVATAR */
.avatar {
  border-radius: 50%; background: linear-gradient(135deg, var(--accent), #a855f7);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; color: #fff; font-family: 'Syne',sans-serif; flex-shrink: 0;
}

/* ALERTS */
.alert { padding: 0.9rem 1.1rem; border-radius: 10px; font-size: 0.875rem; margin-bottom: 1rem; display: flex; align-items: flex-start; gap: 0.6rem; }
.alert-success { background: rgba(0,214,143,0.1); border: 1px solid rgba(0,214,143,0.3); color: var(--green); }
.alert-error { background: rgba(255,71,87,0.1); border: 1px solid rgba(255,71,87,0.3); color: var(--danger); }
.alert-info { background: rgba(108,99,255,0.1); border: 1px solid rgba(108,99,255,0.3); color: var(--accent); }
.alert-warning { background: rgba(255,165,2,0.1); border: 1px solid rgba(255,165,2,0.3); color: var(--warning); }

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

/* SECTION */
.section-title { font-family: 'Syne',sans-serif; font-size: 1.5rem; font-weight: 800; margin-bottom: 0.25rem; }
.section-sub { color: var(--text2); font-size: 0.9rem; margin-bottom: 1.5rem; }

/* FILTER CHIPS */
.filter-bar { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.5rem; }
.chip {
  padding: 0.38rem 0.9rem; border-radius: 100px; font-size: 0.82rem; font-weight: 500;
  cursor: pointer; border: 1px solid var(--border); background: var(--surface);
  color: var(--text2); transition: all 0.2s; text-decoration: none; display: inline-block;
}
.chip:hover, .chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* MODAL */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.75); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 2rem; width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto;
  animation: modalIn 0.3s ease;
}
.modal-lg { max-width: 720px; }
@keyframes modalIn { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:none} }
.modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; }
.modal-title { font-family: 'Syne',sans-serif; font-size: 1.2rem; font-weight: 700; }
.modal-close {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 8px;
  width: 32px; height: 32px; cursor: pointer; color: var(--text2); font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center; transition: all 0.2s; line-height: 1;
}
.modal-close:hover { background: var(--danger); color: #fff; border-color: var(--danger); }

/* SIDEBAR LAYOUT */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; gap: 0; min-height: calc(100vh - 64px); }
.sidebar {
  background: var(--surface); border-right: 1px solid var(--border);
  padding: 1.5rem 1rem; position: sticky; top: 64px; height: calc(100vh - 64px); overflow-y: auto;
}
.sidebar-menu { list-style: none; display: flex; flex-direction: column; gap: 2px; }
.sidebar-item a {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.6rem 0.75rem; border-radius: 10px; font-size: 0.875rem;
  font-weight: 500; color: var(--text2); transition: all 0.2s; text-decoration: none;
}
.sidebar-item a:hover, .sidebar-item a.active { background: rgba(108,99,255,0.15); color: var(--text); }
.sidebar-item a.active { color: var(--accent); }
.sidebar-divider { height: 1px; background: var(--border); margin: 0.75rem 0; }
.sidebar-label { font-size: 0.7rem; font-weight: 600; color: var(--text3); text-transform: uppercase; letter-spacing: 1px; padding: 0.5rem 0.75rem 0.25rem; }
.dash-main { padding: 2rem; overflow-y: auto; }

/* INTERVIEW CARD */
.interview-card { border-left: 3px solid var(--accent); padding-left: 1rem; margin-bottom: 1rem; }
.interview-card.video { border-color: var(--green); }
.interview-card.physical { border-color: var(--gold); }
.interview-card.phone { border-color: var(--warning); }

/* SKILL TAGS INPUT */
.skills-input-wrap { display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0.5rem; background: var(--surface2); border: 1px solid var(--border); border-radius: 10px; min-height: 44px; cursor: text; }
.skill-tag-item { background: rgba(108,99,255,0.2); color: var(--accent); padding: 3px 8px; border-radius: 6px; font-size: 0.78rem; display: inline-flex; align-items: center; gap: 4px; }
.skill-tag-item .remove { cursor: pointer; opacity: 0.7; }
.skill-tag-item .remove:hover { opacity: 1; }
.skills-input-wrap input { flex: 1; min-width: 120px; background: transparent; border: none; outline: none; color: var(--text); font-size: 0.875rem; font-family: 'DM Sans',sans-serif; padding: 2px 4px; }

/* FEEDBACK */
.feedback-item { background: var(--surface2); border-radius: 12px; padding: 1rem; margin-bottom: 0.75rem; border: 1px solid var(--border); }

/* EMPTY STATE */
.empty-state { text-align: center; padding: 4rem 2rem; color: var(--text2); }
.empty-state .icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-family: 'Syne',sans-serif; font-size: 1.2rem; color: var(--text); margin-bottom: 0.5rem; }

/* TABS */
.tabs { display: flex; gap: 0.25rem; background: var(--surface); border-radius: 12px; padding: 4px; margin-bottom: 1.5rem; width: fit-content; }
.tab-btn { padding: 0.45rem 1rem; border-radius: 8px; cursor: pointer; font-size: 0.85rem; color: var(--text2); border: none; background: transparent; font-family: 'DM Sans',sans-serif; transition: all 0.2s; }
.tab-btn.active { background: var(--accent); color: #fff; }
.tab-pane { display: none; }
.tab-pane.active { display: block; animation: fadeIn 0.25s ease; }

/* FOOTER */
footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding: 3rem 1.5rem 1.5rem; margin-top: 4rem;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.footer-logo { font-family: 'Syne',sans-serif; font-size: 1.3rem; font-weight: 800; margin-bottom: 0.75rem; }
.footer-desc { color: var(--text2); font-size: 0.85rem; line-height: 1.6; }
.footer-heading { font-family: 'Syne',sans-serif; font-size: 0.9rem; font-weight: 700; margin-bottom: 0.75rem; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.5rem; }
.footer-links a { color: var(--text2); font-size: 0.85rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 1.25rem; display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { color: var(--text2); font-size: 0.8rem; }

/* ANIMATIONS */
@keyframes fadeIn { from{opacity:0;transform:translateY(6px)} to{opacity:1;transform:none} }
@keyframes slideUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:none} }
.fade-in { animation: fadeIn 0.3s ease; }

/* TOAST */
.toast-container { position: fixed; bottom: 2rem; right: 2rem; display: flex; flex-direction: column; gap: 0.6rem; z-index: 9999; }
.toast {
  background: var(--surface2); border: 1px solid var(--border); border-radius: 12px;
  padding: 0.9rem 1.2rem; font-size: 0.85rem; min-width: 260px; max-width: 340px;
  display: flex; align-items: center; gap: 0.65rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  animation: slideUp 0.3s ease;
}
.toast.success { border-left: 3px solid var(--green); }
.toast.error { border-left: 3px solid var(--danger); }
.toast.info { border-left: 3px solid var(--accent); }

/* RESPONSIVE */
@media (max-width: 768px) {
  .dash-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .form-row, .form-row-3 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.2rem; }
  .hero-stats { gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
  .search-box { flex-direction: column; }
}
