:root {
  --bg: #f4f7fb;
  --card: #ffffff;
  --text: #132030;
  --muted: #516070;
  --accent: #006d77;
  --accent-light: #e6f7f8;
  --danger: #b42318;
  --border: #d5dee8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, #eef4ff 0%, var(--bg) 45%);
}

.hero {
  padding: 2rem 1rem;
}

.hero-top {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.hero h1 {
  margin: 0;
}

.hero p {
  margin: 0 auto 1rem;
  max-width: 760px;
  color: var(--muted);
}

.lang-picker {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.lang-picker select {
  min-width: 130px;
}

main {
  max-width: 1100px;
  margin: 0 auto 2rem;
  padding: 0 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
  box-shadow: 0 8px 26px rgba(16, 24, 40, 0.08);
  margin-bottom: 1rem;
}

.hidden {
  display: none;
}

form {
  display: grid;
  gap: 0.75rem;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

input,
textarea,
select,
button {
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--border);
  padding: 0.55rem 0.7rem;
}

textarea {
  min-height: 70px;
}

button,
.button {
  background: var(--accent);
  color: #fff;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.button:hover {
  opacity: 0.92;
}

.row {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.space-between {
  justify-content: space-between;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 1rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 1rem;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

th,
td {
  border-bottom: 1px solid var(--border);
  text-align: left;
  padding: 0.5rem;
  vertical-align: top;
}

th {
  background: var(--accent-light);
}

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

.message {
  min-height: 1.2rem;
  color: var(--danger);
}

.hint {
  color: var(--muted);
  font-size: 0.85rem;
}

.panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  margin-top: 0.75rem;
}

.auth-switch {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.auth-mode-btn {
  background: #edf2f7;
  color: var(--text);
  border: 1px solid var(--border);
}

.auth-mode-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.dashboard-nav {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.nav-btn {
  background: #edf2f7;
  color: var(--text);
  border: 1px solid var(--border);
}

.nav-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.page-form {
  max-width: 680px;
  margin-bottom: 1rem;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(160px, 1fr));
  gap: 0.5rem;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.candidate-profile p {
  margin: 0 0 0.35rem;
}

.docs-list {
  display: grid;
  gap: 0.35rem;
}

.doc-link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.doc-link:hover {
  text-decoration: underline;
}

.dynamic-list {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.dynamic-row {
  border: 1px dashed var(--border);
  border-radius: 8px;
  padding: 0.65rem;
  display: grid;
  gap: 0.6rem;
}

.secondary-btn {
  background: #edf2f7;
  color: var(--text);
  border: 1px solid var(--border);
}

.danger-btn {
  background: #fde8e8;
  color: #9b1c1c;
  border: 1px solid #f5c2c2;
}

.status-tag {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.status-tag.submitted {
  background: #edf2f7;
  color: #1f2937;
}

.status-tag.interview {
  background: #fff4d6;
  color: #8a5700;
}

.status-tag.accepted {
  background: #ddfbe6;
  color: #106835;
}

.status-tag.denied {
  background: #fde8e8;
  color: #9b1c1c;
}

.status-tag.hired {
  background: #d7f5e4;
  color: #0d6b35;
}

.status-tag.not-hired {
  background: #ffe9e9;
  color: #8f1a1a;
}

.status-tag.pending-final {
  background: #eef2ff;
  color: #3730a3;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.stat-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem;
  background: #fbfdff;
}

.stat-card h4 {
  margin: 0 0 0.4rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.stat-card p {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 600;
}

@media (max-width: 900px) {
  .hero-top {
    flex-direction: column;
    align-items: flex-start;
  }
  .grid-2,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .checkbox-grid {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
