/* Cipher Terminal — Dashboard-specific styles */

/* Chat scrollbars */
#chat-messages::-webkit-scrollbar {
  width: 6px;
}

#chat-messages::-webkit-scrollbar-track {
  background: transparent;
}

#chat-messages::-webkit-scrollbar-thumb {
  background: #262626;
  border-radius: 3px;
}

#chat-messages::-webkit-scrollbar-thumb:hover {
  background: #404040;
}

/* Signal cards */
.signal-card {
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.signal-card:hover {
  transform: translateY(-2px);
}

/* Confidence bar */
.confidence-track {
  background: rgba(255, 255, 255, 0.06);
  border-radius: 9999px;
  overflow: hidden;
  height: 4px;
}

.confidence-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Chat bubbles */
.chat-bubble {
  max-width: 90%;
  padding: 0.625rem 0.875rem;
  border-radius: 0.875rem;
  font-size: 0.8125rem;
  line-height: 1.5;
  animation: fadeInUp 0.25s ease forwards;
}

.chat-bubble.user {
  background: #1A1A1A;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
  border-bottom-right-radius: 0.25rem;
  margin-left: auto;
}

.chat-bubble.agent {
  background: rgba(250, 204, 21, 0.08);
  border: 1px solid rgba(250, 204, 21, 0.15);
  color: #fef9c3;
  border-bottom-left-radius: 0.25rem;
}

/* Typing indicator for agent replies */
.typing-indicator {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0.625rem 0.875rem;
}

.typing-indicator span {
  width: 5px;
  height: 5px;
  background: rgba(250, 204, 21, 0.6);
  border-radius: 50%;
  animation: typingBounce 1s infinite ease-in-out;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.15s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.3s;
}

@keyframes typingBounce {
  0%, 80%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  40% {
    transform: translateY(-4px);
    opacity: 1;
  }
}

/* Small fade keyframe for dynamic content */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
