body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  padding: 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.header {
  text-align: center;
  margin-bottom: 40px;
  background: linear-gradient(45deg, #4a90e2, #357abd);
  color: white;
  padding: 25px;
  border-radius: 10px;
  position: relative;
}

.month-selector {
  position: absolute;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
}

.month-selector label {
  color: white;
  font-weight: 500;
  font-size: 14px;
}

.month-selector select {
  padding: 8px 12px;
  border-radius: 6px;
  border: none;
  background: white;
  color: #333;
  font-size: 14px;
  cursor: pointer;
  min-width: 140px;
}

.current-month-badge {
  background: rgba(255, 255, 255, 0.2);
  padding: 4px 12px;
  border-radius: 15px;
  font-size: 12px;
  margin-top: 5px;
}

.loading {
  text-align: center;
  padding: 50px;
  color: #666;
  font-size: 18px;
}

.error {
  background: #ffebee;
  border: 1px solid #f44336;
  border-radius: 8px;
  padding: 20px;
  margin: 20px 0;
  color: #c62828;
  text-align: center;
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 40px;
}

.metric-card {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #4a90e2;
  transition: transform 0.3s ease;
}

.metric-card:hover {
  transform: translateY(-5px);
}

.metric-title {
  font-size: 18px;
  font-weight: bold;
  color: #333;
  margin-bottom: 15px;
  text-align: center;
}

.chart-container {
  position: relative;
  height: 300px;
  margin-bottom: 20px;
}

.table-container {
  background: white;
  border-radius: 12px;
  padding: 25px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
}

th,
td {
  padding: 12px 8px;
  text-align: left;
  border-bottom: 1px solid #e0e0e0;
  font-size: 14px;
}

th {
  background: linear-gradient(45deg, #4a90e2, #357abd);
  color: white;
  font-weight: 600;
  position: sticky;
  top: 0;
}

tr:hover {
  background-color: #f8f9ff;
}

.score {
  padding: 6px 12px;
  border-radius: 20px;
  font-weight: bold;
  text-align: center;
}

.score-high {
  background: #e8f5e8;
  color: #2d7d32;
}
.score-medium {
  background: #fff3e0;
  color: #ef6c00;
}
.score-low {
  background: #ffebee;
  color: #c62828;
}

.formula-section {
  background: #f8f9ff;
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 25px;
  border-left: 4px solid #4a90e2;
}

.formula {
  background: white;
  padding: 10px;
  border-radius: 5px;
  font-family: "Courier New", monospace;
  margin: 5px 0;
  border: 1px solid #e0e0e0;
}

.insights {
  background: #e8f5e8;
  border-radius: 8px;
  padding: 20px;
  margin-top: 25px;
  border-left: 4px solid #4caf50;
}

@media (max-width: 768px) {
  .month-selector {
    position: static;
    transform: none;
    justify-content: center;
    margin-top: 15px;
  }

  .header {
    padding: 20px 15px;
  }
}
