:root {
  --bg: #f3f7f3;
  --card: #ffffff;
  --ink: #162231;
  --muted: #5e6b78;
  --line: #d9e3dc;
  --brand: #006400;
  --brand-dark: #004d00;
  --brand-soft: #e7f3e7;
  --gold: #ffd700;
  --danger: #b91c1c;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Segoe UI, Tahoma, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top right, rgba(255, 215, 0, 0.08), transparent 30%),
    linear-gradient(145deg, #f7fbf7, #edf5ef);
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 36px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: 1px solid var(--line);
  background: linear-gradient(120deg, #ffffff, #f4fbf4);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 18px;
  box-shadow: 0 10px 30px rgba(0, 80, 40, 0.08);
}

.topbar h1 {
  font-size: 1.2rem;
  line-height: 1.3;
}

.topbar-right {
  display: flex;
  gap: 12px;
  align-items: center;
  color: var(--muted);
  font-weight: 600;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  margin-bottom: 18px;
  box-shadow: 0 8px 28px rgba(5, 42, 20, 0.06);
}

.card h2 {
  margin: 0 0 12px;
  font-size: 1.15rem;
}

.grid {
  display: grid;
  gap: 14px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

label {
  display: block;
  margin-bottom: 7px;
  font-weight: 600;
  color: #1f2937;
}

input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 11px;
  font: inherit;
  background: #fff;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 100, 0, 0.12);
}

.btn {
  display: inline-block;
  text-decoration: none;
  border: none;
  background: var(--brand);
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
}

.btn:hover {
  background: var(--brand-dark);
  transform: translateY(-1px);
}

.btn-outline {
  background: #fff;
  color: var(--brand);
  border: 1px solid var(--brand);
}

.btn-outline:hover {
  background: var(--brand-soft);
}

.btn-danger {
  background: var(--danger);
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  overflow: hidden;
  border-radius: 12px;
}

th,
td {
  border: 1px solid var(--line);
  padding: 11px;
  text-align: left;
  vertical-align: top;
}

th {
  background: #f0f6f0;
  color: #174227;
  font-weight: 700;
}

tbody tr:nth-child(even) {
  background: #fbfdfb;
}

tbody tr:hover {
  background: #f2fbf2;
}

.alert {
  padding: 11px 12px;
  border-radius: 10px;
  margin-bottom: 12px;
  background: #edf7ed;
  border: 1px solid #cde7cd;
  color: #124521;
}

.alert-error {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}

nav {
  margin-bottom: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

nav a {
  margin-right: 0;
  text-decoration: none;
  color: #174227;
  font-weight: 600;
  padding: 8px 12px;
  border: 1px solid #d5e9d5;
  border-radius: 999px;
  background: #f7fcf7;
}

nav a:hover {
  background: #eaf6ea;
}

p {
  color: var(--muted);
}

.page-hero {
  border: 1px solid #d9e9d9;
  background: linear-gradient(120deg, #ffffff, #edf8ed);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
}

.page-hero h2 {
  margin: 0;
  font-size: 1.2rem;
}

.page-hero p {
  margin: 6px 0 0;
}

.auth-card {
  max-width: 500px;
  margin: 24px auto;
}

.form-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.info-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: 12px;
}

.info-item {
  background: #f8fcf8;
  border: 1px solid #dcebdc;
  border-radius: 10px;
  padding: 10px 12px;
}

.info-item .label {
  display: block;
  color: #365241;
  font-size: 0.82rem;
  margin-bottom: 4px;
  font-weight: 600;
}

.info-item .value {
  color: #10201a;
  font-weight: 700;
}

.hero-overlay {
  background: linear-gradient(135deg, rgba(0, 68, 0, 0.88) 0%, rgba(0, 100, 0, 0.75) 60%, rgba(0, 40, 0, 0.92) 100%);
}

.hero-overlay h2,
.hero-overlay p {
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.28);
}

.hero-overlay p {
  font-size: 0.98rem;
  line-height: 1.55;
  max-width: 64ch;
}

.card-hover {
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card-hover:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 32px rgba(0, 100, 0, 0.15);
}

@media (max-width: 800px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .container {
    padding: 16px 12px 22px;
  }

  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
