/* =====================================================================
   TalentInMe.org — Design System
   Deep blue primary, teal accent, clean neutral backgrounds, Inter font.
   ===================================================================== */

:root {
  --primary-color: #1a56db;
  --primary-dark: #10357e;
  --primary-light: #D9E6F2;
  --accent-color: #0d9488; /* teal */
  --accent-dark: #0b7a70;
  --success-color: #16a34a;
  --danger-color: #dc2626;
  --warning-color: #d97706;
  --neutral-bg: #f7f9fc;
  --neutral-card: #ffffff;
  --neutral-text: #1f2937;
  --neutral-muted: #6b7280;
  --border-color: #e5e7eb;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 3px rgba(16, 24, 40, 0.08);
  --shadow-md: 0 6px 20px rgba(16, 24, 40, 0.10);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);
  --transition-fast: all 0.2s ease;
  --transition-smooth: all 0.3s ease;
}

* { box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--neutral-bg);
  color: var(--neutral-text);
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--neutral-text);
}

a { color: var(--primary-color); text-decoration: none; }
a:hover { color: var(--primary-dark); }

/* ---------- Fade-in / slide-up on page load ---------- */
@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeSlideUp 0.5s ease both; }
.fade-in-delay-1 { animation: fadeSlideUp 0.5s ease 0.08s both; }
.fade-in-delay-2 { animation: fadeSlideUp 0.5s ease 0.16s both; }
.fade-in-delay-3 { animation: fadeSlideUp 0.5s ease 0.24s both; }

/* ---------- Navbar ---------- */
.navbar-brand-custom {
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--primary-color) !important;
  letter-spacing: -0.02em;
}
.navbar-custom {
  background: #fff;
  box-shadow: var(--shadow-sm);
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}
.navbar-custom .nav-link {
  position: relative;
  font-weight: 500;
  color: var(--neutral-text) !important;
  margin: 0 0.35rem;
  padding-bottom: 4px !important;
  transition: var(--transition-fast);
}
.navbar-custom .nav-link::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  height: 2px; width: 0;
  background: var(--accent-color);
  transition: var(--transition-smooth);
}
.navbar-custom .nav-link:hover::after,
.navbar-custom .nav-link.active::after { width: 100%; }
.navbar-custom .nav-link:hover { color: var(--primary-color) !important; }

/* ---------- Sidebar (admin) ---------- */
.sidebar-custom {
  background: #fff;
  min-height: calc(100vh - 64px);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 0.75rem;
}
.sidebar-custom .nav-link {
  color: var(--neutral-text);
  border-radius: var(--radius-md);
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.25rem;
  font-weight: 500;
  transition: var(--transition-fast);
}
.sidebar-custom .nav-link i { width: 20px; display: inline-block; text-align: center; margin-right: 8px; color: var(--neutral-muted); }
.sidebar-custom .nav-link:hover { background: var(--primary-light); color: var(--primary-dark); }
.sidebar-custom .nav-link.active { background: var(--primary-color); color: #fff; }
.sidebar-custom .nav-link.active i { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  border-radius: var(--radius-md);
  font-weight: 600;
  padding: 0.55rem 1.3rem;
  transition: var(--transition-smooth);
  box-shadow: var(--shadow-sm);
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  box-shadow: var(--shadow-md);
}

.btn-accent {
  background: linear-gradient(135deg, var(--accent-color), var(--accent-dark));
  border: none;
  color: #fff;
}
.btn-accent:hover { color: #fff; box-shadow: var(--shadow-md); }

.btn-outline-primary { border-color: var(--primary-color); color: var(--primary-color); }
.btn-outline-primary:hover { background: var(--primary-color); border-color: var(--primary-color); }

.btn-sm { padding: 0.35rem 0.85rem; font-size: 0.85rem; }

/* ---------- Cards ---------- */
.card-custom {
  background: var(--neutral-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
}
.card-custom:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.stat-card {
  background: var(--neutral-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: var(--transition-smooth);
  cursor: pointer;
}
.stat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.stat-card .stat-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.stat-card .stat-value { font-size: 1.9rem; font-weight: 800; color: var(--primary-dark); }
.stat-card .stat-label { color: var(--neutral-muted); font-size: 0.9rem; }

/* ---------- Hero section ---------- */
.hero-section {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary-color) 55%, var(--accent-color) 130%);
  color: #fff;
  padding: 5rem 1.5rem;
  border-radius: 0 0 32px 32px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 85% 20%, rgba(255,255,255,0.12) 0, transparent 45%),
                     radial-gradient(circle at 10% 90%, rgba(255,255,255,0.08) 0, transparent 40%);
}
.hero-section h1 { font-size: 2.6rem; font-weight: 800; position: relative; }
.hero-section p { font-size: 1.15rem; opacity: 0.92; max-width: 640px; position: relative; }
.hero-section .btn-accent { position: relative; }

/* ---------- Forms ---------- */
.form-control, .form-select {
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-color);
  padding: 0.6rem 0.9rem;
  transition: var(--transition-fast);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(26, 86, 219, 0.15);
}
.form-label { font-weight: 600; font-size: 0.92rem; color: var(--neutral-text); }
.invalid-feedback { display: block; }
.is-invalid { border-color: var(--danger-color) !important; }

/* ---------- Badges / levels ---------- */
.badge-level {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.85rem;
  background: var(--primary-light);
  color: var(--primary-dark);
}

.status-pill {
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-pending { background: #fef3c7; color: #92400e; }
.status-approved { background: #dcfce7; color: #166534; }
.status-on_hold { background: #fee2e2; color: #991b1b; }
.status-rejected { background: #fee2e2; color: #991b1b; }
.status-completed { background: #dcfce7; color: #166534; }

/* ---------- Tables ---------- */
.table-custom thead th {
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 700;
  border: none;
  white-space: nowrap;
}
.table-custom tbody tr { transition: var(--transition-fast); }
.table-custom tbody tr:hover { background: #f0f5fb; }

/* ---------- Auth pages ---------- */
.auth-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
  padding: 2rem 1rem;
}
.auth-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.5rem;
  max-width: 460px;
  width: 100%;
}

/* ---------- Wizard steps ---------- */
.wizard-steps { display: flex; gap: 0.5rem; margin-bottom: 2rem; }
.wizard-step {
  flex: 1;
  text-align: center;
  padding: 0.6rem 0.5rem;
  border-radius: var(--radius-md);
  background: var(--primary-light);
  color: var(--primary-dark);
  font-weight: 600;
  font-size: 0.85rem;
}
.wizard-step.active { background: var(--primary-color); color: #fff; }
.wizard-step.done { background: var(--accent-color); color: #fff; }

/* ---------- Notification bell ---------- */
.notif-bell { position: relative; }
.notif-badge {
  position: absolute;
  top: -4px; right: -8px;
  background: var(--danger-color);
  color: #fff;
  border-radius: 999px;
  font-size: 0.65rem;
  padding: 1px 6px;
  font-weight: 700;
}

/* ---------- Footer ---------- */
.footer-custom {
  background: #fff;
  border-top: 1px solid var(--border-color);
  padding: 1.5rem 0;
  color: var(--neutral-muted);
  font-size: 0.88rem;
  text-align: center;
  margin-top: 3rem;
}

@media (max-width: 767px) {
  .hero-section h1 { font-size: 1.9rem; }
  .hero-section { padding: 3rem 1.25rem; border-radius: 0 0 22px 22px; }
}
