* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f7f5;
  color: #1f2937;
}

.app {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 280px;
  background: #1f6f43;
  color: white;
  padding: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.brand-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: white;
  color: #1f6f43;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 22px;
}

.brand h1 {
  margin: 0;
  font-size: 24px;
}

.brand p {
  margin: 4px 0 0;
  opacity: 0.85;
  font-size: 14px;
}

.role-switcher {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.role-btn {
  flex: 1;
  border: none;
  border-radius: 10px;
  padding: 12px 10px;
  cursor: pointer;
  font-weight: bold;
  background: rgba(255, 255, 255, 0.18);
  color: white;
}

.role-btn.active {
  background: white;
  color: #1f6f43;
}

.menu {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.menu-item {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: 0.2s ease;
}

.menu-item:hover {
  background: rgba(255, 255, 255, 0.22);
}

.content {
  flex: 1;
  padding: 24px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}

.topbar h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.topbar p {
  margin: 0;
  color: #6b7280;
}

.status-box {
  background: #e8f5ec;
  color: #1f6f43;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: bold;
}

.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.card,
.panel {
  background: white;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.card h3,
.panel h3 {
  margin-top: 0;
  margin-bottom: 10px;
}

.main-panel {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

.panel li {
  margin-bottom: 8px;
}

@media (max-width: 900px) {
  .app {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
  }

  .cards,
  .main-panel {
    grid-template-columns: 1fr;
  }
}
