:root {
  --primary: #33764d;
  --primary-dark: #2a5f3e;
  --bg: #f7f8f6;
  --card: #ffffff;
  --text: #1f2937;
  --text-light: #6b7280;
  --border: #e5e7eb;
  --sidebar-width: 260px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: var(--sidebar-width);
  height: 100vh;
  background: #1a2620;
  color: #e5e7eb;
  overflow-y: auto;
  z-index: 100;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1.25rem;
  border-bottom: 1px solid #2d3d35;
}
.brand .logo {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
}
.brand strong { display: block; font-size: 1rem; color: white; }
.brand span { font-size: 0.75rem; color: #9ca3af; }

.nav-section {
  border-bottom: 1px solid #2d3d35;
}
.nav-section-header, .nav-toggle {
  padding: 0.85rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #9ca3af;
  user-select: none;
  transition: background 0.2s, color 0.2s;
  width: 100%;
  background: transparent !important;
  border: none !important;
  border-radius: 0;
  text-align: left;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  box-shadow: none;
}
.nav-section-header:hover, .nav-toggle:hover { background: #2a3830 !important; color: #e5e7eb; }
.nav-section-header .chevron, .nav-toggle .chevron {
  transition: transform 0.25s;
  font-size: 0.75rem;
  color: #6b7280;
}
.nav-section.open .chevron { transform: rotate(90deg); }
.nav-section.open .nav-toggle { color: #e5e7eb; }

.nav-items {
  display: none;
  background: #18221e;
}
.nav-section.open .nav-items { display: block; }

.nav-item {
  display: block;
  padding: 0.7rem 1.25rem 0.7rem 2.5rem;
  color: #d1d5db;
  text-decoration: none;
  font-size: 0.9rem;
  transition: all 0.15s;
  border-left: 3px solid transparent;
}
.nav-item:hover {
  background: #24302b;
  color: white;
}
.nav-item.active {
  background: #24302b;
  color: white;
  border-left-color: var(--primary);
  font-weight: 500;
}

.main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
.topbar {
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 1.75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 50;
}
.topbar h2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--primary);
}
.user-badge {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.9rem;
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
}

.content {
  padding: 1.75rem;
  flex: 1;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
  margin-bottom: 1.5rem;
}
.card h3 {
  margin-bottom: 0.75rem;
  color: var(--primary-dark);
}
.placeholder {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-light);
}
.placeholder-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  opacity: 0.6;
}
.placeholder p {
  margin-bottom: 0.5rem;
}
.note {
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-top: 1rem;
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  color: var(--primary);
}
@media (max-width: 768px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: translateX(0); }
  .main { margin-left: 0; }
  .menu-toggle { display: block; }
}
