/* Minimalistic Agent Activity Indicator */
.agent-activity-container {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background: rgba(20, 20, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 20px;
  min-width: 320px;
  max-width: 400px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s ease;
}

.agent-activity-container.active {
  opacity: 1;
  transform: translateY(0);
}

.agent-activity-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.activity-indicator {
  position: relative;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.activity-indicator .atemverse-logo {
  width: 20px;
  height: 20px;
  opacity: 0.8;
  filter: brightness(0) invert(1);
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { opacity: 0.8; }
  50% { opacity: 1; }
}

.pulse-dot {
  position: absolute;
  width: 30px;
  height: 30px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  animation: pulse 2s ease-in-out infinite;
  pointer-events: none;
}

.pulse-dot::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  animation: pulse-ring 2s ease-in-out infinite;
}

.activity-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.5px;
}

.agent-activity-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.activity-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  opacity: 0.5;
  transition: opacity 0.3s ease;
}

.activity-step.active {
  opacity: 1;
}

.activity-step.completed {
  opacity: 0.7;
}

.step-indicator {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  margin-top: 4px;
  transition: all 0.3s ease;
}

.activity-step.active .step-indicator {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.5);
}

.activity-step.completed .step-indicator {
  background: #10b981;
}

.step-content {
  flex: 1;
}

.step-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 2px;
}

.step-description {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  line-height: 1.4;
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(1);
    opacity: 1;
  }
  100% {
    transform: scale(2);
    opacity: 0;
  }
}

/* Inline Agent Activity (in message area) - Removed duplicate styling */

.inline-agent-activity .activity-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.inline-agent-activity .activity-status {
  color: rgba(255, 255, 255, 0.9);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.5px;
}

.activity-steps-inline {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-agent-activity .activity-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  padding: 8px 0;
}

