* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

body {
  display: flex;
  min-height: 100vh;
  background: #0f172a;
  color: #fff;
}

.sidebar {
  width: 260px;
  background: #111827;
  padding: 30px 20px;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 40px;
  color: #3b82f6;
}

.sidebar ul {
  list-style: none;
}

.sidebar li {
  padding: 15px;
  margin-bottom: 12px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

.sidebar li:hover,
.sidebar li.active {
  background: #2563eb;
}

.sidebar i {
  margin-right: 10px;
}

.main {
  flex: 1;
  padding: 30px;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

header button {
  background: #3b82f6;
  color: #fff;
  border: none;
  padding: 14px 20px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.3s;
}

header button:hover {
  background: #2563eb;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.card {
  background: #1e293b;
  border-radius: 16px;
  padding: 25px;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-6px);
}

.card h3 {
  color: #94a3b8;
  margin-bottom: 10px;
}

.card h2 {
  font-size: 34px;
  color: #3b82f6;
}

.chart-card {
  margin-top: 30px;
  background: #1e293b;
  padding: 25px;
  border-radius: 16px;
}

.activity {
  margin-top: 30px;
  background: #1e293b;
  padding: 25px;
  border-radius: 16px;
}

.activity h2 {
  margin-bottom: 20px;
}

.activity ul {
  list-style: none;
}

.activity li {
  padding: 12px 0;
  border-bottom: 1px solid #334155;
}

.activity li:last-child {
  border: none;
}

canvas {
  max-height: 350px;
}

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

  .sidebar {
    width: 100%;
  }

  header {
    flex-direction: column;
    gap: 20px;
    align-items: flex-start;
  }
}
