/* ============================================================
   FINTECH HI.RE — TALENT PORTAL
   Clean Professional Light Theme
   ============================================================ */

:root {
  --navy:       #1a2744;
  --navy-light: #243155;
  --gold:       #c8972a;
  --gold-light: #f0a830;
  --white:      #ffffff;
  --bg:         #f4f6fa;
  --bg-card:    #ffffff;
  --text:       #1a202c;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --border:     #e2e8f0;
  --border-dark:#cbd5e1;
  --success:    #059669;
  --success-bg: #ecfdf5;
  --error:      #dc2626;
  --error-bg:   #fef2f2;
  --warning:    #d97706;
  --warning-bg: #fffbeb;
  --info:       #2563eb;
  --info-bg:    #eff6ff;
  --radius:     8px;
  --radius-lg:  12px;
  --shadow:     0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.1);
  --transition: 0.18s ease;
  --font:       'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* ── Reset ───────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-light); }
img { max-width: 100%; display: block; }
ul { list-style: none; }

/* ── Nav ─────────────────────────────────────────────────────── */
.nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  flex-shrink: 0;
}
.nav-logo-img  { height: 32px; width: auto; }
.nav-logo-text { font-weight: 700; font-size: 18px; color: var(--white); letter-spacing: 0.04em; }
.nav-region    { font-size: 11px; color: var(--gold); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link  { padding: 7px 14px; border-radius: var(--radius); font-size: 14px; font-weight: 500; color: rgba(255,255,255,0.8); transition: all var(--transition); }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.08); }
.nav-btn {
  background: var(--gold) !important;
  color: var(--white) !important;
  padding: 7px 18px !important;
  border-radius: var(--radius) !important;
}
.nav-btn:hover { background: var(--gold-light) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all var(--transition); }

/* ── Layout ──────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.page-wrap  { flex: 1; padding: 40px 0 80px; }

/* ── Page header ─────────────────────────────────────────────── */
.page-header {
  background: var(--navy);
  padding: 48px 0 44px;
  margin-bottom: 40px;
}
.page-header .container { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.page-eyebrow { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.page-title   { font-size: 32px; font-weight: 700; color: var(--white); line-height: 1.2; }
.page-desc    { font-size: 15px; color: rgba(255,255,255,0.65); margin-top: 8px; }

/* ── Cards ───────────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.card-sm { padding: 24px; }
.card-title { font-size: 18px; font-weight: 600; color: var(--navy); margin-bottom: 20px; }
.card-title-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }

/* ── Forms ───────────────────────────────────────────────────── */
.form-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group  { display: flex; flex-direction: column; gap: 6px; }
.form-group.full { grid-column: 1 / -1; }
.form-label  { font-size: 13px; font-weight: 600; color: var(--text); }
.form-label .req { color: var(--error); margin-left: 2px; }

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--border-dark);
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(200,151,42,0.12);
}
.form-textarea { resize: vertical; min-height: 100px; }
.form-hint     { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.form-error    { font-size: 12px; color: var(--error); margin-top: 2px; }

/* Rate row */
.rate-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ── Buttons ─────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  border: 2px solid transparent;
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary   { background: var(--gold); color: var(--white); border-color: var(--gold); }
.btn-primary:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--white); }
.btn-navy      { background: var(--navy); color: var(--white); border-color: var(--navy); }
.btn-navy:hover { background: var(--navy-light); color: var(--white); }
.btn-outline   { background: transparent; color: var(--navy); border-color: var(--border-dark); }
.btn-outline:hover { border-color: var(--navy); }
.btn-danger    { background: var(--error); color: var(--white); border-color: var(--error); }
.btn-sm        { padding: 6px 14px; font-size: 13px; }
.btn-lg        { padding: 13px 28px; font-size: 15px; width: 100%; }
.btn:disabled  { opacity: 0.5; cursor: not-allowed; }

/* ── Alerts ──────────────────────────────────────────────────── */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.alert-success { background: var(--success-bg); color: #065f46; border: 1px solid #a7f3d0; }
.alert-error   { background: var(--error-bg);   color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: var(--warning-bg); color: #92400e; border: 1px solid #fde68a; }
.alert-info    { background: var(--info-bg);    color: #1e40af; border: 1px solid #bfdbfe; }

/* ── Availability badges ─────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.badge-available    { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.badge-temp         { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.badge-unavailable  { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }

/* ── Availability toggle (big prominent toggle on dashboard) ─── */
.avail-toggle-wrap {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius-lg);
  padding: 32px;
  color: var(--white);
  margin-bottom: 24px;
}
.avail-toggle-title { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gold); margin-bottom: 12px; font-weight: 600; }
.avail-toggle-status { font-size: 26px; font-weight: 700; margin-bottom: 20px; }
.avail-toggle-btns  { display: flex; gap: 10px; flex-wrap: wrap; }
.avail-btn {
  padding: 9px 18px;
  border-radius: var(--radius);
  border: 2px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.8);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.avail-btn:hover, .avail-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--white);
}
.avail-date-wrap { margin-top: 16px; display: none; }
.avail-date-wrap.show { display: block; }
.avail-date-wrap label { font-size: 13px; color: rgba(255,255,255,0.7); display: block; margin-bottom: 6px; }
.avail-date-wrap input {
  padding: 9px 14px;
  border-radius: var(--radius);
  border: 1.5px solid rgba(255,255,255,0.2);
  background: rgba(255,255,255,0.1);
  color: var(--white);
  font-size: 14px;
  font-family: var(--font);
  outline: none;
}

