body {
  background-color: #f8f9fa;
  font-family: Arial, sans-serif;
}

.main-section {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.left-container {
  flex: 1 1 70%;
}

.right-container {
  flex: 1 1 28%;
}

/* Dashboard Card Styles (used instead of .card-box) */
.dashboard-card {
  background-color: #2f6fed;
  color: white;
  padding: 20px;
  text-align: center;
  border-radius: 12px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  display: block;
  margin-bottom: 20px;
}

.dashboard-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 20px rgba(47, 111, 237, 0.6);
  text-decoration: none;
  color: white;
}

.dashboard-card i {
  font-size: 28px;
  margin-bottom: 8px;
}

/* Chart, Calendar, and Event Cards */
.chart-card,
.calendar-card,
.event-card {
  background-color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.05);
  margin-bottom: 20px;
}

/* Placeholder style for calendar */
.calendar-placeholder {
  border: 1px dashed #ccc;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  color: gray;
}

/* Legend under the pie chart */
.legend {
  font-size: 14px;
  margin-top: 15px;
}

.dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 6px;
}

.green {
  background-color: #28a745;
}

.red {
  background-color: #dc3545;
}

/* Chart style */
.chart-card {
  background-color: #fff;
  padding: 1rem;
  border-radius: 1rem;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  height: 100%;
}

canvas {
  max-height: 300px;
}
