/* Workvend : Healthcare Talent Platform - Modern Design System */
:root {
  --navy: #000000;
  --yellow:#f3f500;
  --navy-dark: #0c2640;
  --blue: #2168a8;
  --blue-light: #eaf3fb;
  --teal: #10b981;
  --amber: #f59e0b;
  --rose: #e11d48;
  --ink: #1e293b;
  --slate: #475569;
  --muted: #333;
  --line: #e2e8f0;
  --bg: #f8fafc;
  --card-bg: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 20px -2px rgba(18, 57, 95, 0.08);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background-color: var(--bg);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
.container { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

/* Navbar */
header.app-header {
  background: #ffffff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
}
.nav-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--navy);
  letter-spacing: -0.03em;
}
.brand-badge {
  /* background: linear-gradient(135deg, var(--navy), var(--blue)); */
  color: #fff;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 900;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
}
.nav-links a {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--slate);
  transition: color 0.2s;
}
.nav-links a:hover { color: var(--blue); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 8px;
  font-weight: 650;
  font-size: 0.92rem;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  text-decoration: none;
}
.btn-primary {
  background: var(--yellow);
  color: #000 !important;
}
.btn-primary:hover {
  background: var(--navy);
}
.btn-outline {
  border-color: var(--line);
  background: #ffffff;
  color: var(--navy);
}
.btn-outline:hover {
  border-color: var(--blue);
  background: var(--blue-light);
}
.btn-success { background: var(--teal); color: #fff !important; }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--rose); color: #fff !important; }
.btn-danger:hover { background: #be123c; }
.btn-sm { padding: 6px 12px; font-size: 0.82rem; }

/* Alerts / Flash Messages */
/* .flash-wrap { margin-top: 18px; } */
.alert {
  padding: 12px 18px;
  border-radius: 8px;
  font-size: 0.92rem;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-error { background: #fff1f2; color: #9f1239; border: 1px solid #fecdd3; }
.alert-info { background: #eff6ff; color: #1e40af; border: 1px solid #bfdbfe; }

/* Hero Section */
.hero-section {
  background: linear-gradient(135deg, #102a45 0%, #174573 50%, #20629b 100%);
  color: #ffffff;
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-tagline {
  display: inline-block;
  background: rgba(255, 255, 255, 0.12);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #a5f3fc;
  margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 850;
  line-height: 1.15;
  letter-spacing: -0.03em;
  max-width: 800px;
  margin-bottom: 18px;
}
.hero-sub {
  font-size: 1.15rem;
  color: #e2e8f0;
  max-width: 680px;
  margin-bottom: 32px;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* Feature Grid / Cards */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin: 36px 0;
}
.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px -4px rgba(18, 57, 95, 0.12);
}
.card-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
  background: var(--blue-light);
}
.card-title {
  font-size: 1.2rem;
  font-weight: 750;
  color: var(--navy);
  margin-bottom: 8px;
}
.card-desc {
  font-size: 0.94rem;
  color: var(--slate);
  margin-bottom: 18px;
}

/* Stat Counters */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  line-height: 1.1;
}
.stat-label {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 600;
  margin-top: 4px;
}

/* Tabs */
.tabs-nav {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--line);
  margin-bottom: 24px;
  overflow-x: auto;
}
.tab-link {
  padding: 12px 20px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--muted);
  border-bottom: 3px solid transparent;
  cursor: pointer;
  background: none;
  border-top: 0;
  border-left: 0;
  border-right: 0;
  white-space: nowrap;
  transition: all 0.2s;
}
.tab-link:hover {
  color: var(--blue);
}
.tab-link.active {
  color: var(--black);
  border-bottom-color: var(--yellow);
}
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}
table.data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}
table.data-table th {
  background: #f1f5f9;
  color: var(--navy);
  font-weight: 750;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
}
table.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  vertical-align: middle;
}
table.data-table tr:hover {
  background: #f8fafc;
}

/* Badges */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 0.76rem;
  font-weight: 750;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.badge-blue { background: #e0f2fe; color: #0369a1; }
.badge-green { background: #dcfce7; color: #15803d; }
.badge-amber { background: #fef3c7; color: #b45309; }
.badge-red { background: #ffe4e6; color: #be123c; }
.badge-purple { background: #f3e8ff; color: #7e22ce; }

/* Forms */
.form-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.form-group.full { grid-column: 1 / -1; }
.form-label {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}
.form-control {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.94rem;
  font-family: inherit;
  color: var(--ink);
  background: #ffffff;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-control:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(33, 104, 168, 0.15);
}
.form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 2px; }

/* Password Input with Eye Toggle */
.password-wrap {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
}
.password-wrap input {
  padding-right: 44px;
}
.password-toggle-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease;
  line-height: 0;
}
.password-toggle-btn:hover {
  color: var(--navy);
  background: #f1f5f9;
}
.password-toggle-btn:focus {
  outline: 2px solid var(--blue);
  color: var(--navy);
}

/* Modals */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal-dialog {
  background: #ffffff;
  width: min(720px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  border: 1px solid var(--line);
}
.modal-header {
  padding: 18px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f8fafc;
}
.modal-title { font-size: 1.25rem; font-weight: 800; color: var(--navy); }
.modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--muted);
}
.modal-body { padding: 24px; }
.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: #f8fafc;
}
.photo-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 56px 24px 24px;
  background: rgba(0, 0, 0, 0.88);
}
.photo-viewer-overlay.show { display: flex; }
.photo-viewer-image {
  display: block;
  max-width: min(100%, 1200px);
  max-height: 100%;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
}
.photo-viewer-close {
  position: absolute;
  top: 14px;
  right: 22px;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
}

/* Footer */
footer.app-footer {
  background: #0f2742;
  color: #94a3b8;
  padding: 48px 0 32px;
  margin-top: 80px;
  font-size: 0.9rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 32px;
}
.footer-brand { color: #fff; font-size: 1.2rem; font-weight: 800; margin-bottom: 8px; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.85rem;
}

@media (max-width: 768px) {
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}