/**
 * Dashboard Styles
 * PlaceholderMCP Dashboard v2
 * Clean, minimal, Anthropic-inspired design
 */

/* CSS Variables */
:root {
  --primary-color: #000000;
  --primary-hover: #1a1a1a;
  --secondary-color: #525252;

  --success-color: #22c55e;
  --warning-color: #eab308;
  --danger-color: #dc2626;
  --info-color: #6b7280;

  --text-primary: #0a0a0a;
  --text-secondary: #525252;
  --text-muted: #a3a3a3;

  --bg-primary: #ffffff;
  --bg-secondary: #fafafa;
  --bg-tertiary: #f5f5f5;
  --bg-sidebar: #ffffff;

  --border-color: #e5e5e5;
  --border-light: #f0f0f0;

  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.03);
  --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 4px 6px -1px rgba(0, 0, 0, 0.05);

  --sidebar-width: 240px;
  --header-height: 56px;
  --transition-fast: 0.15s ease;
  --transition: 0.2s ease;
}

/* Reset & Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Layout */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

/* Sidebar */
.sidebar {
  width: var(--sidebar-width);
  background: var(--bg-sidebar);
  color: var(--text-primary);
  border-right: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  position: fixed;
  height: 100vh;
  z-index: 100;
  transition: transform var(--transition);
}

.sidebar-header {
  padding: 1.25rem 1rem;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.sidebar-logo-icon {
  width: 32px;
  height: 32px;
  background: var(--primary-color);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.875rem;
}

.sidebar-logo-text {
  font-size: 0.9375rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--text-primary);
}

/* Sidebar Navigation */
.sidebar-nav {
  flex: 1;
  padding: 0.75rem 0;
  overflow-y: auto;
}

.nav-section {
  padding: 0.5rem 0.75rem;
}

.nav-section-title {
  font-size: 0.6875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
  padding: 0 0.625rem;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.625rem;
  margin: 1px 0;
  border-radius: 6px;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  font-size: 0.8125rem;
  transition: all var(--transition-fast);
}

.nav-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.nav-item.active {
  background: var(--bg-tertiary);
  color: var(--primary-color);
  font-weight: 500;
}

.nav-item i {
  width: 16px;
  font-size: 0.8125rem;
  text-align: center;
  opacity: 0.8;
}

/* Sidebar User */
.sidebar-user {
  padding: 0.875rem 1rem;
  border-top: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.user-avatar {
  width: 32px;
  height: 32px;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 500;
  font-size: 0.75rem;
}

.user-info {
  flex: 1;
  min-width: 0;
}

#user-name {
  font-weight: 500;
  font-size: 0.8125rem;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#user-email {
  font-size: 0.6875rem;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Main Content */
.main-content {
  flex: 1;
  margin-left: var(--sidebar-width);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: var(--bg-primary);
}

/* Header */
.dashboard-header {
  height: var(--header-height);
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 1rem;
}

#sidebar-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 1rem;
  color: var(--text-secondary);
  cursor: pointer;
  padding: 0.5rem;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

#logout-btn {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  padding: 0.375rem 0.75rem;
  background: none;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

#logout-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

/* Header Center */
.header-center {
  flex: 1;
  display: flex;
  justify-content: center;
}

/* Trial Badge */
.trial-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.375rem 0.75rem;
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 1px solid #f59e0b;
  border-radius: 20px;
  color: #92400e;
  font-size: 0.75rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition-fast);
  animation: trialPulse 3s ease-in-out infinite;
}

