.bg-color {
  background-color: #ffffff;
}

.container.py-3.py-md-5 {
  background-color: rgb(0 0 0 / 25%);
  border-radius: 8px;
  padding: 20px;
  margin-top: 2%;
}

.img-fluid {
  margin-bottom: 1%;
}

.span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.745);
  font-style: italic;
}

@keyframes gradient-animation {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

.step-section {
  display: none;
}
.step-section.active {
  display: block;
}

:root {
  --primary: #4361ee;
  --secondary: #3f37c9;
  --accent: #4895ef;
  --light: #f8f9fa;
  --dark: #212529;
  --success: #4cc9f0;
  --danger: #f72585;
  --warning: #f8961e;
  --info: #43aa8b;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  background-color: #f5f7fa;
  color: var(--dark);
}

.dashboard {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
  z-index: -1;
}

.sidebar {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  padding: 1.5rem;
  position: sticky;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
}

.logo {
  width: 100%;
  font-weight: 600;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo img {
  max-width: 100%;
}

.nav-menu {
  list-style: none;
}

.nav-item {
  margin-bottom: 0.5rem;
}

.nav-link {
  color: white;
  text-decoration: none;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  transition: all 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
  background-color: rgba(255, 255, 255, 0.2);
}

.nav-link i {
  font-size: 1.2rem;
}

.main-content {
  padding: 2rem;
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.page-title h1 {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dark);
}

.page-title p {
  font-size: 1rem;
  color: #6c757d;
  margin-top: 0.25rem;
}

.user-info {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.user-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 600;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-title {
  font-size: 0.9rem;
  color: #6c757d;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--dark);
}

.stat-change {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  margin-top: 0.5rem;
}

.stat-change.up {
  color: var(--success);
}

.stat-change.down {
  color: var(--danger);
}

.charts-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.chart-title {
  font-size: 1.2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--dark);
}

.chart-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 300px; /* keep or adjust as needed */
}

.half-charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

@media (max-width: 1200px) {
  .stats-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .charts-container {
    grid-template-columns: 1fr;
  }

  .half-charts {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard {
    grid-template-columns: 1fr;
  }

  .stats-container {
    grid-template-columns: 1fr;
  }
}

#reports-section {
  margin-top: 2rem;
  display: none;
  animation: fadeIn 0.4s ease-in-out;
}

#reports-section .chart-card {
  background: white;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: 2rem;
}

#reports-section h2.chart-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1.5rem;
}

#reports-section h4.chart-title {
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 1rem;
  border-bottom: 1px solid #ddd;
  padding-bottom: 0.5rem;
}

#reports-section table.table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

#reports-section table.table th,
#reports-section table.table td {
  padding: 0.75rem 1rem;
  border: 1px solid #dee2e6;
  font-size: 0.95rem;
  color: #212529;
}

#reports-section ul.list-group li {
  font-size: 0.95rem;
  color: #333;
  padding: 0.75rem 1rem;
  background-color: #f8f9fa;
  border-bottom: 1px solid #dee2e6;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#improvement-report {
  margin-top: 2rem;
  animation: fadeIn 0.4s ease-in-out;
}

#improvement-report .chart-title {
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--dark);
  margin-bottom: 1rem;
}

#improvement-report .table {
  width: 100%;
  border-collapse: collapse;
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
}

#improvement-report .table th,
#improvement-report .table td {
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid #ddd;
}

#improvement-report .table th {
  background-color: var(--primary);
  color: white;
}

#improvement-report .table td {
  color: var(--dark);
}
