/* === Base styles === */
body {
  font-family: Arial, sans-serif;
  margin: 20px;
  padding-top: 110px;
  background-color: #fafafa;
  color: #333;
}

h1, h2 {
  color: #444;
}

a {
  color: #0056b3;
  text-decoration: none;
  transition: color 0.2s ease;
}
a:hover {
  text-decoration: underline;
  color: #003d80;
}

/* === Navigation === */
.main-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 999;
  background-color: #fafafa;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  border-bottom: 1px solid #ddd;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  height: 140px;       /* fixed height to fit big logo */
  flex-wrap: nowrap;
}

.nav-left {
  display: flex;
  align-items: center;
}

.nav-logo-link {
  display: flex;
  align-items: center;
}

.nav-logo {
  height: 128px !important; /* bigger logo on desktop */
  width: auto;
  vertical-align: middle;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

/* Navigation Links */
.nav-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0;
  padding: 0;
  align-items: center;
  flex-grow: 1;
}

.nav-links li {
  display: inline;
}

/* Push user email right */
.nav-links li[style] {
  margin-left: auto;
}

/* Buttons in nav */
.nav-links li a.btn-primary {
  padding: 8px 12px;
  font-size: 1em;
  display: inline-block;
  border-radius: 4px;
  background-color: #0056b3;
  color: white;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  user-select: none;
}
.nav-links li a.btn-primary:hover {
  background-color: #003d80;
}

/* Hamburger */
.hamburger {
  display: none;
  font-size: 1.8rem;
  background: none;
  border: none;
  cursor: pointer;
  color: #0056b3;
  padding: 0 10px;
}

/* === Navigation list styling (duplicated? but keep for safety) === */
nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
nav ul li {
  display: inline-block;
  margin-right: 10px;
}
nav ul li a {
  padding: 5px 10px;
  background-color: #e5e5e5;
  border-radius: 3px;
  transition: background-color 0.2s ease;
  color: #333;
  text-decoration: none;
}
nav ul li a:hover {
  background-color: #ccc;
}

/* === Tables === */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  background: #fff;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}
thead tr {
  background-color: #e9e9e9;
  color: #333;
  font-weight: bold;
}
th, td {
  padding: 10px 8px;
  border: 1px solid #ddd;
  text-align: left;
  vertical-align: middle;
}
th {
  user-select: none;
}
tbody tr:hover {
  background-color: #f1f7ff;
}

/* === Checkboxes === */
input[type="checkbox"].jobCheckbox {
  transform: scale(1.2);
  cursor: pointer;
}
label[for="selectAll"] {
  user-select: none;
  cursor: pointer;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 10px;
}

/* === Buttons === */
button,
.filter-form button,
.filter-form .clear-filters,
.btn-apply,
.btn-login,
.btn-primary,
.btn-secondary {
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  padding: 8px 15px;
  font-size: 1em;
  transition: background-color 0.3s ease;
  border: none;
  user-select: none;
}

button,
.btn-primary {
  background-color: #0056b3;
  color: white;
}
button:hover,
.btn-primary:hover {
  background-color: #003d80;
}

.btn-secondary,
.filter-form .clear-filters {
  background-color: #e5e5e5;
  color: #333;
  border: 1px solid #ccc;
}
.btn-secondary:hover,
.filter-form .clear-filters:hover {
  background-color: #ccc;
}

.btn-apply {
  background-color: #28a745;
  color: white;
  margin-top: 10px;
  padding: 10px 20px;
}
.btn-apply:hover {
  background-color: #1e7e34;
}

.btn-login {
  background-color: #007bff;
  color: white;
  margin-top: 10px;
  padding: 10px 20px;
}
.btn-login:hover {
  background-color: #0056b3;
}

/* === Form inputs === */
input[type="text"],
select,
.filter-form input[type="text"] {
  width: 300px;
  max-width: 100%;
  padding: 6px 8px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 1em;
  box-sizing: border-box;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus,
select:focus,
.filter-form input[type="text"]:focus {
  border-color: #0056b3;
  outline: none;
}

/* === Filter form styling === */
.filter-form {
  margin-bottom: 25px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* === Jobs list and cards === */
.jobs-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-card {
  background: #fff;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 6px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.job-card h2.job-title {
  margin: 0 0 8px 0;
  color: #0056b3;
}

.job-card h3.company-name {
  margin: 0 0 8px 0;
  color: #555;
  font-weight: normal;
}

.job-card p {
  margin: 6px 0;
  color: #444;
  font-size: 0.95em;
}

/* === Pagination === */
.pagination-nav {
  margin-top: 30px;
  text-align: center;
  font-size: 1.1em;
}

.pagination-link {
  display: inline-block;
  margin: 0 10px;
  padding: 8px 16px;
  border-radius: 4px;
  background-color: #e5e5e5;
  color: #333;
  text-decoration: none;
  font-weight: bold;
}
.pagination-link:hover {
  background-color: #ccc;
}

.pagination-info {
  font-weight: bold;
  color: #333;
}

/* === Messages === */
.no-jobs {
  font-style: italic;
  color: #888;
  margin-top: 20px;
}

.jobs-count {
  margin-bottom: 15px;
  font-weight: bold;
  color: #444;
}

.error-message {
  color: #d9534f;
  font-weight: bold;
  margin-bottom: 15px;
}

.success-message {
  color: #28a745;
  font-weight: bold;
  margin-bottom: 15px;
}

/* === Form inputs in login/edit/profile/admin === */
.form-login input,
.form-edit-profile input,
.form-admin-create input {
  width: 100%;
  max-width: 400px;
  padding: 8px 10px;
  margin-bottom: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
  box-sizing: border-box;
}

/* === Company tag styling === */
.company-tag {
  display: inline-block;
  background-color: #e0f0ff;
  color: #007bff;
  padding: 4px 12px;
  border-radius: 15px;
  font-weight: 600;
  font-size: 0.9em;
  margin-bottom: 10px;
  box-shadow: 0 1px 3px rgba(0, 123, 255, 0.3);
}
.company-tag a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.company-tag a:hover {
  color: #004a99;
  text-decoration: underline;
}

/* === Responsive Nav (Mobile) === */
@media (max-width: 768px) {
  .hamburger {
    display: block;
  }

  .nav-links {
    display: none;
    flex-direction: column;
    width: 100%;
    background-color: #fafafa;
    padding: 10px 0;
    border-top: 1px solid #ddd;
  }

  .nav-links.show {
    display: flex;
  }

  .nav-links li {
    margin: 5px 0;
    text-align: center;
  }

  /* Remove auto margin on user email on mobile so it centers */
  .nav-links li[style] {
    margin-left: 0;
  }

  .nav-logo {
    height: 45px !important; /* smaller logo on mobile */
  }
}

.success-message {
  background-color: #28a745;
  color: white;
  padding: 10px 15px;
  margin: 10px auto;
  max-width: 800px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
}

.error-message {
  background-color: #d9534f;
  color: white;
  padding: 10px 15px;
  margin: 10px auto;
  max-width: 800px;
  border-radius: 4px;
  font-weight: 600;
  text-align: center;
}

