/* HireFlow AI — Main CSS */

:root,
[data-theme="dracula"] {
  --bg-primary: #282a36;
  --bg-secondary: #21222c;
  --bg-tertiary: #44475a;
  --bg-card: #2d2f3e;
  --bg-hover: #373949;
  --text-primary: #f8f8f2;
  --text-secondary: #6272a4;
  --text-muted: #44475a;
  --accent-primary: #bd93f9;
  --accent-secondary: #50fa7b;
  --accent-danger: #ff5555;
  --accent-warning: #f1fa8c;
  --accent-info: #8be9fd;
  --accent-pink: #ff79c6;
  --accent-orange: #ffb86c;
  --border-color: #44475a;
  --border-radius: 0.5rem;
  --shadow: 0 4px 20px rgba(0,0,0,0.4);
  --shadow-hover: 0 8px 30px rgba(189,147,249,0.15);
  --transition: 0.2s ease;
}

[data-theme="dark"] {
  --bg-primary: #0d1117;
  --bg-secondary: #161b22;
  --bg-tertiary: #21262d;
  --bg-card: #1c2128;
  --bg-hover: #2d333b;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --accent-primary: #58a6ff;
  --accent-secondary: #3fb950;
  --accent-danger: #f85149;
  --accent-warning: #e3b341;
  --accent-info: #79c0ff;
  --border-color: #30363d;
  --shadow: 0 4px 20px rgba(0,0,0,0.5);
  --shadow-hover: 0 8px 30px rgba(88,166,255,0.15);
}

[data-theme="futuristic"] {
  --bg-primary: #000510;
  --bg-secondary: #000d1a;
  --bg-tertiary: #001a33;
  --bg-card: #001020;
  --bg-hover: #002040;
  --text-primary: #00ffff;
  --text-secondary: #00bcd4;
  --text-muted: #006080;
  --accent-primary: #00e5ff;
  --accent-secondary: #00ff41;
  --accent-danger: #ff0040;
  --accent-warning: #ffea00;
  --accent-info: #40c4ff;
  --border-color: #003355;
  --shadow: 0 0 20px rgba(0,229,255,0.2);
  --shadow-hover: 0 0 40px rgba(0,229,255,0.4);
}

[data-theme="light"] {
  --bg-primary: #ffffff;
  --bg-secondary: #f6f8fa;
  --bg-tertiary: #eaeef2;
  --bg-card: #ffffff;
  --bg-hover: #f3f4f6;
  --text-primary: #1f2328;
  --text-secondary: #656d76;
  --text-muted: #9ca3af;
  --accent-primary: #0969da;
  --accent-secondary: #1a7f37;
  --accent-danger: #d1242f;
  --accent-warning: #9a6700;
  --accent-info: #0550ae;
  --border-color: #d0d7de;
  --shadow: 0 1px 3px rgba(0,0,0,0.1);
  --shadow-hover: 0 4px 16px rgba(9,105,218,0.15);
}

[data-theme="glass"] {
  --bg-primary: #0f0f23;
  --bg-secondary: rgba(255,255,255,0.03);
  --bg-tertiary: rgba(255,255,255,0.08);
  --bg-card: rgba(255,255,255,0.05);
  --bg-hover: rgba(255,255,255,0.1);
  --text-primary: #ffffff;
  --text-secondary: rgba(255,255,255,0.7);
  --text-muted: rgba(255,255,255,0.4);
  --accent-primary: #a78bfa;
  --accent-secondary: #34d399;
  --accent-danger: #f87171;
  --accent-warning: #fbbf24;
  --accent-info: #60a5fa;
  --border-color: rgba(255,255,255,0.1);
  --shadow: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-hover: 0 8px 32px rgba(167,139,250,0.3);
}

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

html { font-size: 16px; scroll-behavior: smooth; }

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'Inter', 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  transition: background-color var(--transition), color var(--transition);
  min-height: 100vh;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-secondary); }
::-webkit-scrollbar-thumb { background: var(--text-secondary); border-radius: 3px; }

/* ── Links ── */
a { color: var(--accent-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent-info); }

/* ── Cards ── */
.hf-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: box-shadow var(--transition);
}
.hf-card:hover { box-shadow: var(--shadow-hover); }

/* ── Auth pages ── */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-secondary);
  padding: 1rem;
}

