/* Admin Statistics Page Styles */

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.header-left {
  flex: 1;
}

.header-actions {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.stat-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
  border: 1px solid #f0f0f0;
}

.stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin: 0;
  font-weight: 500;
}

.charts-section {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
}

.chart-container {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  border: 1px solid #f0f0f0;
}

.chart-header {
  margin-bottom: 2rem;
  text-align: center;
}

.chart-header h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.5rem;
  color: var(--color-text-primary);
}

.chart-header p {
  margin: 0;
  color: var(--color-text-secondary);
  font-size: 0.95rem;
}

#revenue-chart,
#rentals-chart {
  height: 400px;
  width: 100%;
}

.flash-notice {
  background: #d4edda;
  color: #155724;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 2rem;
  border: 1px solid #c3e6cb;
}

/* Action buttons group styles for admin cars index */
.action-buttons-group {
  display: flex;
  gap: 1rem;
  align-items: center;
}

@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .stat-number {
    font-size: 2rem;
  }

  .chart-container {
    padding: 1.5rem;
  }

  #revenue-chart,
  #rentals-chart {
    height: 300px;
  }

  .flex-between {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .action-buttons-group {
    width: 100%;
    justify-content: flex-start;
  }
}