/* Debug Context Box - Tenant Context Debugging Tool */

.debug-context-toggle {
  position: fixed;
  top: 120px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ff6b6b;
  border: 2px solid #fff;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 10000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.debug-context-toggle:hover {
  background: #ff5252;
  transform: scale(1.1);
}

.debug-context-box {
  position: fixed;
  top: 80px;
  right: 20px;
  width: 400px;
  max-width: calc(100vw - 40px);
  max-height: calc(100vh - 120px);
  background: #ffffff;
  border: 2px solid #ff6b6b;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  z-index: 10001;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.dark-theme .debug-context-box {
  background: #2a2a2a;
  border-color: #ff6b6b;
  color: #e0e0e0;
}

.debug-context-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: #ff6b6b;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.debug-context-header h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.debug-context-close {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: background 0.2s ease;
}

.debug-context-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.debug-context-content {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
  font-size: 13px;
  line-height: 1.6;
}

.debug-section {
  margin-bottom: 16px;
  padding: 12px;
  background: #f5f5f5;
  border-radius: 4px;
  border-left: 3px solid #ff6b6b;
}

body.dark-theme .debug-section {
  background: #1a1a1a;
  border-left-color: #ff6b6b;
}

.debug-section-title {
  font-weight: bold;
  color: #ff6b6b;
  margin-bottom: 8px;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.debug-field {
  margin: 6px 0;
  display: flex;
  gap: 8px;
}

.debug-label {
  font-weight: 600;
  color: #666;
  min-width: 100px;
}

body.dark-theme .debug-label {
  color: #999;
}

.debug-value {
  color: #333;
  word-break: break-word;
}

body.dark-theme .debug-value {
  color: #e0e0e0;
}

.debug-list {
  margin: 8px 0 0 0;
  padding-left: 16px;
}

.debug-list-item {
  margin: 4px 0;
  color: #555;
}

body.dark-theme .debug-list-item {
  color: #aaa;
}

.debug-empty {
  color: #999;
  font-style: italic;
}

.debug-meta {
  font-size: 11px;
  color: #999;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #e0e0e0;
}

body.dark-theme .debug-meta {
  border-top-color: #444;
}

.debug-error {
  background: #fff3f3;
  border-left-color: #ff4444;
  color: #cc0000;
}

body.dark-theme .debug-error {
  background: #2a1a1a;
  color: #ff6b6b;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .debug-context-toggle {
    top: 60px;
    right: 10px;
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .debug-context-box {
    top: 60px;
    right: 10px;
    width: calc(100vw - 20px);
    max-height: calc(100vh - 80px);
  }

  .debug-context-content {
    font-size: 12px;
  }

  .debug-label {
    min-width: 80px;
  }
}

/* Context Indicator Icons */
.context-indicator {
  display: inline-block;
  font-size: 18px;
  cursor: pointer;
  margin-left: 6px;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.2s ease;
  position: relative;
}

/* Dimmed state - 50% opacity when available but not actively used */
.context-indicator.dimmed {
  opacity: 0.5;
}

/* Active state - full opacity when actively being used */
.context-indicator.active {
  opacity: 1;
}

.context-indicator:hover {
  transform: scale(1.1);
}

/* Continuous Engagement Brain Icon Styles */
.brain-icon {
  display: none;
  font-size: 18px;
  cursor: pointer;
  margin-right: 8px;
  opacity: 0.7;
  transition: opacity 0.3s ease, transform 0.2s ease;
}

.brain-icon.dimmed {
  opacity: 0.5;
}

.brain-icon.active {
  opacity: 1;
}

.brain-icon.active:hover {
  transform: scale(1.1);
}

/* Pulsing animation for Full mode */
.brain-icon.always-on {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.6;
    transform: scale(1.05);
  }
}

/* Ensure brain icon is visible on mobile */
@media (max-width: 768px) {
  .brain-icon {
    font-size: 16px;
    margin-right: 6px;
  }
}

/* ================================
   CONTEXT INDICATOR TOOLTIPS
   ================================ */

.context-indicator-tooltip {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, 0.95);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 12px 16px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 10000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  min-width: 200px;
  max-width: 320px;
  white-space: normal;
}

.context-indicator:hover .context-indicator-tooltip,
.brain-icon:hover .context-indicator-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-4px);
}

/* Tooltip arrow */
.context-indicator-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid rgba(20, 20, 20, 0.95);
}

/* Tooltip header */
.tooltip-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.tooltip-icon {
  font-size: 18px;
}

