.messages {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background-color: var(--color-background-container-content);
  border: 1px solid var(--color-border-container-default);
  border-radius: 4px;
  margin-bottom: 120px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.input-container {
  position: fixed;
  bottom: 20px;
  left: 420px;
  right: 20px;
  background-color: var(--color-background-container-content);
  border: 1px solid var(--color-border-container-default);
  border-radius: 4px;
  padding: 20px;
  z-index: 998;
}

.message {
  padding: 10px;
  margin: 10px 0;
  border-radius: 4px;
  max-width: 80%;
  white-space: pre-wrap;
}

.message-content {
  white-space: pre-line;
  line-height: 1.4;
  text-align: left;
}

/* Adjust spacing for chat bubbles */
[data-testid="chat-bubble"] {
  margin-bottom: 8px;
  max-width: 80%;
}

/* Style for copy feedback */
[data-testid="status-indicator"] {
  margin-left: 8px;
}

textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--color-border-input-default);
  border-radius: 4px;
  background-color: var(--color-background-input-default);
  color: var(--color-text-input-default);
  resize: none;
  height: 100px;
}

textarea:focus {
  outline: none;
  border-color: var(--color-border-input-focus);
  box-shadow: 0 0 0 2px var(--color-border-focus);
}

button {
  background-color: var(--color-background-button-primary-default);
  color: var(--color-text-button-primary-default);
  border: none;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
}

button:hover {
  background-color: var(--color-background-button-primary-hover);
}

button:disabled {
  background-color: var(--color-background-button-disabled);
  cursor: not-allowed;
}

.video-timestamp {
  color: var(--color-text-accent);
  cursor: pointer;
  text-decoration: underline;
  margin: 0 4px;
}

.video-timestamp:hover {
  color: var(--color-text-accent-hover);
}

.video-popover {
  background-color: var(--color-background-dropdown-item-default);
  border: 1px solid var(--color-border-dropdown-default);
  border-radius: 4px;
  padding: 10px;
  position: fixed;
  z-index: 1000;
}

.main-content {
  position: absolute;
  left: 400px;
  right: 0;
  top: 0;
  bottom: 0;
  background-color: var(--color-background-layout-main);
  transition: left 0.3s ease;
}

.chat-container {
  display: flex;
  flex-direction: column;
  height: 85%;
  margin-top: 6vh;
  padding: 20px;
}

[data-testid="prompt-input"] {
  width: 100%;
}

.sidebar.collapsed + .sidebar-toggle + .main-content {
  left: 0;
}

.sidebar.collapsed + .sidebar-toggle + .main-content .input-container {
  left: 20px;
}

pre {
  background-color: var(--color-background-code-default);
  border: 1px solid var(--color-border-code-default);
  border-radius: 4px;
  padding: 15px;
  overflow-x: auto;
  margin: 10px 0;
}

code {
  font-family: 'Courier New', Courier, monospace;
  color: var(--color-text-code-default);
}

.loading {
  opacity: 0.7;
  pointer-events: none;
}

.error {
  color: var(--color-text-status-error);
  background-color: var(--color-background-status-error);
  padding: 10px;
  border-radius: 4px;
  margin: 10px 0;
}

/* Additional styles for chat bubbles */
.additional-content {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--color-border-divider-default);
}

.know-more-section {
  margin-top: 8px;
}

/* Ensure proper spacing between messages */
.messages > div {
  margin-bottom: 16px;
}

/* Style adjustments for code blocks within chat bubbles */
[data-testid="chat-bubble"] pre {
  background-color: var(--color-background-code-default);
  margin: 8px 0;
  padding: 12px;
}

[data-testid="chat-bubble"] [data-testid="button-group"] {
  margin-left: 8px;
}

.custom-message-content {
  white-space: pre-line;
  text-align: left;
  line-height: 1.4;
}

/* Speech processing */
.input-container button {
  min-width: 40px;
}

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

.recording {
  animation: pulse 1.5s infinite;
  color: #cc0000;
}

.input-wrapper {
  display: flex;
  align-items: center;
}

.prompt-input-container {
  flex: 1;
}

.microphone-button-container {
  margin-left: 8px;
  flex-shrink: 0;
}

