/* General Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', sans-serif;
}

body {
  background-color: #f5f5f5;
  color: #1f2937;
  padding: 20px;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header */
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}

header h1 {
  font-size: 1.8rem;
  color: #4b5563;
}

header input[type="date"] {
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #d1d5db;
}

/* KPI Cards */
.kpi-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

.card-icon {
  font-size: 2.5rem;
  margin-right: 15px;
}

.card h3 {
  font-weight: 600;
  margin-bottom: 5px;
}

.card p {
  font-size: 1.2rem;
  font-weight: 700;
  color: #111827;
}

/* Charts */
.charts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
  margin-bottom: 40px;
}

.chart-container {
  background-color: #ffffff;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
}

/* Tables */
table {
  width: 100%;
  border-collapse: collapse;
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(0,0,0,0.05);
  margin-bottom: 40px;
}

table thead {
  background-color: #6366f1;
  color: white;
}

table th, table td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
}

table tbody tr:hover {
  background-color: #f3f4f6;
}

/* Progress Bar */
.progress-bar-container {
  position: relative;
  background-color: #e5e7eb;
  height: 18px;
  border-radius: 10px;
  overflow: hidden;
}

.progress-bar {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background-color: #6366f1;
  border-radius: 10px;
}

.progress-text {
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #111827;
  line-height: 18px;
}

/* Responsive */
@media (max-width: 768px) {
  .charts {
    grid-template-columns: 1fr;
  }

  .kpi-cards {
    grid-template-columns: 1fr 1fr;
  }
}
