/* ==========================================================================
   MAUDY KOMPUTER - REPORTS & ANALYTICS STYLES
   ========================================================================== */

.reports-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.report-filter-bar {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.filter-inputs-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.filter-chip-group {
  display: flex;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.2rem;
}

.filter-chip-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  background: transparent;
  border: none;
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-chip-btn.active {
  background: var(--primary);
  color: white;
}

/* Profit Summary Grid */
.profit-highlight-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.profit-stat-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  position: relative;
}

.profit-stat-title {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

.profit-stat-val {
  font-size: 1.5rem;
  font-weight: 800;
  font-family: 'JetBrains Mono', monospace;
  color: var(--text-primary);
}

.profit-stat-formula {
  font-size: 0.72rem;
  color: var(--text-muted);
}

.profit-stat-box.highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.1), rgba(6, 182, 212, 0.05));
  border-color: rgba(16, 185, 129, 0.3);
}

.profit-stat-box.highlight .profit-stat-val {
  color: var(--success);
}

/* SVG Chart Visualizer */
.chart-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

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

.chart-svg-container {
  width: 100%;
  height: 240px;
  position: relative;
}

.chart-svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.chart-bar {
  transition: all var(--transition-fast);
  cursor: pointer;
}

.chart-bar:hover {
  filter: brightness(1.2);
  transform: scaleY(1.02);
  transform-origin: bottom;
}

.chart-axis-label {
  font-size: 10px;
  fill: var(--text-muted);
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.chart-grid-line {
  stroke: var(--border-color);
  stroke-dasharray: 4 4;
}

/* Top Products List */
.top-product-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-color);
}

.top-product-item:last-child {
  border-bottom: none;
}

.rank-badge {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
}

.rank-badge.top-1 { background: #FEF3C7; color: #D97706; border-color: #F59E0B; }
.rank-badge.top-2 { background: #E2E8F0; color: #475569; border-color: #94A3B8; }
.rank-badge.top-3 { background: #FFEDD5; color: #C2410C; border-color: #FB923C; }
