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

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  background: #ffffff;
  color: #000000;
  overflow-x: hidden;
}

.sidebar {
  width: 250px;
  background: #ffffff;
  color: #000000;
  height: 100vh;
  position: fixed;
  padding: 24px 20px;
  border-right: 1px solid #000000;
  z-index: 1000;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.sidebar h2 {
  color: #000000;
  text-align: center;
  margin-bottom: 28px;
  font-size: 1.35rem;
}

.sidebar .admin-session {
  margin: -8px 0 18px;
  padding: 12px 14px;
  border: 1px solid #000000;
  border-radius: 14px;
  background: #f8fafc;
}

.sidebar .admin-session .label {
  display: block;
  margin-bottom: 4px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #475569;
}

.sidebar .admin-session .name {
  display: block;
  font-weight: 800;
  color: #000000;
  line-height: 1.25;
  word-break: break-word;
}

.sidebar .admin-session .role {
  display: block;
  margin-top: 2px;
  color: #334155;
  font-size: 0.84rem;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  padding-bottom: 24px;
}

/* Highlight logout link specifically so it's obvious to admins */
.sidebar a[data-admin-logout] {
  color: #b91c1c;
  font-weight: 800;
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  margin-top: 8px;
}

.sidebar a[data-admin-logout]:hover {
  background: #fff1f2;
  color: #7f1d1d;
  border-color: #fecaca;
  transform: translateX(4px);
}

.sidebar li {
  margin-bottom: 15px;
}

.sidebar a {
  color: #000000;
  text-decoration: none;
  display: block;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.sidebar a:hover,
.sidebar a.active {
  background: #f8fafc;
  border-color: #000000;
  transform: translateX(3px);
}

.menu-toggle {
  display: none;
  cursor: pointer;
  padding: 15px;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1001;
  background: #ffffff;
  color: #000000;
  border-radius: 10px;
  border: 1px solid #000000;
}

.main-content,
.container-main {
  margin-left: 250px;
  padding: 28px;
  width: calc(100% - 250px);
}

.header {
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
  border-radius: 0;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: none;
}

.header h1 {
  margin: 0;
  color: #000000;
}

.card,
.table-container,
#addJobForm,
.modal-content {
  background: #ffffff;
  border: 1px solid #000000;
  box-shadow: none;
}

button,
.btn,
.export-btn,
.header-buttons button,
#addJobBtn,
#exportBtn,
#jobForm button[type="submit"] {
  background: #ffffff;
  color: #000000;
  border: 1px solid #000000;
}

button:hover,
.btn:hover,
.export-btn:hover,
.header-buttons button:hover,
#addJobBtn:hover,
#exportBtn:hover,
#jobForm button[type="submit"]:hover {
  background: #f8fafc;
}

input,
select,
textarea {
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
}

table th {
  background: linear-gradient(180deg, #06143a 0%, #06133f 100%);
  color: #ffffff;
  font-weight: 700;
}

table td,
.jobs-table th,
.jobs-table td {
  border-bottom: 1px solid #000000;
}

table,
.jobs-table {
  width: 100%;
  border-collapse: collapse;
}

table tbody tr:nth-child(even),
.jobs-table tr:nth-child(even) {
  background: #eff6ff;
}

table tbody tr:hover,
.jobs-table tr:hover {
  background: #dbeafe;
}

table th,
table td,
.jobs-table th,
.jobs-table td {
  padding: 12px 15px;
  text-align: left;
}

table thead th,
.jobs-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, 0.2);
}

.global-loader-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.global-loader-overlay.show {
  display: flex;
}

.global-loader-overlay .spinner-large {
  width: 48px;
  height: 48px;
  border: 4px solid rgba(0, 0, 0, 0.15);
  border-top-color: #000000;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.admin-export-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10050;
}

.admin-export-overlay.show {
  display: flex;
}

.admin-export-modal {
  width: min(92vw, 420px);
  background: #ffffff;
  border: 1px solid #000000;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
  padding: 24px;
}

.admin-export-modal h3 {
  margin: 0 0 8px;
  color: #000000;
  font-size: 1.25rem;
}

.admin-export-modal p {
  margin: 0 0 18px;
  color: #374151;
  line-height: 1.5;
}

.admin-export-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.admin-export-actions button {
  padding: 12px 14px;
  border: 1px solid #000000;
  background: #ffffff;
  color: #000000;
  font-weight: 700;
  cursor: pointer;
}

.admin-export-actions button:hover {
  background: #eff6ff;
}

.admin-export-actions .danger {
  grid-column: 1 / -1;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 768px) {
  .menu-toggle {
    display: block;
  }

  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.active {
    transform: translateX(0);
  }

  .main-content,
  .container-main {
    margin-left: 0;
    width: 100%;
    padding: 20px 16px;
  }
}