.tooltip-title {
  font-weight: 600;
  font-size: 14px;
}

/* Status badge */
.tooltip-status {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 4px;
}

.tooltip-status.active {
  background: rgba(34, 197, 94, 0.2);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.4);
}

.tooltip-status.dimmed {
  background: rgba(148, 163, 184, 0.2);
  color: #94a3b8;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.tooltip-status.inactive {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.4);
}

/* Tooltip stats */
.tooltip-stats {
  margin: 8px 0;
  font-size: 12px;
  color: #d1d5db;
}

.tooltip-stat {
  display: flex;
  justify-content: space-between;
  margin: 4px 0;
  gap: 12px;
}

.tooltip-stat-label {
  color: #9ca3af;
}

.tooltip-stat-value {
  font-weight: 600;
  color: #fff;
}

/* Tooltip description */
.tooltip-description {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
  color: #d1d5db;
  line-height: 1.4;
}

/* Dark theme adjustments */
body.dark-theme .context-indicator-tooltip {
  background: rgba(30, 30, 30, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-theme .context-indicator-tooltip::after {
  border-top-color: rgba(30, 30, 30, 0.98);
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .context-indicator-tooltip {
    position: fixed;
    bottom: auto;
    top: 60px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: calc(100vw - 40px);
    font-size: 12px;
  }

  .context-indicator:hover .context-indicator-tooltip,
  .brain-icon:hover .context-indicator-tooltip {
    transform: translateX(-50%);
  }

  .context-indicator-tooltip::after {
    display: none;
  }
}

/* ================================
   CONTEXT DETAIL PANELS (Phase 4.2)
   ================================ */

.context-detail-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10002;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.context-detail-panel.active {
  opacity: 1;
  visibility: visible;
}

.detail-panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.detail-panel-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  max-width: 600px;
  width: calc(100% - 40px);
  max-height: 80vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.dark-theme .detail-panel-content {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Panel Header */
.detail-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid #e5e7eb;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

body.dark-theme .detail-panel-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.detail-panel-title {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-panel-icon {
  font-size: 28px;
}

.detail-panel-title h3 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
}

body.dark-theme .detail-panel-title h3 {
  color: #f9fafb;
}

.detail-panel-close {
  background: transparent;
  border: none;
  color: #6b7280;
  font-size: 32px;
  cursor: pointer;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease;
  line-height: 1;
}

.detail-panel-close:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #111827;
}

body.dark-theme .detail-panel-close {
  color: #9ca3af;
}

body.dark-theme .detail-panel-close:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #f9fafb;
}

/* Panel Body */
.detail-panel-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

.detail-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 16px;
}

.detail-status-badge .status-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.detail-status-badge.active {
  background: rgba(34, 197, 94, 0.15);
  color: #16a34a;
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.detail-status-badge.active .status-indicator {
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.5);
}

.detail-status-badge.dimmed {
  background: rgba(148, 163, 184, 0.15);
  color: #64748b;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.detail-status-badge.dimmed .status-indicator {
  background: #94a3b8;
}

