/* Token Usage Styles */
.token-usage-container {
  padding: 16px;
  height: 100%;
  overflow-y: auto;
}

.token-usage-loading,
.token-usage-error,
.token-usage-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-secondary);
}

.token-usage-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.token-usage-header h3 {
  margin: 0;
  font-size: 18px;
  color: var(--text-primary);
}

.month-selector {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 14px;
  cursor: pointer;
}

.token-usage-filters {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.filter-select {
  flex: 1;
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
}

.btn-reset {
  padding: 6px 12px;
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-reset:hover {
  background: var(--bg-hover);
}

/* Stats Cards */
.stats-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.stat-card {
  padding: 12px;
  border-radius: 8px;
  text-align: center;
}

.stat-card.total {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.stat-card.prompt {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
}

.stat-card.completion {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  color: white;
}

.stat-label {
  font-size: 12px;
  opacity: 0.9;
  margin-bottom: 4px;
}

.stat-value {
  font-size: 20px;
  font-weight: bold;
}

/* Request Stats */
.request-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--bg-secondary);
  border-radius: 8px;
}

.stat-item {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
}

.stat-item.success {
  color: #10b981;
}

.stat-item.interrupted {
  color: #f59e0b;
}

.stat-item.failed {
  color: #ef4444;
}

.stat-name {
  font-weight: 500;
}

.stat-number {
  font-weight: bold;
}

/* Sections */
.daily-stats-section,
.role-stats-section,
.chat-stats-section {
  margin-bottom: 16px;
}

.daily-stats-section h4,
.role-stats-section h4,
.chat-stats-section h4 {
  margin: 0 0 8px 0;
  font-size: 15px;
  color: var(--text-primary);
}

/* Lists */
.daily-stats-list,
.role-stats-list,
.chat-stats-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.daily-stat-item,
.role-stat-item,
.chat-stat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-secondary);
  border-radius: 6px;
  font-size: 13px;
}

.day-label,
.role-name,
.chat-name {
  flex: 1;
  font-weight: 500;
  color: var(--text-primary);
}

.day-tokens,
.role-tokens,
.chat-tokens {
  margin: 0 12px;
  color: var(--text-secondary);
  font-size: 12px;
}

.day-count,
.role-count,
.chat-count {
  color: var(--text-secondary);
  font-size: 12px;
}