/* ── Dashboard profile summary ───────────────────────────────── */
.profile-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 32px;
}
.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 28px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--gold);
}
.profile-name   { font-size: 22px; font-weight: 700; color: var(--navy); }
.profile-meta   { font-size: 14px; color: var(--text-muted); margin-top: 4px; }
.profile-tags   { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.profile-tag    {
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 100px;
  background: #f1f5f9;
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-weight: 500;
}

/* ── Dashboard grid ──────────────────────────────────────────── */
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dash-grid.three { grid-template-columns: 1fr 1fr 1fr; }
.stat-card { text-align: center; padding: 24px; }
.stat-value { font-size: 32px; font-weight: 700; color: var(--navy); }
.stat-label { font-size: 13px; color: var(--text-muted); margin-top: 4px; }

/* ── CV upload area ──────────────────────────────────────────── */
.cv-drop-area {
  border: 2px dashed var(--border-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  position: relative;
}
.cv-drop-area:hover, .cv-drop-area.dragover {
  border-color: var(--gold);
  background: rgba(200,151,42,0.03);
}
.cv-drop-area input[type="file"] {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.cv-drop-icon   { font-size: 36px; margin-bottom: 10px; }
.cv-drop-text   { font-size: 15px; color: var(--text-muted); }
.cv-drop-text strong { color: var(--gold); }
.cv-drop-hint   { font-size: 12px; color: var(--text-light); margin-top: 6px; }
.cv-current     { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--success-bg); border: 1px solid #a7f3d0; border-radius: var(--radius); margin-top: 16px; }
.cv-current-name { font-size: 14px; font-weight: 500; color: #065f46; }

/* ── Auth pages ──────────────────────────────────────────────── */
.auth-wrap {
  min-height: calc(100vh - 68px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-logo img { height: 40px; margin: 0 auto 8px; }
.auth-logo-text { font-weight: 700; font-size: 20px; color: var(--navy); }
.auth-logo-region { font-size: 12px; color: var(--text-muted); }
.auth-title { font-size: 24px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.auth-sub   { font-size: 14px; color: var(--text-muted); margin-bottom: 28px; }
.auth-footer { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 20px; }

/* ── Password strength ───────────────────────────────────────── */
.pw-strength { height: 4px; border-radius: 2px; margin-top: 6px; transition: all 0.3s; background: var(--border); }
.pw-strength-weak   { background: var(--error); width: 33%; }
.pw-strength-medium { background: var(--warning); width: 66%; }
.pw-strength-strong { background: var(--success); width: 100%; }

/* ── Admin ───────────────────────────────────────────────────── */
.admin-nav { background: #0f1829; }
.filter-bar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: end;
}
.candidate-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.candidate-table th {
  text-align: left;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 2px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  white-space: nowrap;
}
.candidate-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.candidate-table tr:hover td { background: #f8fafc; }
.candidate-table .candidate-name { font-weight: 600; color: var(--navy); }
.candidate-table .candidate-email { font-size: 13px; color: var(--text-muted); }

/* Pagination */
.pagination { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 32px; }
.page-btn, .page-num {
  padding: 8px 14px;
  border: 1px solid var(--border-dark);
  border-radius: var(--radius);
  font-size: 14px;
  color: var(--text-muted);
  background: var(--white);
  cursor: pointer;
  transition: all var(--transition);
  font-family: var(--font);
}
.page-btn:hover, .page-num:hover { border-color: var(--gold); color: var(--gold); }
.page-num.active { background: var(--gold); border-color: var(--gold); color: var(--white); font-weight: 700; }
.page-btn:disabled { opacity: 0.3; cursor: default; }

/* Notes */
.note-list { display: flex; flex-direction: column; gap: 12px; }
.note-item { padding: 14px 16px; background: #f8fafc; border-radius: var(--radius); border-left: 3px solid var(--gold); }
.note-meta { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.note-text { font-size: 14px; color: var(--text); }

/* ── Footer ──────────────────────────────────────────────────── */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.6);
  padding: 24px 0;
  margin-top: auto;
  text-align: center;
  font-size: 13px;
}
.footer a { color: var(--gold); }
.footer-note { margin-top: 4px; font-size: 12px; opacity: 0.7; }

/* ── Utilities ───────────────────────────────────────────────── */
.text-center { text-align: center; }
.text-muted  { color: var(--text-muted); }
.text-gold   { color: var(--gold); }
.text-navy   { color: var(--navy); }
.mt-8  { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.divider { border: none; border-top: 1px solid var(--border); margin: 28px 0; }
.section-title { font-size: 20px; font-weight: 700; color: var(--navy); margin-bottom: 20px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 900px) {
  .form-grid { grid-template-columns: 1fr; }
  .dash-grid, .dash-grid.three { grid-template-columns: 1fr; }
  .filter-bar { grid-template-columns: 1fr 1fr; }
  .rate-row { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--navy); padding: 16px 24px 24px; gap: 4px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: flex; }
  .auth-card { padding: 28px 20px; }
  .filter-bar { grid-template-columns: 1fr; }
  .page-title { font-size: 24px; }
  .profile-summary { grid-template-columns: 1fr; text-align: center; }
  .profile-avatar { margin: 0 auto; }
  .profile-tags { justify-content: center; }
  .avail-toggle-btns { flex-direction: column; }
}

/* ── Additional security/2FA styles ─────────────────────────── */
.btn-danger { background: var(--error); color: #fff; border-color: var(--error); }
.btn-danger:hover { background: #b91c1c; border-color: #b91c1c; }
.divider { border: none; border-top: 1px solid var(--border); margin: 20px 0; }
.req { color: var(--error); }
.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }
.mt-16 { margin-top: 16px; }
.mb-24 { margin-bottom: 24px; }
