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

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;
  background: #0f172a;
  color: #e2e8f0;
  padding: 20px;
}

.revenue-dashboard {
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 32px;
}

.dashboard-header h1 {
  font-size: 32px;
  font-weight: 700;
  color: #f1f5f9;
}

.period-selector {
  display: flex;
  gap: 8px;
  background: #1e293b;
  padding: 4px;
  border-radius: 8px;
}

.period-selector button {
  padding: 8px 20px;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: #94a3b8;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
}

.period-selector button:hover {
  color: #e2e8f0;
}

.period-selector button.active {
  background: #3b82f6;
  color: white;
}

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

.stat-card {
  background: #1e293b;
  padding: 24px;
  border-radius: 12px;
  border-left: 4px solid #3b82f6;
}

.stat-card.stat-today { border-left-color: #10b981; }
.stat-card.stat-week { border-left-color: #3b82f6; }
.stat-card.stat-month { border-left-color: #8b5cf6; }
.stat-card.stat-year { border-left-color: #f59e0b; }

.stat-label {
  font-size: 13px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.stat-value {
  font-size: 32px;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 8px;
}

.stat-change {
  font-size: 14px;
  font-weight: 600;
}

.stat-change.positive {
  color: #10b981;
}

.stat-change.negative {
  color: #ef4444;
}

.charts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 32px;
}

.chart-card {
  background: #1e293b;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #334155;
}

.chart-card h2 {
  font-size: 18px;
  color: #f1f5f9;
  margin-bottom: 24px;
}

.bar-chart {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  height: 240px;
  padding-top: 20px;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.bar-container {
  width: 100%;
  height: 200px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.bar {
  width: 100%;
  background: linear-gradient(180deg, #3b82f6, #1e40af);
  border-radius: 6px 6px 0 0;
  position: relative;
  min-height: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 8px;
  transition: all 0.3s;
}

.bar:hover {
  opacity: 0.8;
}

.bar-value {
  font-size: 11px;
  font-weight: 600;
  color: white;
}

.bar-label {
  font-size: 12px;
  color: #94a3b8;
}

.service-breakdown {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.service-row {
  display: grid;
  grid-template-columns: 200px 1fr 120px;
  gap: 16px;
  align-items: center;
}

.service-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.service-name {
  font-weight: 600;
  color: #f1f5f9;
  font-size: 14px;
}

.service-meta {
  font-size: 12px;
  color: #64748b;
}

.service-bar-container {
  background: #0f172a;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
}

.service-bar {
  height: 100%;
  background: linear-gradient(90deg, #8b5cf6, #6d28d9);
  border-radius: 6px;
  transition: width 0.5s ease;
}

.service-revenue {
  font-weight: 700;
  color: #10b981;
  text-align: right;
  font-size: 16px;
}

.tech-performance {
  background: #1e293b;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid #334155;
}

.tech-performance h2 {
  font-size: 20px;
  color: #f1f5f9;
  margin-bottom: 24px;
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.tech-card {
  display: flex;
  gap: 16px;
  padding: 16px;
  background: #0f172a;
  border-radius: 8px;
  border: 1px solid #334155;
  transition: all 0.2s;
}

.tech-card:hover {
  border-color: #3b82f6;
  transform: translateY(-2px);
}

.tech-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3b82f6, #8b5cf6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  flex-shrink: 0;
}

.tech-info {
  flex: 1;
}

.tech-name {
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 8px;
  font-size: 15px;
}

.tech-stats {
  display: flex;
  gap: 16px;
  align-items: baseline;
}

.tech-revenue {
  font-size: 20px;
  font-weight: 700;
  color: #10b981;
}

.tech-jobs {
  font-size: 13px;
  color: #64748b;
}

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