* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Microsoft YaHei', Arial, sans-serif;
  background-color: #0a1929;
  color: #fff;
  padding: 20px;
}

.dashboard-container {
  max-width: 1920px;
  margin: 0 auto;
}

.header {
  text-align: center;
  margin-bottom: 20px;
}

.header h1 {
  font-size: 32px;
  color: #4fc3f7;
  margin-bottom: 10px;
}

.tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  background-color: #132f4c;
  border-radius: 8px;
  overflow: hidden;
}

.tab-button {
  padding: 15px 30px;
  background-color: transparent;
  border: none;
  color: #90caf9;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.tab-button:hover {
  background-color: #1a4c7f;
}

.tab-button.active {
  background-color: #1976d2;
  color: white;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.stats-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}

.stat-card {
  background: linear-gradient(135deg, #1a4c7f, #0f2a4a);
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  text-align: center;
  transition: transform 0.3s ease;
}

.stat-card:hover {
  transform: translateY(-5px);
}

.stat-card h3 {
  font-size: 18px;
  margin-bottom: 15px;
  color: #90caf9;
}

.stat-value {
  font-size: 32px;
  font-weight: bold;
  color: #4fc3f7;
}

.chart-container {
  background: linear-gradient(135deg, #1a4c7f, #0f2a4a);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.chart-title {
  font-size: 20px;
  color: #90caf9;
  margin-bottom: 15px;
  text-align: center;
}

.chart-wrapper {
  height: 400px;
  width: 100%;
}

.time-filter {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 20px;
}

.time-button {
  padding: 8px 16px;
  background-color: #132f4c;
  border: none;
  color: #90caf9;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.time-button.active {
  background-color: #1976d2;
  color: white;
}

.loading {
  text-align: center;
  padding: 50px;
  font-size: 20px;
  color: #90caf9;
}

@media (max-width: 768px) {
  .stats-container {
    grid-template-columns: 1fr;
  }

  .tab-button {
    padding: 12px 15px;
    font-size: 16px;
  }
}
