html, body {
  font-size: 14px;
  height: 100%;
  background-color: #f4f6f9;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

@media (min-width: 768px) {
  html, body {
    font-size: 16px;
  }
}

/* Sidebar Layout */
#wrapper {
  display: flex;
  height: 100vh;
  overflow: hidden;
}

#sidebar {
  min-width: 250px;
  max-width: 250px;
  background-color: #1e222d;
  color: #fff;
  display: flex;
  flex-direction: column;
}

#sidebar .sidebar-header {
  padding: 20px;
  font-size: 1.25rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

#sidebar .sidebar-menu {
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

#sidebar .sidebar-menu li {
  margin-bottom: 5px;
}

#sidebar .sidebar-menu li a {
  display: block;
  padding: 12px 20px;
  color: #adb5bd;
  text-decoration: none;
  font-weight: 500;
  border-radius: 0 20px 20px 0;
  margin-right: 20px;
  transition: all 0.3s;
}

#sidebar .sidebar-menu li a:hover,
#sidebar .sidebar-menu li a.active {
  background-color: #2c3344;
  color: #fff;
}

#content-wrapper {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

#topbar {
  background-color: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #e0e4e8;
}

.main-content {
  padding: 30px;
}

/* Dashboard Cards */
.dash-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border: none;
  height: 100%;
}

.dash-card-info h5 {
  font-size: 0.9rem;
  color: #6c757d;
  font-weight: 600;
  margin-bottom: 5px;
}

.dash-card-info h3 {
  font-size: 1.8rem;
  font-weight: 700;
  color: #212529;
  margin-bottom: 0;
}

.dash-card-info small {
  font-size: 0.8rem;
  color: #28a745;
}

.dash-card-icon {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
}

.bg-blue { background-color: #007bff; }
.bg-yellow { background-color: #ffc107; }
.bg-green { background-color: #28a745; }
.bg-teal { background-color: #17a2b8; }

/* Chart Containers */
.chart-container {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  margin-bottom: 30px;
}

.chart-header {
  margin-bottom: 20px;
}

.chart-header h5 {
  font-weight: 600;
  color: #212529;
  font-size: 1.1rem;
}

.chart-header small {
  color: #6c757d;
}

.table-container {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.status-badge {
  padding: 5px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
}
.status-active { background-color: #e6f4ea; color: #1e8e3e; }
.status-low { background-color: #fce8e6; color: #d93025; }
/* Report Table */
.report-table {
    border-collapse: collapse;
    width: 100%;
}
.report-table, .report-table th, .report-table td {
    border: 1px solid #333333 !important;
}
.report-table thead th {
    background-color: #ffffff !important;
    vertical-align: middle;
}
.report-table tbody tr:nth-child(odd) > td {
    background-color: #d1d5db !important;
}
.report-table tbody tr:nth-child(even) > td {
    background-color: #ffffff !important;
}
