/* Reports View Styles */

/* Tab Navigation */
.tab-navigation {
  display: flex;
  gap: calc(var(--spacing-unit) * 1);
  padding: 0 0 calc(var(--spacing-unit) * 2) 0;
  border-bottom: 2px solid var(--color-background);
}

.tab-button {
  flex: 1;
  padding: calc(var(--spacing-unit) * 1.5) calc(var(--spacing-unit) * 2);
  background: transparent;
  border: none;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  transition:
    color var(--transition-speed),
    border-bottom var(--transition-speed);
  border-bottom: 3px solid transparent;
  -webkit-tap-highlight-color: transparent;
}

.tab-button.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
}

.tab-button:active {
  opacity: 0.7;
}

/* Reports View */
.reports-view {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 3);
  padding: calc(var(--spacing-unit) * 2) 0;
}

/* Session Selector */
.session-selector {
  display: flex;
  align-items: center;
  gap: calc(var(--spacing-unit) * 2);
  padding: calc(var(--spacing-unit) * 2);
  background: var(--color-surface);
  border-radius: var(--border-radius);
}

.session-selector label {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.session-dropdown {
  flex: 1;
  padding: calc(var(--spacing-unit) * 1.5);
  font-size: 14px;
  border: 2px solid var(--color-background);
  border-radius: 8px;
  background: var(--color-background);
  color: var(--color-text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.session-dropdown:focus {
  outline: 2px solid var(--color-primary);
  outline-offset: 0;
  border-color: var(--color-primary);
}

/* Report Stats */
.report-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: calc(var(--spacing-unit) * 2);
}

.report-stat-card {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: calc(var(--spacing-unit) * 2);
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  gap: var(--spacing-unit);
}

.report-stat-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
  font-weight: 600;
}

.report-stat-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-primary);
}

/* Charts Section */
.charts-section {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 3);
}

.chart-container {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: calc(var(--spacing-unit) * 2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.chart-container h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 calc(var(--spacing-unit) * 2) 0;
}

.chart-container canvas {
  max-height: 250px;
}

/* Session History */
.session-history {
  background: var(--color-surface);
  border-radius: var(--border-radius);
  padding: calc(var(--spacing-unit) * 2);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.session-history h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--color-text);
  margin: 0 0 calc(var(--spacing-unit) * 2) 0;
}

.session-list {
  display: flex;
  flex-direction: column;
  gap: calc(var(--spacing-unit) * 1.5);
}

.session-item {
  padding: calc(var(--spacing-unit) * 2);
  background: var(--color-background);
  border-radius: 8px;
  border-left: 4px solid var(--color-primary);
}

.session-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-unit);
}

.session-item-date {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
}

.session-item-count {
  font-size: 12px;
  color: var(--color-text-secondary);
}

.session-item-stats {
  display: flex;
  gap: calc(var(--spacing-unit) * 2);
  font-size: 12px;
  color: var(--color-text-secondary);
}

.session-item-stat {
  display: flex;
  flex-direction: column;
}

.session-item-stat-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--color-text-secondary);
}

.session-item-stat-value {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text);
}

.session-list-empty {
  text-align: center;
  padding: calc(var(--spacing-unit) * 4);
  color: var(--color-text-secondary);
  font-style: italic;
}

/* Dark mode adjustments */
@media (prefers-color-scheme: dark) {
  .session-selector {
    background: var(--color-surface);
  }

  .session-dropdown {
    background: var(--color-background);
    border-color: #374151;
  }

  .session-item {
    background: #111827;
  }
}
