/* Typing dots */
.typing .dot {
  animation: blink 1s infinite;
}
.typing .dot:nth-child(2) {
  animation-delay: 0.2s;
}
.typing .dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes blink {
  0%,
  80%,
  100% {
    opacity: 0.2;
  }
  40% {
    opacity: 1;
  }
}

/* Drag over styling */
.drag-over {
  outline: 2px dashed rgba(15, 23, 42, 0.4);
  outline-offset: 2px;
}

/* Code card */
.code-card {
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid rgb(226 232 240);
}
.code-card-header {
  background: rgb(248 250 252);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgb(226 232 240);
}
.code-card-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgb(71 85 105);
}

/* Popup animation */
.scale-fade-enter {
  transform: scale(0.95);
  opacity: 0;
}
.scale-fade-enter-active {
  transform: scale(1);
  opacity: 1;
  transition: all 0.12s ease;
}
.scale-fade-exit {
  transform: scale(1);
  opacity: 1;
}
.scale-fade-exit-active {
  transform: scale(0.95);
  opacity: 0;
  transition: all 0.12s ease;
}

/* No horizontal scroll */
html,
body,
#chatScroll,
#thread {
  overflow-x: hidden;
}

.prose,
.prose *,
.code-card pre,
.code-card code {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap !important;
  word-wrap: break-word !important;
  max-width: 100%;
}

.prose img {
  max-width: 100%;
  height: auto;
  border-radius: 0.75rem;
}

/* Center input when empty thread */
#inputBar.input-centered {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  border-top-width: 0;
  background: transparent;
  box-shadow: none;
}
#inputBar.input-centered #dropZone {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

/* Thread container max width */
#thread > div {
  max-width: 100%;
}
