* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background: #f4f6fb;
  color: #333;
}

.container {
  display: flex;
  height: 100vh;
}

/* Sidebar */
.sidebar {
  width: 220px;
  background: #1e1e2f;
  color: white;
  padding: 20px;
}

.sidebar h2 {
  text-align: center;
  margin-bottom: 30px;
}

.sidebar ul {
  list-style: none;
}

.sidebar ul li {
  padding: 12px 10px;
  border-radius: 8px;
  cursor: pointer;
  margin-bottom: 10px;
  transition: background 0.3s;
}

.sidebar ul li:hover,
.sidebar ul li.active {
  background: #5a55ca;
}


.sidebar ul li a {
  color: white;
  text-decoration: none;
  display: block;
  width: 100%;
}

.sidebar ul li a:hover {
  color: #c7c6ff;
}

.sidebar ul li.active a {
  font-weight: 600;
  color: #ffffff;
}


/* Main Content */
.main-content {
  flex: 1;
  padding: 20px 30px;
  overflow-y: auto;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}

.header input {
  padding: 8px 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  width: 200px;
}

/* Cards */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card h3 {
  font-size: 16px;
  color: #555;
}

.card p {
  font-size: 28px;
  font-weight: 600;
  margin: 10px 0;
}

.card span {
  font-size: 13px;
  color: gray;
}

/* Colors */
.purple { border-left: 5px solid #8e44ad; }
.blue { border-left: 5px solid #3498db; }
.green { border-left: 5px solid #27ae60; }
.pink { border-left: 5px solid #e84393; }

/* Charts */
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  margin-bottom: 30px;
}

.chart {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.chart-placeholder {
  height: 200px;
  background: #eef1f7;
  border-radius: 8px;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
}

/* Bottom Section */
.bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
}

.inbox, .quote {
  background: white;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.inbox ul {
  margin-top: 10px;
  list-style: none;
}

.inbox li {
  margin-bottom: 8px;
}

.quote p {
  font-size: 15px;
  font-style: italic;
}

.quote span {
  display: block;
  text-align: right;
  margin-top: 8px;
  font-size: 14px;
  color: gray;
}



.chart canvas {
  width: 100% !important;   /* fill container */
  height: 220px;            /* visible height */
  display: block;
}


/* Responsive */
@media (max-width: 768px) {
  .charts, .bottom {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
}


