* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  line-height: 1.6;
}

.app {
  max-width: 1600px;
  margin: 0 auto;
  padding: 2rem;
}

.app-header {
  margin-bottom: 2rem;
}

.app-header h1 {
  font-size: 2.5rem;
  color: #f8fafc;
  margin-bottom: 0.5rem;
}

.app-header p {
  color: #94a3b8;
  font-size: 1.1rem;
}

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

.stat-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1.5rem;
  text-align: center;
}

.stat-card.goal-card {
  border-color: #10b981;
}

.stat-label {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: 700;
  color: #f8fafc;
}

.stat-value.revenue {
  color: #10b981;
}

.stat-value.goal {
  color: #10b981;
}

.goal-bar {
  height: 6px;
  background: #334155;
  border-radius: 1rem;
  overflow: hidden;
  margin-top: 0.75rem;
}

.goal-fill {
  height: 100%;
  background: linear-gradient(to right, #10b981, #34d399);
  transition: width 0.5s;
}

.content-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
}

@media (max-width: 1200px) {
  .content-grid {
    grid-template-columns: 1fr;
  }
}

.chart-panel,
.top-items-panel {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.75rem;
  padding: 1.5rem;
}

h2 {
  color: #f8fafc;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.hourly-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.5rem;
  height: 300px;
  padding: 1rem;
  background: #0f172a;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.hour-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
}

.bar-fill {
  width: 100%;
  background: linear-gradient(to top, #3b82f6, #60a5fa);
  border-radius: 0.25rem;
  position: relative;
  min-height: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.bar-fill:hover {
  background: linear-gradient(to top, #2563eb, #3b82f6);
}

.bar-tooltip {
  position: absolute;
  top: -3.5rem;
  left: 50%;
  transform: translateX(-50%);
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 0.375rem;
  padding: 0.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.bar-fill:hover .bar-tooltip {
  opacity: 1;
}

.tooltip-revenue {
  color: #10b981;
  font-weight: 700;
  font-size: 0.875rem;
}

.tooltip-orders {
  color: #94a3b8;
  font-size: 0.75rem;
}

.bar-label {
  color: #94a3b8;
  font-size: 0.75rem;
  margin-top: 0.5rem;
  font-weight: 600;
}

.summary-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.summary-card {
  background: #0f172a;
  padding: 1.25rem;
  border-radius: 0.5rem;
  text-align: center;
}

.summary-label {
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.summary-value {
  color: #f8fafc;
  font-size: 1.5rem;
  font-weight: 700;
}

.items-list {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.item-row {
  display: flex;
  gap: 1rem;
  background: #0f172a;
  padding: 1rem;
  border-radius: 0.5rem;
}

.item-rank {
  width: 36px;
  height: 36px;
  background: #3b82f6;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.item-info {
  flex: 1;
}

.item-name {
  color: #f8fafc;
  font-weight: 600;
  margin-bottom: 0.5rem;
  font-size: 1rem;
}

.item-bar {
  height: 6px;
  background: #334155;
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.item-bar-fill {
  height: 100%;
  background: linear-gradient(to right, #10b981, #34d399);
  transition: width 0.3s;
}

.item-stats {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
}

.item-quantity {
  color: #94a3b8;
}

.item-revenue {
  color: #10b981;
  font-weight: 700;
}
