body {
  font-family: "Nunito", sans-serif;
  background-color: #f0f2f5;
  color: #343a40;
  margin-top: 30px;
  margin-bottom: 30px;
}
.container {
  background-color: #fff;
  padding: 35px;
  border-radius: 12px;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.06);
}
h1 {
  color: #2c3e50;
  margin-bottom: 30px;
  border-bottom: 2px solid #e0e0e0;
  padding-bottom: 12px;
  font-size: 2.5rem;
}
.form-label {
  font-weight: 600;
  color: #495057;
  margin-bottom: 0.3rem;
}
.form-control,
.form-select {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 0.5rem 0.8rem;
}
.btn-primary {
  background-color: #3498db;
  border-color: #3498db;
  border-radius: 8px;
}
.btn-primary:hover {
  background-color: #2980b9;
  border-color: #2980b9;
}

.table-responsive {
  overflow-x: auto;
}
.table-bordered {
  border-collapse: collapse;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
  width: 100%;
  max-width: 100%;
  margin-bottom: 0;
}
.table-bordered th,
.table-bordered td,
.table-bordered tfoot td {
  border: 1px solid #e0e0e0;
  padding: 0.75rem 0.75rem;
  word-break: break-word;
  text-align: center;
}
.table thead th {
  background-color: #f8f9fa;
  border-bottom-width: 2px;
  border-bottom-color: #d0d0d0;
  font-weight: 600;
  color: #555;
  padding: 0.9rem 0.75rem;
  text-align: center;
}
.table tfoot {
  font-weight: bold;
  background-color: #f8f9fa;
}
.table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}
.chart-card {
  margin-bottom: 25px;
  transition: box-shadow 0.3s ease;
}
.chart-card:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}
.card {
  border: none;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.08);
}
.card-header {
  background-color: #f8f9fa;
  border-bottom: 1px solid #e0e0e0;
  padding: 18px 22px;
  font-weight: 700;
  border-radius: 10px 10px 0 0;
  font-size: 1.1rem;
}
.card-body {
  padding: 25px;
}
.chart-container {
  width: 100%;
  min-height: 320px;
}
.dataTables_wrapper .dataTables_filter input {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 0.5rem 0.8rem;
}
.dataTables_wrapper .dataTables_length select {
  border-radius: 8px;
  border: 1px solid #ced4da;
  padding: 0.5rem 0.8rem;
}
.dataTables_wrapper .dt-buttons {
  margin-bottom: 0.5em;
}
.dataTables_wrapper .dt-buttons button {
  border-radius: 8px;
  background-color: #f0f0f0;
  color: #555;
  border: 1px solid #d0d0d0;
  padding: 0.5rem 1rem;
  margin-right: 0.5rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}
.dataTables_wrapper .dt-buttons button:hover {
  background-color: #e0e0e0;
  color: #333;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
  padding: 0.5rem 0.8rem;
  margin: 0 3px;
  border-radius: 8px;
  border: 1px solid #ced4da;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current {
  background-color: #3498db;
  color: white !important;
  border-color: #3498db;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background-color: #e0e0e0;
  border-color: #d0d0d0;
}
/* KPI Card Styling */
.kpi-card {
  margin-bottom: 20px;
}
.kpi-card .card-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.kpi-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #2c3e50;
}
.kpi-label {
  color: #777;
}
/* Summary Chart Styling */
#summaryChartContainer {
  width: 100%;
  min-height: 200px;
  margin-bottom: 20px;
}

.selected-range {
  background-color: #e0f7fa !important;
  border: 2px solid #00acc1;
}

.highlight-range {
  background-color: #ffad99 !important; /* Light yellow */
}

/* Add this CSS to make the table horizontal */
#momChangeContainer table {
  width: 100%;
  table-layout: fixed;
}

#momChangeContainer thead tr,
#momChangeContainer tbody tr {
  display: flex;
}

#momChangeContainer th,
#momChangeContainer td {
  flex: 1;
  min-width: 90px;
  text-align: center;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
}

#momChangeContainer td {
  font-weight: 500;
}

/*
  demo
*/

.bg-zero {
  background-color: #ffcccc; /* Light red */
}

.bg-seven97 {
  background-color: #ccffcc; /* Light green */
}

.bg-eight99 {
  background-color: #ccccff; /* Light blue */
}

/* Optionally, set a contrasting text color */
.bg-zero,
.bg-seven97,
.bg-eight99 {
  color: black;
}

small {
  font-size: 0.8rem;
}

.metric-card {
  border: none;
  border-radius: 16px;
  background: linear-gradient(145deg, #ffffff, #f8f9fa);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.metric-header {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.metric-icon {
  font-size: 1.5rem;
  color: #2c3e50;
  margin-right: 0.75rem;
}

.metric-title {
  font-size: 1rem;
  color: #4a5568;
  font-weight: 600;
  margin-bottom: 0;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 2rem;
  font-weight: 700;
  color: #2d3748;
  margin-bottom: 0;
}

.metric-subtext {
  font-size: 0.8rem;
  color: #718096;
}

.text-success {
  color: #38a169 !important;
}

@media (max-width: 768px) {
  .metric-value {
    font-size: 1.75rem;
  }

  .metric-icon {
    font-size: 1.25rem;
  }
}

.card {
  background-color: #f8f9fa !important;
}
