* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: #f5f5f5;
  color: #2d3436;
  line-height: 1.6;
  text-wrap: pretty;
}
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #1b5e20, #2e7d32);
}
.login-card {
  background: #fff;
  border-radius: 16px;
  padding: 3rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}
.login-card h1 {
  text-align: center;
  margin-bottom: 0.5rem;
  font-size: 1.5rem;
}
.login-card p {
  text-align: center;
  color: #636e72;
  margin-bottom: 2rem;
  font-size: 0.9rem;
}
.login-card .logo-img {
  display: block;
  width: 80px;
  margin: 0 auto 1.5rem;
}
.form-group {
  margin-bottom: 1.25rem;
}
.form-group label {
  display: block;
  font-weight: 600;
  font-size: 0.85rem;
  margin-bottom: 0.4rem;
  color: #2d3436;
}
.form-group input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s;
}
.form-group input:focus {
  outline: none;
  border-color: #2e7d32;
  box-shadow: 0 0 0 3px rgba(46, 125, 50, 0.1);
}
.btn {
  width: 100%;
  padding: 0.9rem;
  background: #2e7d32;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}
.btn:hover {
  background: #1b5e20;
}
.btn:active {
  transform: scale(0.97);
}
.btn-sm {
  width: auto;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  display: inline-block;
}
.btn-danger {
  background: #d63031;
}
.btn-danger:hover {
  background: #b71c1c;
}
.btn-secondary {
  background: #636e72;
}
.btn-secondary:hover {
  background: #4a5256;
}
.btn-outline {
  background: transparent;
  border: 1px solid #2e7d32;
  color: #2e7d32;
}
.btn-outline:hover {
  background: #e8f5e9;
}
.btn-logout {
  margin-top: 0.5rem;
}
.hidden {
  display: none;
}
.error-msg {
  color: #d63031;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
  display: none;
}
.success-msg {
  color: #2e7d32;
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1rem;
  display: none;
}
/* Dashboard */
.dashboard {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 250px;
  background: #1a1a1a;
  color: #e0e0e0;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
}
.sidebar h2 {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 0.25rem;
}
.sidebar .sidebar-sub {
  font-size: 0.75rem;
  color: #666;
  margin-bottom: 2rem;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  flex: 1;
}
.sidebar nav a {
  color: #b0b0b0;
  text-decoration: none;
  padding: 0.6rem 0.8rem;
  border-radius: 8px;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
}
.sidebar nav a:hover,
.sidebar nav a.active {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.sidebar .user-info {
  font-size: 0.8rem;
  color: #888;
  border-top: 1px solid #333;
  padding-top: 1rem;
  margin-top: 1rem;
}
.main-content {
  flex: 1;
  padding: 2rem;
  overflow-x: auto;
}
.main-content h1 {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}
.main-content .subtitle {
  color: #636e72;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}
/* Submissions tab */
.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}
table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
th {
  text-align: left;
  padding: 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #636e72;
  background: #fafafa;
  border-bottom: 1px solid #eee;
}
td {
  padding: 1rem;
  font-size: 0.9rem;
  border-bottom: 1px solid #f5f5f5;
  vertical-align: top;
}
tr:hover td {
  background: #fafafa;
}
.badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
}
.badge-contact {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-jobs {
  background: #e3f2fd;
  color: #1565c0;
}
.badge-aptitude {
  background: #f3e5f5;
  color: #7b1fa2;
}
.badge-completed {
  background: #e8f5e9;
  color: #2e7d32;
}
.badge-started {
  background: #fff3e0;
  color: #e65100;
}
.badge-terminated {
  background: #fce4ec;
  color: #c62828;
}
.badge-abandoned {
  background: #f5f5f5;
  color: #888;
}
.badge-unknown {
  background: #f5f5f5;
  color: #888;
}
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: #888;
}
.empty-state p {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}
.empty-state .sub {
  font-size: 0.9rem;
}
.loading {
  text-align: center;
  padding: 4rem;
  color: #888;
}
.spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 3px solid #e0e0e0;
  border-top-color: #2e7d32;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-bottom: 1rem;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.cell-date {
  white-space: nowrap;
  font-size: 0.8rem;
  color: #888;
}
.cell-email a {
  color: #2e7d32;
}
.cell-message {
  max-width: 300px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  text-wrap: pretty;
}
.cell-num {
  text-align: center;
  font-variant-numeric: tabular-nums;
}
/* Test results header actions */
.header-actions {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.header-actions .btn-sm {
  width: auto;
}
.status-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #fff;
  padding: 1rem 1.5rem;
  border-radius: 12px;
  border: 1px solid #eee;
  margin-bottom: 1.5rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04);
}
.status-card h3 {
  font-size: 1rem;
}
.status-card .status-text {
  font-weight: 700;
  font-size: 0.9rem;
}
.status-card .status-text.active {
  color: #2e7d32;
}
.status-card .status-text.paused {
  color: #e65100;
}
/* Modal overlay */
.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}
.modal.open {
  display: flex;
}
.modal-content {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  max-width: 400px;
  width: 90%;
  text-align: center;
}
.modal-content h3 {
  margin-bottom: 0.75rem;
}
.modal-content p {
  color: #636e72;
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
}
.modal-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}
.modal-actions .btn-sm {
  width: auto;
}
/* Tab nav in sidebar */
.sidebar .tab-count {
  float: right;
  background: rgba(255, 255, 255, 0.1);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
  font-size: 0.75rem;
  color: #b0b0b0;
}
@media (max-width: 768px) {
  .dashboard {
    flex-direction: column;
  }
  .sidebar {
    width: 100%;
    padding: 1rem;
  }
  .main-content {
    padding: 1rem;
  }
  table {
    font-size: 0.8rem;
  }
  th,
  td {
    padding: 0.6rem;
  }
  .header-actions {
    flex-direction: column;
  }
  .status-card {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }
}
