:root {
  --bg: #f6f4ee;
  --text: #1a1d26;
  --muted: #6e7280;
  --card: rgba(255, 255, 255, 0.9);
  --line: #e3dece;
  --primary: #115e59;
  --primary-soft: #d9f2ef;
  --warn: #c96b00;
  --ok: #1f8f3a;
  --shadow: 0 20px 60px rgba(17, 94, 89, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  color: var(--text);
  background: radial-gradient(circle at 20% 20%, #fff8e7 0%, var(--bg) 45%),
    linear-gradient(120deg, #fefdf8 0%, #f6f4ee 100%);
  min-height: 100vh;
}

h1,
h2,
h3 {
  font-family: "Space Grotesk", sans-serif;
  margin: 0;
}

.bg-shape {
  position: fixed;
  border-radius: 999px;
  filter: blur(2px);
  z-index: -1;
}

.bg-one {
  width: 380px;
  height: 380px;
  background: #c8f0ea;
  top: -120px;
  right: -80px;
}

.bg-two {
  width: 260px;
  height: 260px;
  background: #ffe5bc;
  bottom: -80px;
  left: -40px;
}

.app-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 20px;
  padding: 20px;
}

.sidebar,
.main {
  background: var(--card);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.sidebar {
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.brand {
  display: flex;
  gap: 14px;
  align-items: center;
}

.brand-logo {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
}

.brand p,
.muted {
  margin: 4px 0 0;
  color: var(--muted);
}

nav {
  display: grid;
  gap: 10px;
}

.nav-item {
  text-align: left;
  border: 1px solid transparent;
  background: transparent;
  padding: 10px 12px;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
}

.nav-item.active,
.nav-item:hover {
  background: var(--primary-soft);
  border-color: #b6e8e2;
  color: #0c4945;
}

.quick-card {
  margin-top: auto;
  background: #fffdf7;
  border: 1px solid #f0e7d2;
  border-radius: 16px;
  padding: 14px;
}

.quick-card button,
.primary {
  border: 0;
  background: var(--primary);
  color: #fff;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
}

.main {
  padding: 22px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

input[type="search"] {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
  width: 260px;
}

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

.stat {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
}

.stat h4 {
  margin: 0 0 8px;
  color: var(--muted);
  font-weight: 600;
}

.stat p {
  margin: 0;
  font-size: 24px;
  font-family: "Space Grotesk", sans-serif;
}

.content-grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.chip {
  font-size: 12px;
  border-radius: 999px;
  padding: 4px 10px;
  background: #fff5e5;
  color: var(--warn);
}

.chip.success {
  background: #e9faee;
  color: var(--ok);
}

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

th,
td {
  text-align: left;
  padding: 10px 6px;
  border-bottom: 1px solid #f1ede0;
  font-size: 14px;
}

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

.zone-item {
  border: 1px solid #efe8d7;
  background: #fffdf8;
  border-radius: 12px;
  padding: 10px;
}

.zone-item p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 1024px) {
  .app-layout {
    grid-template-columns: 1fr;
  }

  .content-grid,
  .stats-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sidebar {
    order: 2;
  }
}

@media (max-width: 640px) {
  .topbar,
  .topbar-actions {
    flex-direction: column;
  }

  input[type="search"] {
    width: 100%;
  }

  .content-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