.detail-status-badge.inactive {
  background: rgba(239, 68, 68, 0.15);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.detail-status-badge.inactive .status-indicator {
  background: #ef4444;
}

.detail-description {
  font-size: 15px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 24px 0;
}

body.dark-theme .detail-description {
  color: #d1d5db;
}

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

.detail-stat {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  border: 1px solid #e5e7eb;
}

body.dark-theme .detail-stat {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
}

.detail-stat-icon {
  font-size: 24px;
  line-height: 1;
}

.detail-stat-content {
  flex: 1;
}

.detail-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

body.dark-theme .detail-stat-label {
  color: #9ca3af;
}

.detail-stat-value {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

body.dark-theme .detail-stat-value {
  color: #f9fafb;
}

.detail-empty {
  text-align: center;
  color: #9ca3af;
  font-style: italic;
  padding: 32px;
}

/* Controls Section */
.detail-controls {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 2px solid #e5e7eb;
}

body.dark-theme .detail-controls {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.detail-controls h4 {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #1f2937;
}

body.dark-theme .detail-controls h4 {
  color: #f9fafb;
}

.detail-control {
  margin-bottom: 16px;
}

/* Toggle Switch */
.control-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  user-select: none;
}

.control-toggle input[type="checkbox"] {
  display: none;
}

.toggle-slider {
  position: relative;
  width: 48px;
  height: 28px;
  background: #cbd5e1;
  border-radius: 14px;
  transition: background 0.3s ease;
}

.toggle-slider::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease;
}

.control-toggle input[type="checkbox"]:checked + .toggle-slider {
  background: #22c55e;
}

.control-toggle input[type="checkbox"]:checked + .toggle-slider::before {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 15px;
  font-weight: 500;
  color: #1f2937;
}

body.dark-theme .toggle-label {
  color: #f9fafb;
}

.control-hint {
  font-size: 13px;
  color: #6b7280;
  margin: 8px 0 0 60px;
  line-height: 1.5;
}

body.dark-theme .control-hint {
  color: #9ca3af;
}

/* Sources List */
.detail-sources {
  margin-top: 16px;
}

.detail-sources h4 {
  font-size: 14px;
  font-weight: 600;
  color: #1f2937;
  margin: 0 0 12px 0;
}

body.dark-theme .detail-sources h4 {
  color: #f9fafb;
}

.detail-sources ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.detail-sources li {
  padding: 8px 12px;
  background: #f3f4f6;
  border-radius: 6px;
  margin-bottom: 8px;
  font-size: 14px;
  color: #374151;
  font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
}

body.dark-theme .detail-sources li {
  background: #1a1a1a;
  color: #d1d5db;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .detail-panel-content {
    width: calc(100% - 20px);
    max-height: 90vh;
  }

  .detail-panel-header {
    padding: 16px;
  }

  .detail-panel-title h3 {
    font-size: 18px;
  }

  .detail-panel-icon {
    font-size: 24px;
  }

  .detail-panel-body {
    padding: 16px;
  }

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

  .control-hint {
    margin-left: 0;
  }
}

/* ================================
   ONBOARDING TUTORIAL (Phase 4.3)
   ================================ */
/*
.context-onboarding {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10003;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.context-onboarding.active {
  opacity: 1;
  visibility: visible;
}

.onboarding-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(6px);
}

.onboarding-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.4);
  max-width: 600px;
  width: calc(100% - 40px);
  max-height: 85vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

body.dark-theme .onboarding-content {
  background: #2a2a2a;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

/* Onboarding Header 
.onboarding-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 28px;
  border-bottom: 2px solid #e5e7eb;
  background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

body.dark-theme .onboarding-header {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 100%);
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.onboarding-header h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #1f2937;
}

body.dark-theme .onboarding-header h2 {
  color: #f9fafb;
}

.onboarding-skip {
  background: transparent;
  border: 1px solid #d1d5db;
  color: #6b7280;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.onboarding-skip:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
  color: #374151;
}

body.dark-theme .onboarding-skip {
  border-color: rgba(255, 255, 255, 0.2);
  color: #9ca3af;
}

body.dark-theme .onboarding-skip:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.3);
  color: #d1d5db;
}
  */

/* Onboarding Body 
.onboarding-body {
  padding: 32px 28px;
  overflow-y: auto;
  flex: 1;
}

.onboarding-step {
  display: none;
}

.onboarding-step.active {
  display: block;
  animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.onboarding-icon {
  font-size: 64px;
  text-align: center;
  margin-bottom: 20px;
}

.onboarding-step h3 {
  margin: 0 0 16px 0;
  font-size: 22px;
  font-weight: 600;
  color: #1f2937;
  text-align: center;
}

body.dark-theme .onboarding-step h3 {
  color: #f9fafb;
}

.onboarding-step p {
  font-size: 16px;
  line-height: 1.6;
  color: #4b5563;
  margin: 0 0 16px 0;
  text-align: center;
}

body.dark-theme .onboarding-step p {
  color: #d1d5db;
}
  */

/* Indicator States Demo */
.indicator-states-demo {
  margin: 24px 0;
}

.state-example {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
}

body.dark-theme .state-example {
  background: #1a1a1a;
  border-color: rgba(255, 255, 255, 0.1);
}

.demo-indicator {
  font-size: 32px;
  min-width: 40px;
  text-align: center;
}

.state-description {
  flex: 1;
}

.state-description strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 4px;
}

body.dark-theme .state-description strong {
  color: #f9fafb;
}

.state-description p {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  text-align: left;
}

body.dark-theme .state-description p {
  color: #9ca3af;
}

/* Highlight Box */
.onboarding-highlight-box {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  border: 2px solid #fbbf24;
  border-radius: 8px;
  padding: 16px;
  margin-top: 20px;
}