.inline-agent-activity .step-indicator {
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.inline-agent-activity .activity-step.active .step-indicator {
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

.inline-agent-activity .activity-step.completed .step-indicator {
  background: #10b981;
}

.inline-agent-activity .step-content {
  flex: 1;
}

.inline-agent-activity .step-title {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

.inline-agent-activity .step-description {
  color: rgba(255, 255, 255, 0.5);
  font-size: 12px;
  margin-top: 2px;
}

/* Progress Indicator for Deep Analysis */
.inline-agent-activity .progress-indicator {
  margin-top: 6px;
  width: 100%;
  height: 4px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 2px;
  overflow: hidden;
}

/* Thinking Process Visualization */
.thinking-stage {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  opacity: 0;
  transform: translateX(-10px);
  animation: slideIn 0.3s ease forwards;
}

.thinking-stage.active {
  opacity: 1;
}

.thinking-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  position: relative;
}

.thinking-icon.analyzing {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.thinking-icon.evaluating {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.thinking-icon.deciding {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.thinking-icon.planning {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
}

.thinking-icon::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse 1.5s ease-in-out infinite;
}

.thinking-icon.analyzing::before {
  color: rgba(255, 255, 255, 0.8);
}

.thinking-icon.evaluating::before {
  color: rgba(255, 255, 255, 0.8);
}

.thinking-icon.deciding::before {
  color: rgba(255, 255, 255, 0.8);
}

.thinking-icon.planning::before {
  color: rgba(255, 255, 255, 0.8);
}

.thinking-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.thinking-title {
  color: rgba(255, 255, 255, 0.9);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.thinking-badge {
  font-size: 10px;
  padding: 2px 8px;
  background: rgba(99, 102, 241, 0.2);
  border-radius: 10px;
  color: #a5b4fc;
  font-weight: 500;
}

.thinking-details {
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  line-height: 1.5;
}

.thinking-metrics {
  display: flex;
  gap: 16px;
  margin-top: 8px;
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.metric-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.metric-value {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 600;
}

/* Neural Network Animation */
.neural-network {
  position: relative;
  width: 100%;
  height: 60px;
  margin: 12px 0;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
  overflow: hidden;
}

.neural-node {
  position: absolute;
  width: 6px;
  height: 6px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  opacity: 0.6;
  animation: nodeFloat 3s ease-in-out infinite;
}

.neural-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  opacity: 0.3;
  animation: connectionFlow 2s linear infinite;
}

/* Decision Tree Visualization */
.decision-tree {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
  padding-left: 20px;
  position: relative;
}

.decision-tree::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.decision-branch {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}

.decision-branch::before {
  content: '';
  position: absolute;
  left: -12px;
  width: 12px;
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
}

.branch-indicator {
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
}

.branch-indicator.selected {
  background: #10b981;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.5);
}

.branch-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
}

.branch-label.selected {
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}

/* Confidence Meter */
.confidence-meter {
  margin-top: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 6px;
}

.confidence-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.confidence-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.confidence-value {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 600;
}

.confidence-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.confidence-bar {
  height: 100%;
  background: linear-gradient(90deg, #ef4444, #f59e0b, #10b981);
  transition: width 0.6s ease;
  position: relative;
}

.confidence-bar::after {
  content: '';
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 6px rgba(255, 255, 255, 0.5);
}

/* Animations */
@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(-10px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes nodeFloat {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes connectionFlow {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.inline-agent-activity .progress-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0.6) 100%);
  border-radius: 2px;
  transition: width 0.5s ease;
  position: relative;
  overflow: hidden;
}

.inline-agent-activity .progress-bar::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  animation: shimmer 1.5s infinite;
}

.inline-agent-activity .activity-step.active .progress-indicator {
  display: block;
}

.inline-agent-activity .activity-step:not(.active) .progress-indicator {
  display: none;
}

/* Enhanced AI Thinking Widget - Reimagined */
.thinking-process {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
  position: relative;
}

.thinking-stage {
  background: rgba(255, 255, 255, 0.02);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 20px;
  opacity: 0;
  transform: translateX(-20px);
  animation: stageSlideIn 0.6s ease-out forwards;
}

.thinking-stage.active {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.12);
  transform: translateX(0) scale(1.02);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

@keyframes stageSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Stagger animation for multiple stages */
.thinking-stage:nth-child(1) { animation-delay: 0.1s; }
.thinking-stage:nth-child(2) { animation-delay: 0.2s; }
.thinking-stage:nth-child(3) { animation-delay: 0.3s; }
.thinking-stage:nth-child(4) { animation-delay: 0.4s; }

/* Inactive stage styling */
.thinking-stage:not(.active) {
  opacity: 0.6;
}

.thinking-stage:not(.active) .thinking-icon {
  opacity: 0.5;
}

.thinking-stage:not(.active) .thinking-title,
.thinking-stage:not(.active) .thinking-details {
  opacity: 0.7;
}

.thinking-stage::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transform: translateX(-100%);
  transition: transform 0s;
}

.thinking-stage::after {
  content: '';
  position: absolute;
  top: 0;
  left: -50%;
  width: 50%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.02), transparent);
  transform: skewX(-25deg);
  transition: left 0.6s ease;
}

.thinking-stage.active::before {
  animation: thinking-scan 2.5s linear infinite;
}

.thinking-stage.active::after {
  left: 100%;
  transition: left 0.8s ease;
}

@keyframes thinking-scan {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

.thinking-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  position: relative;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05),
              0 4px 12px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  color: rgba(255, 255, 255, 0.7);
}

.thinking-icon svg {
  width: 20px;
  height: 20px;
  color: inherit;
}

