/* =====================================================
   USAGE METRICS STYLES
   Recent presets bar and debug panel
   ===================================================== */

/* Recent Presets Bar */
.recent-presets-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--color-surface-elevated, rgba(30, 41, 59, 0.3));
  border: 1px solid var(--color-border, rgba(148, 163, 184, 0.15));
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}

.recent-presets-label {
  font-size: 0.75rem;
  color: var(--color-muted, #94a3b8);
  font-weight: 500;
  white-space: nowrap;
}

.recent-presets-buttons {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.recent-preset-btn {
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-primary, #14b8a6);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.3);
  border-radius: 1rem;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.recent-preset-btn:hover {
  background: rgba(20, 184, 166, 0.2);
  border-color: var(--color-primary, #14b8a6);
}

/* Debug Panel */
.usage-metrics-debug {
  background: var(--color-surface, #0f172a);
  border: 1px solid var(--color-border, rgba(148, 163, 184, 0.2));
  border-radius: 0.75rem;
  padding: 1rem;
  font-family: var(--font-mono, 'JetBrains Mono', monospace);
  font-size: 0.75rem;
}

.usage-metrics-debug h4 {
  margin: 0 0 1rem 0;
  font-size: 0.875rem;
  color: var(--color-text, #e2e8f0);
  border-bottom: 1px solid var(--color-border, rgba(148, 163, 184, 0.2));
  padding-bottom: 0.5rem;
}

.metrics-section {
  margin-bottom: 1rem;
}

.metrics-section h5 {
  margin: 0 0 0.5rem 0;
  font-size: 0.75rem;
  color: var(--color-primary, #14b8a6);
  font-weight: 600;
}

.metrics-section ul {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--color-text, #e2e8f0);
}

.metrics-section li {
  margin-bottom: 0.25rem;
}

.metrics-section pre {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 0.375rem;
  padding: 0.5rem;
  overflow-x: auto;
  color: var(--color-muted, #94a3b8);
  font-size: 0.6875rem;
  max-height: 150px;
  margin: 0;
}

.metrics-section p {
  margin: 0;
  color: var(--color-muted, #94a3b8);
}

.metrics-timestamp {
  margin-top: 0.75rem;
  font-size: 0.625rem;
  color: var(--color-muted, #64748b);
}

/* Debug Panel Toggle (Hidden by Default) */
.debug-panel-toggle {
  position: fixed;
  bottom: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface, #0f172a);
  border: 1px solid var(--color-border, rgba(148, 163, 184, 0.3));
  color: var(--color-muted, #94a3b8);
  font-size: 1rem;
  cursor: pointer;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.debug-panel-toggle:hover {
  background: var(--color-surface-elevated, rgba(30, 41, 59, 0.8));
  color: var(--color-text, #e2e8f0);
}

.debug-panel-toggle.visible {
  display: flex;
}

.debug-panel-container {
  position: fixed;
  bottom: 56px;
  right: 10px;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  z-index: 9998;
  display: none;
}

.debug-panel-container.visible {
  display: block;
}

/* Light mode */
[data-theme="light"] .recent-presets-bar {
  background: var(--color-surface, #f8fafc);
}

[data-theme="light"] .usage-metrics-debug {
  background: var(--color-surface, #f8fafc);
}

[data-theme="light"] .metrics-section pre {
  background: rgba(0, 0, 0, 0.05);
}
