:root {
  --sidebar-width: 250px;
}

body {
  font-size: 0.9rem;
  background-color: #f8f9fa;
}

#sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background-color: #343a40;
  color: #fff;
  transition: all 0.3s;
  position: fixed;
  z-index: 999;
}

#sidebar .sidebar-header {
  padding: 20px;
  background-color: #2c3238;
}

#sidebar ul.components {
  padding: 20px 0;
  border-bottom: 1px solid #2c3238;
}

#sidebar ul p {
  color: #fff;
  padding: 10px;
}

#sidebar ul li a {
  padding: 10px 20px;
  font-size: 1.1em;
  display: block;
  color: #ddd;
  transition: all 0.3s;
  border-left: 3px solid transparent;
}

#sidebar ul li a:hover {
  color: #fff;
  background: #495057;
  border-left: 3px solid #0d6efd;
}

#sidebar ul li.active > a {
  color: #fff;
  background: #495057;
  border-left: 3px solid #0d6efd;
}

#content {
  width: calc(100% - var(--sidebar-width));
  padding: 20px;
  min-height: 100vh;
  transition: all 0.3s;
  margin-left: var(--sidebar-width);
}

#sidebarCollapse {
  background: #343a40;
  border-color: #343a40;
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 999;
  display: none;
}

.card {
  box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
  border: 1px solid rgba(0, 0, 0, 0.125);
  margin-bottom: 20px;
}

.stat-card .card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-card .card-icon {
  font-size: 2rem;
  opacity: 0.3;
}

.chart-container {
  height: 300px;
}

@media (max-width: 768px) {
  #sidebar {
    margin-left: -var(--sidebar-width);
  }

  #sidebar.active {
    margin-left: 0;
  }

  #content {
    width: 100%;
    margin-left: 0;
  }

  #content.active {
    margin-left: var(--sidebar-width);
  }

  #sidebarCollapse {
    display: block;
  }
}