.thinking-icon.analyzing {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

.thinking-icon.evaluating {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

.thinking-icon.planning {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

.thinking-icon.deciding {
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.8);
}

.thinking-icon::before {
  content: '';
  position: absolute;
  width: 60%;
  height: 60%;
  background: currentColor;
  opacity: 0.8;
}

.thinking-stage.active .thinking-icon {
  animation: iconPulse 2s ease-in-out infinite;
}

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

/* Remove old icon styles since we're using SVGs now */
.thinking-icon::before,
.thinking-icon::after {
  display: none;
}

@keyframes analyzing-rotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.thinking-icon.analyzing::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 2px;
  background: currentColor;
  bottom: 8px;
  right: 8px;
  transform: rotate(-45deg);
}

.thinking-icon.evaluating::before {
  /* Scale/balance shape */
  width: 20px;
  height: 2px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.thinking-icon.evaluating::after {
  content: '';
  position: absolute;
  width: 2px;
  height: 10px;
  background: currentColor;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
}

.thinking-icon.planning::before {
  /* List/document shape */
  width: 16px;
  height: 20px;
  border: 2px solid currentColor;
  border-radius: 2px;
  background: transparent;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.thinking-icon.planning::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 1px;
  background: currentColor;
  top: 45%;
  left: 50%;
  transform: translateX(-50%);
  box-shadow: 0 4px 0 currentColor, 0 8px 0 currentColor;
}

.thinking-icon.deciding::before {
  /* Lightbulb shape */
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: transparent;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
}

.thinking-icon.deciding::after {
  content: '';
  position: absolute;
  width: 8px;
  height: 4px;
  border: 1px solid currentColor;
  border-top: none;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
}

.thinking-title {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.3px;
  line-height: 1.2;
  margin-bottom: 4px;
}

.thinking-badge {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 500;
  animation: pulse 2s ease-in-out infinite;
}

.thinking-details {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.5;
  font-weight: 300;
}

.thinking-metrics {
  display: flex;
  gap: 16px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.metric-item {
  flex: 1;
  text-align: center;
}

.metric-label {
  font-size: 10px;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.metric-value {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

/* Active thinking stage glow effect */
.thinking-stage.active::after {
  animation: glowPulse 2s ease-in-out infinite;
}

@keyframes glowPulse {
  0%, 100% {
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.15);
  }
}

/* Neural Network Background - Enhanced */
.neural-network {
  position: relative;
  width: 100%;
  height: 80px;
  margin: 16px 0;
  background: rgba(255, 255, 255, 0.01);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0.6;
}

.neural-node {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  animation: neural-pulse 4s ease-in-out infinite;
  box-shadow: 0 0 4px rgba(255, 255, 255, 0.3);
}

.neural-connection {
  position: absolute;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  animation: neural-flow 3s linear infinite;
  opacity: 0.8;
}

@keyframes neural-pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.5); }
}

@keyframes neural-flow {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Decision Tree Visualization */
.decision-tree {
  display: flex;
  gap: 8px;
  margin: 12px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.decision-branch {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.branch-indicator {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.branch-indicator.selected {
  background: #10b981;
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.5);
}

.branch-label {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  text-align: center;
  transition: all 0.3s ease;
}

.branch-label.selected {
  color: #10b981;
  font-weight: 600;
}

/* Confidence Meter */
.confidence-meter {
  margin: 16px 0;
  padding: 12px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 8px;
}

.confidence-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
}

.confidence-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
}

.confidence-value {
  font-size: 14px;
  font-weight: 600;
  color: #10b981;
}

.confidence-bar-container {
  width: 100%;
  height: 6px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 3px;
  overflow: hidden;
}

.confidence-bar {
  height: 100%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.6) 100%);
  border-radius: 3px;
  transition: width 0.8s ease;
  position: relative;
}

.confidence-bar::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4));
  animation: confidence-shimmer 2s ease-in-out infinite;
}

@keyframes confidence-shimmer {
  0% { transform: translateX(-30px); }
  100% { transform: translateX(0); }
}

/* Enhanced inline agent activity container - Tool Card Style */
.inline-agent-activity {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 32px;
  margin-top: 12px;
  min-width: 600px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.inline-agent-activity::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.03), transparent);
  transform: translateX(-100%);
  transition: transform 0.6s;
}

.inline-agent-activity.active::before {
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(200%); }
}

@keyframes ai-glow {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.5; }
  50% { transform: translate(10%, 10%) scale(1.1); opacity: 0.8; }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .agent-activity-container {
    bottom: 20px;
    right: 20px;
    left: 20px;
    min-width: auto;
  }
}
/* Narrative Loading Specific Styles */
.activity-step.narrative-source {
  border-left: 3px solid rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.02);
  padding: 12px 16px;
  margin-bottom: 8px;
  animation: narrativeSlideIn 0.3s ease-out;
}

@keyframes narrativeSlideIn {
  from {
    opacity: 0;
    transform: translateX(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.activity-step.narrative-source .step-indicator {
  font-size: 24px;
  margin-right: 12px;
}

.activity-step.narrative-source .step-content {
  flex: 1;
}

.activity-step.narrative-source .step-title {
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
  margin-bottom: 4px;
}

.activity-step.narrative-source .step-description {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-step.narrative-source .source-count {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  padding: 2px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
}
