.messagesContainer {
  display: flex;
  flex-grow: 1;
  flex-direction: column;
  gap: 0.25rem;
  padding: 1rem 0; /* remove the horizontal padding so that it doesn't affect the scrollbar, and add the padding to each child instead*/
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
}

.logEntry {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  opacity: 1;
  transform: translateY(0);
  transition: all 0.3s ease-out;
  animation: fadeIn 0.5s forwards;
  padding: 0 0.5rem;
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 0.7;
  }
  100% {
    opacity: 1;
  }
}

.logContent {
  flex: 1 !important;
  width: 100%;
  border-radius: 12px;
  position: relative;
  transition: all 0.2s ease;
}

.logContent:hover {
  border-color: var(--vscode-focusBorder, rgba(0, 122, 255, 0.4));
}

.logContent :global(p) {
  margin: 0.5rem 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.textShimmer {
  position: relative;
  display: inline-block;
  color: transparent !important;
  background-clip: text;
  -webkit-background-clip: text;

  /* gradient setup */
  background-size:
    250% 100%,
    auto;
  background-repeat: no-repeat, padding-box;

  --base-color: var(--vscode-editor-foreground);
  --base-gradient-color: color-mix(
    in srgb,
    var(--vscode-editor-background),
    var(--vscode-editor-foreground) 40%
  );

  background-image: linear-gradient(
    90deg,
    var(--base-color) 0%,
    var(--base-gradient-color) 30%,
    var(--base-color) 60%,
    var(--base-gradient-color) 90%,
    var(--base-color) 100%
  );

  animation: shimmer 4s linear infinite;
}

/* shimmer animation */
@keyframes shimmer {
  from {
    background-position: 200% center;
  }
  to {
    background-position: -200% center;
  }
}

.errorView {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.3rem;
  background: var(--vscode-editorWidget-background);
  margin: 0 auto;
  border-radius: 12px;
}
.errorView span {
  color: var(--vscode-descriptionForeground);
}

.queueTaskPatch {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  border: 0;
  border-radius: 6px;
  background: var(--vscode-editorWidget-background);
  color: var(--vscode-editorWidget-foreground);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border 0.15s ease;
}

.ghostActionButton {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 12px;
  font-weight: bold;
  border-radius: 6px;
  border: 1px solid var(--vscode-input-border);
  padding: 0.2rem 0.4rem;
  background: transparent;
  color: var(--vscode-foreground);
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    border-color 0.15s ease;
}

.ghostActionButton:hover {
  background: var(--vscode-list-hoverBackground);
  color: var(--vscode-foreground);
}
