:root {
  --bg: #ffffff;
  --primary: #28a745;
  --secondary: #1c7c31;
  --muted: #6b6b6b;
  --radius: 8px;
  --gap: 10px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Inter, Arial, sans-serif;
  background: #f7fff8;
  color: #0b3a2b;
}

.skip-link {
  position: absolute;
  left: -999px;
}

.skip-link:focus {
  left: 8px;
  top: 8px;
  background: #fff;
  padding: 6px;
  border-radius: 6px;
  z-index: 1000;
}

header {
  background: linear-gradient(90deg, var(--primary), #36b86a);
  color: #fff;
  padding: 14px 12px;
  text-align: center;
}

header .brand h1 {
  margin: 0;
  font-size: 1.25rem;
}

header .brand p {
  margin: 4px 0 0 0;
  font-size: 0.9rem;
  opacity: 0.95;
}

nav {
  margin-top: 10px;
}

.nav-btn {
  background: #fff;
  color: var(--primary);
  border: none;
  padding: 7px 10px;
  margin: 3px;
  border-radius: 6px;
  cursor: pointer;
}

.nav-btn.active,
.nav-btn:hover {
  background: var(--secondary);
  color: #fff;
}

main {
  max-width: 980px;
  margin: 16px auto;
  padding: 0 12px;
}

.panel {
  display: none;
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(2, 50, 20, 0.04);
  margin-bottom: 14px;
}

.panel.active {
  display: block;
  animation: fadeIn 0.28s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* Simple Dashboard Stats */
.dashboard-stats {
  margin-top: 20px;
}

.stat-item {
  padding: 12px 0;
  border-bottom: 1px solid #f0f0f0;
}

.stat-item:last-child {
  border-bottom: none;
}

.stat-label {
  font-size: 0.95rem;
  color: #333;
  margin: 0 0 4px 0;
}

.stat-value {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0b3a2b;
  margin: 0;
}

/* Other sections styles */
.search-sort {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.search-sort input {
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #e2efe4;
  min-width: 180px;
}

.search-sort button {
  padding: 8px 10px;
  border-radius: 8px;
  border: none;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}

.sorts button {
  background: #fff;
  color: var(--primary);
  border: 1px solid #e2efe4;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 6px;
}

th,
td {
  border: 1px solid #e6f2ea;
  padding: 8px;
  text-align: center;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 8px;
}

label {
  display: block;
  margin-top: 8px;
  font-weight: 600;
}

input[type="text"],
input[type="number"],
input[type="date"],
select {
  width: 100%;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid #e6efe6;
  margin-top: 6px;
}

.actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

button {
  cursor: pointer;
  border-radius: 8px;
  padding: 8px 12px;
  border: 0;
  background: var(--primary);
  color: #fff;
}

button:hover {
  background: var(--secondary);
}

.error {
  color: #b00020;
  font-size: 0.95rem;
  margin-top: 6px;
}

.sr-only {
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.site-footer {
  text-align: center;
  padding: 16px;
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .search-sort {
    flex-direction: column;
    align-items: stretch;
  }
}