.auth-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
}

.auth-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.auth-logo h1 {
  color: var(--accent-primary);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.5px;
}

.auth-logo span { color: var(--accent-secondary); }

/* ── Form controls themed ── */
.form-control, .form-select {
  background-color: var(--bg-tertiary) !important;
  border: 1px solid var(--border-color) !important;
  color: var(--text-primary) !important;
  border-radius: 0.375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent-primary) !important;
  box-shadow: 0 0 0 0.2rem rgba(189,147,249,0.25) !important;
  outline: none;
  background-color: var(--bg-hover) !important;
}

.form-control::placeholder { color: var(--text-secondary); }

.form-label { color: var(--text-secondary); font-size: 0.875rem; font-weight: 500; }

/* ── Buttons ── */
.btn-hf-primary {
  background: var(--accent-primary);
  color: var(--bg-primary);
  border: none;
  border-radius: 0.375rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: opacity var(--transition), transform var(--transition);
  cursor: pointer;
}
.btn-hf-primary:hover { opacity: 0.85; transform: translateY(-1px); color: var(--bg-primary); }

.btn-hf-secondary {
  background: transparent;
  color: var(--accent-primary);
  border: 1px solid var(--accent-primary);
  border-radius: 0.375rem;
  padding: 0.6rem 1.5rem;
  font-weight: 600;
  transition: background var(--transition);
  cursor: pointer;
}
.btn-hf-secondary:hover { background: var(--bg-hover); color: var(--accent-primary); }

/* ── Alerts ── */
.alert-hf {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}
.alert-hf-danger { background: rgba(255,85,85,0.15); border: 1px solid var(--accent-danger); color: var(--accent-danger); }
.alert-hf-success { background: rgba(80,250,123,0.15); border: 1px solid var(--accent-secondary); color: var(--accent-secondary); }
.alert-hf-info { background: rgba(139,233,253,0.15); border: 1px solid var(--accent-info); color: var(--accent-info); }

/* ── Navbar ── */
.hf-navbar {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border-color);
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hf-navbar-brand {
  color: var(--accent-primary) !important;
  font-weight: 700;
  font-size: 1.25rem;
}

.hf-navbar-brand span { color: var(--accent-secondary); }

/* ── Sidebar ── */
.hf-sidebar {
  background: var(--bg-secondary);
  border-right: 1px solid var(--border-color);
  width: 220px;
  min-height: calc(100vh - 57px);
  padding: 1rem 0;
  flex-shrink: 0;
}

.hf-sidebar .nav-link {
  color: var(--text-secondary);
  padding: 0.6rem 1.25rem;
  border-radius: 0;
  transition: all var(--transition);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.hf-sidebar .nav-link:hover,
.hf-sidebar .nav-link.active {
  color: var(--accent-primary);
  background: var(--bg-hover);
  border-left: 3px solid var(--accent-primary);
}

/* ── Layout principal ── */
.hf-layout { display: flex; }
.hf-main { flex: 1; padding: 1.5rem; overflow-x: hidden; }

/* ── Profile steps ── */
.step-indicator {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 600;
  border: 2px solid var(--border-color);
  color: var(--text-muted);
}

.step-dot.active {
  border-color: var(--accent-primary);
  color: var(--accent-primary);
}

.step-dot.done {
  background: var(--accent-secondary);
  border-color: var(--accent-secondary);
  color: var(--bg-primary);
}

/* ── Dashboard cards ── */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius);
  padding: 1.25rem;
  text-align: center;
}

.stat-card .stat-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--accent-primary);
  line-height: 1;
}

.stat-card .stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

/* ── Theme switcher ── */
.theme-switcher {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.theme-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition);
}

.theme-btn:hover, .theme-btn.active { border-color: var(--text-primary); transform: scale(1.15); }
.theme-btn[data-theme="dracula"] { background: #bd93f9; }
.theme-btn[data-theme="dark"] { background: #58a6ff; }
.theme-btn[data-theme="futuristic"] { background: #00e5ff; }
.theme-btn[data-theme="light"] { background: #f6f8fa; border-color: #d0d7de; }
.theme-btn[data-theme="glass"] { background: #a78bfa; }

/* ── Responsivo ── */
@media (max-width: 768px) {
  .hf-sidebar { display: none; }
  .auth-box { padding: 1.5rem; }
}
