/* ================================
   Base variables
================================ */
:root {
  --bg: #0b132b;
  --card: #1c2541;
  --accent: #3a506b;
  --text: #f0f4f8;
  --muted: #fff; /*#a9b4c4;*/
  --btn: #999; /* recruiter default button */
}

/* ================================
   Reset / base
================================ */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu;
  background: var(--bg);
  color: var(--text);
}

/* ================================
   Layout
================================ */
.container {
  max-width: 960px;
  margin: 40px auto;
  padding: 24px;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ================================
   Typography
================================ */
h1, h2, h3 {
  margin: 0 0 12px;
}

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; color: var(--muted); }

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

/* ================================
   Forms
================================ */
label {
  display: block;
  margin: 10px 0 6px;
  color: var(--muted);
}

input[type="text"],
input[type="email"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid #2e3a5a;
  background: #0d152b;
  color: var(--text);
}

/* ================================
   Buttons
================================ */
button,
.btn {
  background: var(--btn);
  color: #3a1f04;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

button:hover,
.btn:hover { filter: brightness(1.05); }

/* ================================
   Account-based button coloring
================================ */
body.account-candidate button,
body.account-candidate .btn {
  background: #5bc0be;
  color: #092327;
}

body.account-recruiter button,
body.account-recruiter .btn {
  background: #f4a261;
  color: #3a1f04;
}

/* ================================
   Alerts
================================ */
.alert {
  padding: 10px;
  border-radius: 10px;
  margin: 10px 0;
}

.alert.error {
  background: #3d1a1a;
  color: #ffd6d6;
}

.alert.success {
  background: #163d35;
  color: #c8fff0;
}

/* ================================
   Header / Footer
================================ */
.headerbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.footer {
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}

/* ================================
   Links
================================ */
a { color: #9bd1ff; text-decoration: none; }
a:hover { text-decoration: underline; }

/* Danger / remove links */
.link-danger {
  color: #ff9b9b;
  font-size: 0.85rem;
}
.link-danger:hover { text-decoration: underline; }

/* ================================
   Explicit account buttons (chooser pages)
================================ */
button.btn[data-account="candidate"],
.btn[data-account="candidate"] {
  background: #5bc0be;
  color: #092327;
}

button.btn[data-account="recruiter"],
.btn[data-account="recruiter"] {
  background: #f4a261;
  color: #3a1f04;
}

button.btn[data-account="candidate"]:hover,
button.btn[data-account="recruiter"]:hover {
  filter: brightness(1.05);
}

/* Login page continue */
.btn-continue {
  background: #888888;
  color: #f0f4f8;
}
.btn-continue:hover { filter: brightness(1.05); }

/* ================================
   JOB VIEW TABS
================================ */
#jobTabs {
    display: flex;
    border-bottom: 1px solid #3a506b;
    margin-bottom: 10px;
}

#jobTabs .tabButton {
    padding: 8px 16px;
    margin-right: 4px;
    border-radius: 6px 6px 0 0;
    border: 1px solid #3a506b;
    border-bottom: none;
    background-color: #1c2541; /* card color */
    color: #a9b4c4; /* muted text */
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background-color 0.2s, color 0.2s;
}

/* Hover effect */
#jobTabs .tabButton:hover {
    background-color: #2e3a5a;
    color: #f0f4f8;
}

/* Active tab styling */
#jobTabs .tabButton.active {
    background-color: #3a506b; /* accent */
    color: #f0f4f8;             /* text */
    font-weight: bold;
    border-color: #3a6a8a;
}
