.history-header-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}
.header-icon-btn {
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background-color 0.2s;
}
.header-icon-btn:hover {
  background-color: var(--border);
}

.history-item {
  background-color: var(--bg-card);
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 12px;
  border: 1px solid var(--border);
}
.history-date {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
}
.history-text {
  font-weight: 500;
}

.chart-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  background-color: var(--bg-card);
  padding: 4px;
  border-radius: 12px;
  width: fit-content;
  margin: auto;
  border: 1px solid var(--border);
}
.filter-btn {
  background: none;
  border: none;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}
.filter-btn.active {
  background-color: var(--accent);
  color: var(--bg-primary);
}

.chart-info-header {
  text-align: center;
  margin-bottom: 16px;
}
.chart-wrapper {
  background-color: var(--bg-card);
  padding: 16px;
  border-radius: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  position: relative;
  height: 250px;
  width: 100%;
  border: 1px solid var(--border);
}

.chart-stats-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 24px;
}
.chart-stat-box {
  background-color: var(--bg-card);
  padding: 16px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
}
.stat-label-sm {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.stat-value-lg {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.empty-state {
  text-align: center;
  color: var(--text-secondary);
  padding: 40px 0;
}
