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

:root {
  --bg: #0b1021;
  --panel: #10162f;
  --card: #121a38;
  --text: #e4e8ff;
  --muted: #9aa4c6;
  --accent: #5be584;
  --accent-2: #7c5cff;
  --danger: #ff6b6b;
  --amber: #f5b84b;
  --stroke: rgba(255, 255, 255, 0.06);
}

body[data-theme="light"] {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --card: #ffffff;
  --text: #0d1b2a;
  --muted: #5c6b7c;
  --accent: #25855a;
  --accent-2: #3b5bdb;
  --danger: #d64545;
  --amber: #c27803;
  --stroke: rgba(13, 27, 42, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", "Segoe UI", sans-serif;
  background: radial-gradient(circle at 20% 20%, rgba(124, 92, 255, 0.12), transparent 35%),
    radial-gradient(circle at 80% 0, rgba(91, 229, 132, 0.12), transparent 30%),
    var(--bg);
  color: var(--text);
  min-height: 100vh;
}

body[data-theme="light"] {
  background: radial-gradient(circle at 20% 20%, rgba(59, 91, 219, 0.08), transparent 32%),
    radial-gradient(circle at 80% 0, rgba(37, 133, 90, 0.08), transparent 28%),
    var(--bg);
}

a {
  color: var(--accent);
  text-decoration: none;
}

nav {
  background: rgba(16, 22, 47, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--stroke);
}

body[data-theme="light"] nav {
  background: rgba(255, 255, 255, 0.9);
}

.navbar .nav-link {
  color: var(--text);
  font-weight: 600;
}

.navbar .nav-link:hover {
  color: var(--accent);
}

.navbar-toggler {
  border-color: var(--muted);
}

.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(228,232,255,0.75)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.brand {
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-sub {
  font-weight: 600;
  font-size: 14px;
}

.pill {
  background: rgba(91, 229, 132, 0.15);
  color: var(--accent);
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  border: 1px solid rgba(91, 229, 132, 0.35);
}

body[data-theme="light"] .pill {
  background: rgba(37, 133, 90, 0.1);
  border-color: rgba(37, 133, 90, 0.3);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
  align-items: center;
}

.hero-text h1 {
  margin: 8px 0 12px;
  font-size: 34px;
  line-height: 1.15;
}

.hero-samples {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.sample-card,
.task-card {
  background: linear-gradient(155deg, rgba(18, 26, 56, 0.92), rgba(12, 16, 35, 0.9));
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.35);
}

body[data-theme="light"] .sample-card,
body[data-theme="light"] .task-card {
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
}

.sample-card img,
.task-img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  margin: 8px 0;
}

.task-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 12px;
}

.task-head {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pill-dark {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.pill-warning {
  background: rgba(245, 184, 75, 0.16);
  color: #ffdca0;
  border: 1px solid rgba(245, 184, 75, 0.4);
}

.eyebrow {
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.section {
  margin: 28px 0 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.section .dash {
  flex: 1;
  height: 1px;
  background: var(--stroke);
}

.layout-split {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-bottom: 12px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}

.card {
  background: var(--card);
  border: 1px solid var(--stroke);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  position: relative;
  overflow: hidden;
}

body[data-theme="light"] .card {
  border-color: var(--stroke);
  box-shadow: 0 20px 30px rgba(0, 0, 0, 0.12);
}

.card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 18px;
}

.stat {
  font-size: 34px;
  font-weight: 700;
  margin: 0 0 4px;
}

.muted {
  color: var(--muted);
  font-size: 14px;
}

.microcopy {
  color: var(--muted);
  font-size: 12px;
}

.small {
  font-size: 13px;
  color: var(--muted);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

input,
textarea,
select {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(0, 0, 0, 1);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text);
  font-size: 14px;
}

input[type="file"] {
  padding: 10px 0;
}

button,
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  border: none;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 700;
  font-size: 14px;
  color: #0c101f;
  background: linear-gradient(135deg, var(--accent), #42c474);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  min-width: 130px;
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text);
}

.btn-danger {
  background: linear-gradient(135deg, #ff7b7b, #f54747);
  color: #0c101f;
}

button:disabled,
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

button:hover,
.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
}

.theme-toggle {
  min-width: 110px;
  border-radius: 999px;
}

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

.table th,
.table td {
  text-align: left;
  padding: 10px 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.badge {
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.3px;
}

.badge.pending {
  background: rgba(124, 92, 255, 0.16);
  color: #c7b8ff;
}

.badge.approved {
  background: rgba(91, 229, 132, 0.16);
  color: #a7f5c0;
}

.badge.rejected,
.badge.declined {
  background: rgba(255, 107, 107, 0.16);
  color: #ffc7c7;
}

.badge.resubmit,
.badge.completed {
  background: rgba(255, 199, 92, 0.14);
  color: #ffdfa3;
}

.messages {
  margin-bottom: 16px;
  display: grid;
  gap: 8px;
}

.alert {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

.alert.success {
  border-color: rgba(91, 229, 132, 0.35);
}

.alert.error {
  border-color: rgba(255, 107, 107, 0.35);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section-title {
  margin-top: 0;
  margin-bottom: 6px;
}

.empty {
  color: var(--muted);
  font-style: italic;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 16px;
}

.legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

@media (max-width: 820px) {
  nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .admin-grid {
    grid-template-columns: 1fr;
  }
  .hero {
    grid-template-columns: 1fr;
  }
}