.trial-badge:hover {
  background: linear-gradient(135deg, #fde68a 0%, #fcd34d 100%);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.trial-badge i {
  font-size: 0.8125rem;
}

.trial-badge-cta {
  background: #f59e0b;
  color: white;
  padding: 0.125rem 0.5rem;
  border-radius: 10px;
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.trial-badge.trial-ending-soon {
  background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
  border-color: #ef4444;
  color: #991b1b;
  animation: trialUrgent 1s ease-in-out infinite;
}

.trial-badge.trial-ending-soon .trial-badge-cta {
  background: #ef4444;
}

/* Usage indicator inside trial badge */
.trial-usage {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding-left: 0.4rem;
  border-left: 1px solid rgba(146, 64, 14, 0.25);
  margin-left: 0.1rem;
}

.trial-usage-bar {
  display: inline-block;
  width: 40px;
  height: 6px;
  background: rgba(146, 64, 14, 0.15);
  border-radius: 3px;
  overflow: hidden;
  position: relative;
}

.trial-usage-fill {
  display: block;
  height: 100%;
  border-radius: 3px;
  background: #10b981;
  transition: width 0.6s ease, background 0.4s ease;
  width: 0%;
}

.trial-usage-fill.usage-warn {
  background: #f59e0b;
}

.trial-usage-fill.usage-critical {
  background: #ef4444;
}

/* Dual meter layout (H / M) */
.trial-usage-meter {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
}

.trial-usage-meter + .trial-usage-meter {
  margin-left: 0.35rem;
}

.trial-usage-label {
  font-size: 0.5rem;
  font-weight: 600;
  opacity: 0.7;
  text-transform: uppercase;
  line-height: 1;
}

.trial-usage-meter.exceeded .trial-usage-fill {
  background: #ef4444;
  animation: badgePulse 1s ease-in-out infinite;
}

/* AI meter in top nav — purple color */
.trial-usage-meter.ai .trial-usage-fill.ai-meter-fill {
  background: #8b5cf6;
}
.trial-usage-meter.ai .trial-usage-fill.ai-meter-fill.usage-warn {
  background: #f59e0b;
}
.trial-usage-meter.ai .trial-usage-fill.ai-meter-fill.usage-critical {
  background: #ef4444;
}
.trial-usage-meter.ai .trial-usage-label {
  color: #7c3aed;
  font-weight: 700;
}
.trial-usage-meter.ai {
  padding-left: 0.35rem;
  border-left: 1px solid rgba(124, 58, 237, 0.25);
}

@keyframes badgePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.trial-usage-pct {
  font-size: 0.625rem;
  font-weight: 600;
  color: #92400e;
  min-width: 22px;
  text-align: right;
}

.trial-badge.trial-ending-soon .trial-usage {
  border-left-color: rgba(153, 27, 27, 0.25);
}

.trial-badge.trial-ending-soon .trial-usage-pct {
  color: #991b1b;
}

.trial-badge.trial-ending-soon .trial-usage-bar {
  background: rgba(153, 27, 27, 0.15);
}

.trial-badge.hidden {
  display: none;
}

@keyframes trialPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}

@keyframes trialUrgent {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.02); }
}

/* Badge countdown when hourly limit exceeded */
.trial-usage-countdown {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.6rem;
  color: #dc2626;
  font-weight: 600;
  margin-left: 0.25rem;
  white-space: nowrap;
}

.trial-usage-countdown i {
  font-size: 0.55rem;
  animation: hourglassPulse 2s ease-in-out infinite;
}

@keyframes hourglassPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Urgent upgrade CTA when limit hit */
.trial-badge-cta.cta-urgent {
  background: #dc2626;
  animation: ctaPulse 1.5s ease-in-out infinite;
}

@keyframes ctaPulse {
  0%, 100% { background: #dc2626; transform: scale(1); }
  50% { background: #ef4444; transform: scale(1.05); }
}

/* Badge in exceeded state */
.trial-badge.limit-exceeded {
  border-color: rgba(220, 38, 38, 0.4);
  background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
}

/* Content Area */
#dashboard-content {
  flex: 1;
  padding: 1.5rem 2rem;
  max-width: 1200px;
}

/* Module Header */
.module-header {
  margin-bottom: 1.5rem;
}

.module-header h1 {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.25rem;
  letter-spacing: -0.02em;
}

.module-header p {
  color: var(--text-secondary);
  font-size: 0.875rem;
}

/* Stats Grid */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.stat-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.stat-info h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-primary);
  letter-spacing: -0.02em;
}

