@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&display=swap');

:root {
  --blue: #3576b0;
  --blue-dark: #2c6295;
  --blue-pale: #d9edfd;
  --text: #1b1f24;
  --muted: #5f6b76;
  --border: #e2e6ea;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'DM Sans', Arial, sans-serif;
  color: var(--text);
  background: #fff;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: var(--blue);
  color: #fff;
}
.site-header__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.site-header__logo img {
  height: 48px;
  background: #fff;
  padding: 8px 14px;
  border-radius: 4px;
}
.site-header__nav {
  display: flex;
  align-items: center;
  gap: 24px;
}
.site-header__nav a { color: #fff; font-weight: 500; }
.site-header__lang { opacity: 0.9; }

.hero {
  position: relative;
  height: 280px;
  overflow: hidden;
}
.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0.1) 60%);
}
.hero__title {
  position: absolute;
  left: 32px;
  bottom: 24px;
  color: #fff;
  font-size: 2rem;
  margin: 0;
  max-width: 600px;
}

.filter-bar {
  background: var(--blue-pale);
  padding: 16px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.filter-bar__select,
.filter-bar__search {
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: inherit;
  font-size: 0.95rem;
}
.filter-bar__select { min-width: 200px; }
.filter-bar__search { flex: 1; min-width: 200px; max-width: 400px; }
.filter-bar__submit {
  padding: 10px 20px;
  border-radius: 999px;
  border: none;
  background: var(--blue);
  color: #fff;
  font-weight: 500;
  cursor: pointer;
}
.filter-bar__submit:hover { background: var(--blue-dark); }

.results {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}
.results__count { margin: 0 0 12px; font-size: 1.4rem; }

.results__toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
  font-size: 0.9rem;
  color: var(--muted);
}
.results__sort a { color: var(--muted); }
.results__sort a.is-active { color: var(--blue); font-weight: 700; text-decoration: underline; }
.results__pagination { display: flex; align-items: center; gap: 10px; }
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
}
.page-btn:hover { background: var(--blue-pale); text-decoration: none; }
.results__range { color: var(--muted); }

.job-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.job-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}
.job-card__title { font-size: 1.1rem; font-weight: 700; color: var(--blue); }
.job-card__meta { margin: 6px 0 10px; color: var(--muted); font-size: 0.9rem; }
.job-card__dot { margin: 0 6px; }
.job-card__summary { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.5; max-width: 760px; }
.job-card__apply { flex-shrink: 0; }

