:root {
  color-scheme: light;
  font-family: 'Inter', system-ui, sans-serif;
  background: #f4f7fb;
  color: #102a43;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, #eef3fb 0%, #f8fafc 100%);
}

button,
input {
  font: inherit;
}

.admin-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  min-height: 100vh;
}

.admin-sidebar {
  background: rgba(255, 255, 255, 0.98);
  border-right: 1px solid #d8e3ef;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.brand {
  display: grid;
  gap: 6px;
  font-weight: 800;
  color: #102a43;
}

.brand small {
  color: #5b6b84;
  font-size: 0.9rem;
}

.menu {
  display: grid;
  gap: 10px;
}

.menu-item {
  border: none;
  background: transparent;
  text-align: left;
  padding: 14px 18px;
  border-radius: 16px;
  color: #102a43;
  cursor: pointer;
  transition: background 0.2s ease;
}

.menu-item.active,
.menu-item:hover {
  background: #eef4ff;
}

.ghost-button,
.primary-button,
.secondary-button {
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.primary-button {
  padding: 14px 22px;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #14b8a6);
}

.secondary-button {
  padding: 12px 20px;
  background: #fff;
  border: 1px solid #cbd5e1;
  color: #102a43;
}

.ghost-button {
  background: transparent;
  color: #334155;
  padding: 12px 18px;
}

.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.admin-main {
  padding: 32px;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.page-header h1 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.page-header p {
  margin: 8px 0 0;
  color: #475569;
}

.login-view {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.12);
}

.hidden {
  display: none !important;
}

.login-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 28px;
  padding: 32px;
  box-shadow: 0 22px 80px rgba(15, 23, 42, 0.12);
}

.login-card h2 {
  margin-top: 0;
  font-size: 1.85rem;
}

.login-card p {
  color: #64748b;
  margin-bottom: 24px;
}

.input-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.input-group label {
  font-size: 0.95rem;
  color: #334155;
}

.input-group input {
  width: 100%;
  appearance: none;
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
  background: #f8fafc;
}

.card {
  background: #fff;
  border-radius: 28px;
  box-shadow: 0 18px 60px rgba(15, 23, 42, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 24px;
  margin-bottom: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.stat-card {
  background: linear-gradient(135deg, #eff6ff, #f8fafc);
  border-radius: 22px;
  padding: 22px;
}

.stat-card strong {
  display: block;
  font-size: 1.5rem;
  margin-bottom: 10px;
}

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

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

table {
  width: 100%;
  border-collapse: collapse;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  background: #eff6ff;
}

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

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

.image-grid img {
  width: 100%;
  border-radius: 18px;
  object-fit: cover;
  max-height: 260px;
}

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

.form-row {
  display: grid;
  gap: 8px;
}

.form-row label {
  color: #334155;
  font-weight: 600;
}

.form-row input,
.form-row select,
.form-row textarea {
  width: 100%;
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  padding: 14px 16px;
  background: #f8fafc;
}

.form-row textarea {
  min-height: 120px;
  resize: vertical;
}

th,
td {
  padding: 16px;
  text-align: left;
  border-bottom: 1px solid #e2e8f0;
}

th {
  color: #334155;
  font-weight: 600;
}

tbody tr:hover {
  background: #f8fbff;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
}

.badge.pending {
  background: #f8fafc;
  color: #475569;
}

.badge.verified {
  background: #e0f2fe;
  color: #0369a1;
}

.badge.resigned {
  background: #fee2e2;
  color: #b91c1c;
}

.badge.notConsidering {
  background: #f3f4f6;
  color: #475569;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.toolbar .form-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar input,
.toolbar select {
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  padding: 12px 14px;
  background: #fff;
}

@media (max-width: 960px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }
  .admin-sidebar {
    flex-direction: row;
    overflow-x: auto;
    padding: 18px;
  }
  .admin-sidebar .menu {
    flex: 1;
    grid-auto-flow: column;
    grid-auto-columns: min-content;
  }
  .admin-sidebar .brand {
    display: none;
  }
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  .page-header {
    flex-direction: column;
  }
}
