html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
}

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

.sidebar {
  width: 280px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  transition: all 0.3s ease;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.sidebar-header {
  padding: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.sidebar-header h1 {
  color: white;
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.sidebar-header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.sidebar-nav {
  padding: 1rem 0;
}

.nav-item {
  display: block;
  padding: 0.75rem 1.5rem;
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  transition: all 0.3s ease;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-left-color: #fff;
  transform: translateX(5px);
}

.nav-item.is-active {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  border-left-color: #fff;
}

.nav-item i {
  margin-right: 0.75rem;
  width: 20px;
  text-align: center;
}

.nav-section {
  margin: 1.5rem 0;
}

.nav-section-title {
  padding: 0.5rem 1.5rem;
  font-size: 0.75rem;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}

.sidebar-footer {
  margin-top: auto;
  padding: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.user-info {
  display: flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 0.75rem;
}

.user-details h4 {
  color: white;
  font-weight: 600;
  margin-bottom: 0.25rem;
}

.user-details p {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
}

.main-content {
  flex: 1;
  padding: 2rem;
  background: #f8f9fa;
}

.mobile-toggle {
  display: none;
}

@media (max-width: 768px) {
  .sidebar {
    position: fixed;
    left: -280px;
    top: 0;
    height: 100vh;
    z-index: 1000;
  }

  .sidebar.is-active {
    left: 0;
  }

  .mobile-toggle {
    display: block;
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 1001;
    background: #667eea;
    color: white;
    border: none;
    padding: 0.75rem;
    border-radius: 5px;
    cursor: pointer;
  }

  .main-content {
    margin-left: 0;
    padding-top: 4rem;
  }

  .overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 999;
    display: none;
  }

  .overlay.is-active {
    display: block;
  }
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease;
}

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

.badge {
  display: inline-block;
  padding: 0.25rem 0.5rem;
  background: #667eea;
  color: white;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-left: 0.5rem;
}

.nav-section.collapsed .nav-item {
  display: none;
}

.nav-section-title {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-section-title i {
  transition: transform 0.3s ease;
}

.nav-section.collapsed .nav-section-title i {
  transform: rotate(-90deg);
}

/* Add these to your existing styles */
.key-stat-box {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  padding: 1.5rem;
  color: white;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s ease-in-out;
}
.key-stat-box:hover {
  transform: translateY(-3px);
}
.key-stat-box .heading {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}
.key-stat-box .title {
  color: white;
  margin-bottom: 0 !important;
}

.report-card {
  background-color: #ffffff;
  border-radius: 8px;
  padding: 0; /* Remove padding here, add to inner elements */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  height: 100%; /* Make cards equal height */
  overflow: hidden; /* Ensure header doesn't overflow */
}
.report-header {
  background: linear-gradient(
    135deg,
    #6a7fe9 0%,
    #7f52a5 100%
  ); /* Slightly lighter gradient */
  padding: 1rem 1.5rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.report-header .title,
.report-header .subtitle {
  margin-bottom: 0.25rem;
}
.report-body {
  padding: 1.5rem;
  flex-grow: 1; /* Allow body to take remaining space */
}
.report-stats {
  display: flex;
  justify-content: space-around; /* Space out stats */
  text-align: center;
  margin-bottom: 1.5rem;
}
.stat-card .stat-value {
  font-size: 1.75rem;
  font-weight: 600;
  color: #363636;
  line-height: 1.2;
}
.stat-card .stat-label {
  font-size: 0.8rem;
  color: #7a7a7a;
  text-transform: uppercase;
}
.report-actions {
  padding: 0 1.5rem 1.5rem; /* Add padding here */
  margin-top: auto; /* Push actions to the bottom */
}
.chart-container {
  padding: 1.5rem;
}
.chart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}