.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.95rem;
}
.btn--primary { background: var(--blue); color: #fff; }
.btn--primary:hover { background: var(--blue-dark); text-decoration: none; }

.job-detail {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px;
}
.back-link { display: inline-block; margin-bottom: 20px; }
.job-detail__summary { line-height: 1.6; color: var(--text); margin: 20px 0 28px; white-space: pre-line; max-width: 720px; }

.apply-form { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.apply-form label { display: flex; flex-direction: column; gap: 6px; font-weight: 500; }
.apply-form input,
.apply-form select,
.apply-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.95rem;
}
.apply-form__hint { font-size: 0.82rem; color: var(--muted); font-weight: 400; margin-top: -2px; }
.apply-success { margin-top: 24px; }

.site-footer {
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 0.8rem;
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
.site-footer p { margin: 4px 0; }

.apply-form__error {
  background: #fdecea;
  color: #b3261e;
  border: 1px solid #f5c2bd;
  border-radius: 6px;
  padding: 10px 14px;
  font-size: 0.9rem;
}

/* ─── recruiter ATS ─────────────────────────────────────────────────────── */

.admin-body { background: #f4f6f8; min-height: 100vh; }

.admin-header {
  background: #1f2937;
  color: #fff;
}
.admin-header__inner {
  max-width: 1300px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.admin-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
}
.admin-header__brand img { height: 30px; background: #fff; padding: 4px 8px; border-radius: 4px; }
.admin-header__nav { display: flex; align-items: center; gap: 20px; }
.admin-header__nav a { color: #cbd5e1; }
.admin-header__nav a:hover { color: #fff; }
.admin-header__logout { margin: 0; }
.admin-header__logout button {
  background: none;
  border: 1px solid #4b5563;
  color: #cbd5e1;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}
.admin-header__logout button:hover { color: #fff; border-color: #9ca3af; }

.admin-main {
  max-width: 1300px;
  margin: 0 auto;
  padding: 28px 24px 60px;
}
.admin-main h1 { margin: 0 0 20px; }
.admin-main__subhead { margin: 32px 0 14px; font-size: 1.1rem; }
.admin-main__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.admin-main__head h1 { margin: 0; }

.btn--outline { background: #fff; border: 1px solid var(--border); color: var(--text); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.tag.open { background: #e6f4ea; color: #1a7f37; }
.tag.closed { background: #f3f4f6; color: #6b7280; }

.stage-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.stage-summary__card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  min-width: 130px;
  border-top: 4px solid var(--blue);
  text-decoration: none;
  color: inherit;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.stage-summary__card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.08); }
.stage-summary__card--rejected { border-top-color: #b3261e; }
.stage-summary__card--hired { border-top-color: #1a7f37; }
.stage-summary__card--total { border-top-color: #1f2937; background: #1f2937; color: #fff; }
.stage-summary__count { display: block; font-size: 1.6rem; font-weight: 700; }
.stage-summary__label { display: block; font-size: 0.85rem; color: var(--muted); }
.stage-summary__card--total .stage-summary__label { color: #cbd5e1; }

.muted { color: var(--muted); }

.stage-select {
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.82rem;
  background: #fff;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.admin-table th, .admin-table td {
  text-align: left;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
}
.admin-table th { background: #f4f6f8; color: var(--muted); font-weight: 600; }
.admin-table tr:last-child td { border-bottom: none; }

.btn--small { padding: 6px 14px; font-size: 0.85rem; }

.login-screen {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 36px;
  width: 100%;
  max-width: 340px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  text-align: center;
}
.login-card__logo { height: 44px; align-self: center; margin-bottom: 8px; }
.login-card h1 { margin: 0; font-size: 1.3rem; }
.login-card__sub { margin: 0; color: var(--muted); font-size: 0.9rem; }
.login-card__error { color: #b3261e; font-size: 0.88rem; margin: 0; }
.login-card label { display: flex; flex-direction: column; gap: 6px; text-align: left; font-weight: 500; font-size: 0.9rem; }
.login-card input {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
}

.kanban {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-top: 24px;
}
.kanban__column {
  background: #eef1f4;
  border-radius: 10px;
  min-width: 250px;
  flex: 1 0 250px;
  display: flex;
  flex-direction: column;
  max-height: 75vh;
}
.kanban__column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}
.kanban__column-count {
  background: #fff;
  border-radius: 999px;
  padding: 1px 9px;
  font-size: 0.78rem;
  color: var(--muted);
}
.kanban__cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 10px 10px;
  overflow-y: auto;
}
.kanban__empty { color: var(--muted); font-size: 0.85rem; padding: 0 4px; }

.kanban-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.kanban-card__name { font-weight: 700; font-size: 0.92rem; }
.kanban-card__contact { display: flex; flex-direction: column; gap: 2px; font-size: 0.8rem; color: var(--muted); }
.kanban-card__notes-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 8px;
  font-family: inherit;
  font-size: 0.8rem;
  resize: vertical;
}
.kanban-card__stage-form select {
  width: 100%;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.82rem;
}
.kanban-card__meta { font-size: 0.72rem; color: #9aa4ae; }
.kanban-card__resume {
  font-size: 0.8rem;
  background: var(--blue-pale);
  border-radius: 6px;
  padding: 5px 8px;
  display: inline-block;
}