body.dark-theme .onboarding-highlight-box {
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(253, 230, 138, 0.1) 100%);
  border-color: rgba(251, 191, 36, 0.4);
}

.onboarding-highlight-box p {
  color: #92400e !important;
}

body.dark-theme .onboarding-highlight-box p {
  color: #fde68a !important;
}

/* Onboarding Actions */
.onboarding-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 32px;
}

.onboarding-actions button {
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
}

.btn-back {
  background: #f3f4f6;
  color: #374151;
}

.btn-back:hover {
  background: #e5e7eb;
  color: #1f2937;
}

body.dark-theme .btn-back {
  background: rgba(255, 255, 255, 0.1);
  color: #d1d5db;
}

body.dark-theme .btn-back:hover {
  background: rgba(255, 255, 255, 0.15);
  color: #f9fafb;
}

.btn-next,
.btn-finish {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.btn-next:hover,
.btn-finish:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 6px 16px rgba(59, 130, 246, 0.4);
  transform: translateY(-1px);
}

/* Onboarding Footer */
.onboarding-footer {
  padding: 20px 28px;
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
}

body.dark-theme .onboarding-footer {
  background: #1a1a1a;
  border-top-color: rgba(255, 255, 255, 0.1);
}

.onboarding-progress {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.progress-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: all 0.3s ease;
}

.progress-dot:hover {
  background: #9ca3af;
  transform: scale(1.2);
}

.progress-dot.active {
  background: #3b82f6;
  width: 32px;
  border-radius: 6px;
}

body.dark-theme .progress-dot {
  background: rgba(255, 255, 255, 0.2);
}

body.dark-theme .progress-dot:hover {
  background: rgba(255, 255, 255, 0.3);
}

body.dark-theme .progress-dot.active {
  background: #3b82f6;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .onboarding-content {
    width: calc(100% - 20px);
    max-height: 90vh;
  }

  .onboarding-header {
    padding: 16px 20px;
  }

  .onboarding-header h2 {
    font-size: 20px;
  }

  .onboarding-body {
    padding: 24px 20px;
  }

  .onboarding-icon {
    font-size: 48px;
  }

  .onboarding-step h3 {
    font-size: 18px;
  }

  .onboarding-step p {
    font-size: 15px;
  }

  .state-example {
    flex-direction: column;
    text-align: center;
    gap: 12px;
  }

  .state-description p {
    text-align: center;
  }

  .onboarding-actions {
    flex-direction: column;
  }

  .onboarding-actions button {
    width: 100%;
  }
}

/* ========================================
   COGNITIVE BREAKDOWN STYLES
   ======================================== */

.cognitive-breakdown {
  margin: 12px 0;
}

.cognitive-section {
  margin-bottom: 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
}

.cognitive-summary {
  padding: 12px 14px;
  background: var(--background-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
  user-select: none;
  list-style: none;
}

.cognitive-summary::-webkit-details-marker {
  display: none;
}

.cognitive-summary:hover {
  background: var(--background-hover);
}

.cognitive-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.cognitive-label {
  flex: 1;
}

.cognitive-count {
  background: var(--primary-color);
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
}

.cognitive-content {
  padding: 12px 14px;
  background: var(--background);
  border-top: 1px solid var(--border);
}

.cognitive-item {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-light);
}

.cognitive-item:last-child {
  border-bottom: none;
}

.cognitive-item-name {
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}

.cognitive-item-detail {
  font-size: 12px;
  color: var(--text-secondary);
  margin-bottom: 2px;
}

.cognitive-item-value {
  font-size: 12px;
  color: var(--text-primary);
}

.cognitive-item-badge {
  display: inline-block;
  background: #40b9c5;
  color: #fff;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  margin-top: 4px;
}

.cognitive-item-time {
  font-size: 11px;
  color: #888;
  margin-top: 4px;
}

.cognitive-item-preview {
  font-size: 11px;
  color: var(--text-secondary);
  margin-top: 6px;
  padding: 6px;
  background: var(--background-secondary);
  border-radius: 4px;
  max-height: 60px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Dark mode adjustments */
body.dark-theme .cognitive-summary {
  background: rgba(255, 255, 255, 0.05);
}

body.dark-theme .cognitive-summary:hover {
  background: rgba(255, 255, 255, 0.08);
}

body.dark-theme .cognitive-content {
  background: rgba(0, 0, 0, 0.2);
}

body.dark-theme .cognitive-item-preview {
  background: rgba(255, 255, 255, 0.03);
}
