.container {
  margin-bottom: 1rem;
  border-radius: 0;
  border: none;
  background: transparent;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  transition: all 0.2s ease;
}

.container:hover {
  box-shadow: none;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 0 0.6rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: background-color 0.15s ease;
}

.header:hover {
  background-color: transparent;
}

.headerLeft {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.headerRight {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 12px;
}

.icon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
  transition: transform 0.2s ease;
}

.iconExpanded {
  transform: rotate(0deg);
}

.icon:not(.iconExpanded) {
  transform: rotate(-90deg);
}

.thinkingIcon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.5);
}

.title {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: -0.01em;
}

.titleStreaming {
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.4;
  }
}

.time {
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.42);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  min-width: 40px;
  text-align: right;
}

.expandIcon {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.4);
  opacity: 0;
  transition: opacity 0.15s ease;
}

.header:hover .expandIcon {
  opacity: 1;
}

.progressBar {
  height: 2px;
  background-color: rgba(255, 255, 255, 0.04);
  overflow: hidden;
  position: relative;
  border-radius: 999px;
  margin-bottom: 0.6rem;
}

.progressFill {
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(96, 165, 250, 0.5) 50%,
    transparent 100%
  );
  animation: shimmer 2s infinite;
  width: 100%;
}

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

.content {
  padding: 0;
  border-top: none;
  background-color: transparent;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: visible;
  animation: expandContent 0.2s ease;
}

@keyframes expandContent {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Override markdown styles for dark mode */
.content :global(.markdown) {
  color: rgba(255, 255, 255, 0.58) !important;
  font-size: 14px;
}

.content :global(.markdown) h1,
.content :global(.markdown) h2,
.content :global(.markdown) h3,
.content :global(.markdown) h4,
.content :global(.markdown) h5,
.content :global(.markdown) h6 {
  color: rgba(255, 255, 255, 0.72) !important;
}

.content :global(.markdown) p,
.content :global(.markdown) li,
.content :global(.markdown) span,
.content :global(.markdown) div {
  color: rgba(255, 255, 255, 0.58) !important;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.content :global(.markdown) strong {
  color: rgba(255, 255, 255, 0.72) !important;
}

.content :global(.markdown) code {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: rgba(255, 255, 255, 0.6) !important;
}