.stat-info p {
  color: var(--text-muted);
  font-size: 0.75rem;
}

/* Cards */
.profile-card,
.api-keys-section,
.password-section,
.settings-section,
.usage-stats,
.quick-start-section {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.profile-card h2,
.api-keys-section h2,
.password-section h2,
.settings-section h2,
.usage-stats h2,
.quick-start-section h2 {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

/* Forms */
.form-group {
  margin-bottom: 0.875rem;
}

.form-group label {
  display: block;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 0.375rem;
  font-size: 0.8125rem;
}

.form-control {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  font-size: 0.875rem;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: border-color var(--transition-fast);
}

.form-control:focus {
  outline: none;
  border-color: var(--text-primary);
}

.form-control:read-only {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.form-control::placeholder {
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.form-text {
  font-size: 0.6875rem;
  margin-top: 0.25rem;
  color: var(--text-muted);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  padding: 0.5rem 1rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
}

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

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

.btn-secondary {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  background: var(--border-color);
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-primary);
}

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

.btn-outline-primary {
  background: transparent;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.btn-outline-primary:hover {
  background: var(--primary-color);
  color: white;
}

.btn-outline-secondary {
  background: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
}

.btn-outline-secondary:hover {
  background: var(--bg-tertiary);
}

.btn-danger {
  background: var(--danger-color);
  color: white;
}

.btn-danger:hover {
  background: #b91c1c;
}

.btn-sm {
  padding: 0.375rem 0.625rem;
  font-size: 0.75rem;
}

.btn-icon {
  padding: 0.5rem;
  min-width: 32px;
}

/* Code Examples */
.code-example {
  background: #1a1a1a;
  border-radius: 6px;
  overflow: hidden;
}

.code-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.6875rem;
}

.copy-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  font-size: 0.6875rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.copy-btn:hover {
  color: white;
}

.code-example pre {
  padding: 0.75rem;
  margin: 0;
  overflow-x: auto;
}

.code-example code {
  color: rgba(255, 255, 255, 0.85);
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
  font-size: 0.8125rem;
}

/* API Keys */
.api-key-card {
  padding: 0.875rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.api-key-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}

.api-key-header h3 {
  font-size: 0.875rem;
  font-weight: 500;
}

.badge {
  padding: 0.125rem 0.375rem;
  border-radius: 4px;
  font-size: 0.6875rem;
  font-weight: 500;
}

.badge-success {
  background: rgba(34, 197, 94, 0.1);
  color: var(--success-color);
}

.badge-warning {
  background: rgba(234, 179, 8, 0.1);
  color: var(--warning-color);
}

.api-key-value {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.api-key-value code {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  padding: 0.375rem 0.625rem;
  border-radius: 4px;
  font-family: 'SF Mono', 'Monaco', 'Menlo', monospace;
  font-size: 0.8125rem;
  flex: 1;
  min-width: 180px;
}

.api-key-info {
  margin-top: 0.375rem;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.api-key-warning {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.75rem;
  background: rgba(234, 179, 8, 0.05);
  border: 1px solid rgba(234, 179, 8, 0.15);
  border-radius: 6px;
  color: var(--text-secondary);
  font-size: 0.8125rem;
}

.api-key-warning i {
  color: var(--warning-color);
  margin-top: 0.125rem;
}

/* Settings */
.setting-item,
.danger-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border-light);
}

.setting-item:last-child,
.danger-item:last-child {
  border-bottom: none;
}

.setting-info h4,
.danger-info h4 {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.125rem;
}

.setting-info p,
.danger-info p {
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* Toggle Switch */
.switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 20px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--border-color);
  transition: var(--transition-fast);
  border-radius: 20px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 2px;
  bottom: 2px;
  background-color: white;
  transition: var(--transition-fast);
  border-radius: 50%;
}

input:checked + .slider {
  background-color: var(--primary-color);
}

input:checked + .slider:before {
  transform: translateX(16px);
}

/* Danger Zone */
.danger-zone {
  background: var(--bg-primary);
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-radius: 8px;
  padding: 1.25rem;
}

.danger-zone h2 {
  color: var(--danger-color);
  font-size: 0.9375rem;
  margin-bottom: 0.75rem;
}

/* Usage */
.usage-card {
  padding: 0.875rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 6px;
}

.usage-card h3 {
  font-size: 0.8125rem;
  font-weight: 500;
  margin-bottom: 0.5rem;
}

.usage-bar {
  height: 6px;
  background: var(--border-color);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: 0.375rem;
}

.usage-fill {
  height: 100%;
  background: var(--primary-color);
  border-radius: 3px;
  transition: width var(--transition);
}

.usage-card p {
  font-size: 0.6875rem;
  color: var(--text-muted);
}

.usage-chart-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 8px;
  color: var(--text-muted);
}

.usage-chart-placeholder i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

/* Error/Not Found */
.module-error {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  text-align: center;
}

.module-error i {
  font-size: 3rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.module-error h1 {
  font-size: 1.25rem;
  margin-bottom: 0.375rem;
}

.module-error p {
  color: var(--text-secondary);
  margin-bottom: 1.25rem;
}

/* Loading Overlay */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 255, 255, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.loading-overlay.hidden {
  display: none;
}

.loading-spinner {
  background: white;
  padding: 1.5rem 2rem;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-lg);
}

.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid var(--border-color);
  border-top-color: var(--primary-color);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 1100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.toast {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.75rem 1rem;
  background: white;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.2s ease;
  font-size: 0.8125rem;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.toast-success { border-left: 3px solid var(--success-color); }
.toast-error { border-left: 3px solid var(--danger-color); }
.toast-warning { border-left: 3px solid var(--warning-color); }
.toast-info { border-left: 3px solid var(--info-color); }

.toast-success i { color: var(--success-color); }
.toast-error i { color: var(--danger-color); }
.toast-warning i { color: var(--warning-color); }
.toast-info i { color: var(--info-color); }

.toast-close {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 0.25rem;
  margin-left: auto;
}

.toast-close:hover {
  color: var(--text-primary);
}

/* Tables */
.table-wrapper {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th, td {
  padding: 0.625rem 0.75rem;
  text-align: left;
  font-size: 0.8125rem;
}

th {
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

td {
  border-bottom: 1px solid var(--border-light);
}

tr:last-child td {
  border-bottom: none;
}

/* Empty State */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  text-align: center;
  color: var(--text-muted);
}

.empty-state i {
  font-size: 2rem;
  margin-bottom: 0.75rem;
}

.empty-state p {
  margin-bottom: 1rem;
}

/* Responsive */
@media (max-width: 768px) {
  .sidebar {
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content {
    margin-left: 0;
  }

  #sidebar-toggle {
    display: block;
  }

  #dashboard-content {
    padding: 1rem;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .api-key-value {
    flex-direction: column;
    align-items: stretch;
  }

  .api-key-value code {
    min-width: auto;
  }
}

/* Text utilities */
.text-muted { color: var(--text-muted); }
.text-secondary { color: var(--text-secondary); }
.text-primary { color: var(--text-primary); }
.text-success { color: var(--success-color); }
.text-danger { color: var(--danger-color); }
.text-warning { color: var(--warning-color); }

/* Spacing utilities */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }

/* Documentation link */
.docs-link {
  margin-top: 1rem;
}

.docs-link a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8125rem;
}

.docs-link a:hover {
  color: var(--text-primary);
  text-decoration: underline;
}
