:root {
  --bg: #f1f2f4;
  --card: #ffffff;
  --text: #11211a;
  --muted: #446254;
  --primary: #0ea83d;
  --primary-strong: #06792b;
  --line: #d6e8dc;
  --danger: #c20000;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Barlow", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at top left, #d9f8de 0%, var(--bg) 45%);
  min-height: 100vh;
  position: relative;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(55px);
  opacity: 0.35;
  pointer-events: none;
}

.bg-shape-a {
  width: 300px;
  height: 300px;
  background: #7de88b;
  top: -80px;
  right: -80px;
}

.bg-shape-b {
  width: 260px;
  height: 260px;
  background: #9be0e4;
  bottom: -80px;
  left: -80px;
}

.container {
  width: min(1100px, 94vw);
  margin: 26px auto;
  position: relative;
  z-index: 1;
}

.hero {
  background: linear-gradient(120deg, #0ea83d, #17c46e);
  color: white;
  border-radius: 10px;
  padding: 20px 22px;
  box-shadow: 0 12px 30px rgba(8, 62, 30, 0.25);
  animation: fadeIn 0.5s ease;
}

.hero h1 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: 0;
}

.hero p {
  margin: 8px 0 0;
  font-size: 1.03rem;
}

.tabs {
  display: flex;
  gap: 10px;
  margin: 16px 0 12px;
  align-items: center;
  flex-wrap: wrap;
}

.tab,
.export-btn,
button {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 8px;
  padding: 10px 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

.tab.active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.export-btn {
  margin-left: auto;
  background: #f8fff9;
  border-color: #86d89f;
}

.panel {
  display: none;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  box-shadow: 0 8px 20px rgba(18, 44, 28, 0.08);
}

.panel.active {
  display: block;
  animation: slideUp 0.35s ease;
}

h2 {
  margin: 0 0 12px;
}

.grid-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.grid-form input,
.grid-form select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fcfffc;
  color: var(--text);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 0.96rem;
}

.grid-form button {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

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

.item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: #fbfffb;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.danger {
  background: #fff6f6;
  color: var(--danger);
  border-color: #f2b5b5;
}

@media (max-width: 980px) {
  .grid-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .grid-form {
    grid-template-columns: 1fr;
  }

  .export-btn {
    margin-left: 0;
  }
}

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

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
