.container {
  display: flex;
  flex-direction: column;
  height: 80vh;
  max-width: 900px;
  margin: 0 auto;
  background-color: #ffffff;
  border-radius: 16px;
}

html[data-theme='dark'] .container {
  background-color: #18181b;
}

.header {
  padding: 24px;
  border-bottom: 1px solid #f0f0f0;
}

html[data-theme='dark'] .header {
  border-bottom-color: #27272a;
}

.header h3 {
  margin: 0;
  font-size: 24px;
  font-weight: bold;
}

html[data-theme='dark'] .header h3 {
  color: #ffffff;
}

.messages {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.messageRow {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.justifyStart {
  justify-content: flex-start;
}

.justifyEnd {
  justify-content: flex-end;
}

.message {
  padding: 12px 16px;
  border-radius: 12px;
  max-width: 70%;
  font-size: 16px;
  line-height: 1.5;
}

.aiMessage {
  background-color: #f1f1f1;
  color: black;
}

html[data-theme='dark'] .aiMessage {
  background-color: #27272a;
  color: white;
}

.userMessage {
  background-color: #18181b;
  color: white;
}

html[data-theme='dark'] .userMessage {
  background-color: #3f3f46;
}

.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #f1f1f1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #18181b;
}

html[data-theme='dark'] .avatar {
  background-color: #27272a;
  color: #ffffff;
}

.inputContainer {
  padding: 24px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  gap: 12px;
}

html[data-theme='dark'] .inputContainer {
  border-top-color: #27272a;
}

.inputWrapper {
  position: relative;
  flex: 1;
}

.input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  font-size: 16px;
  outline: none;
  background-color: #ffffff;
}

html[data-theme='dark'] .input {
  background-color: #27272a;
  border-color: #3f3f46;
  color: #ffffff;
}

.input::placeholder {
  color: #a1a1aa;
}

html[data-theme='dark'] .input::placeholder {
  color: #71717a;
}

.commandPalette {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 0;
  right: 0;
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  z-index: 10;
}

html[data-theme='dark'] .commandPalette {
  background-color: #27272a;
  border-color: #3f3f46;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.commandItem {
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  transition: background-color 0.2s;
}

.commandItem:hover {
  background-color: #f9f9f9;
}

html[data-theme='dark'] .commandItem:hover {
  background-color: #3f3f46;
}

.selectedCommand {
  background-color: #f9f9f9;
}

html[data-theme='dark'] .selectedCommand {
  background-color: #3f3f46;
}

.commandLabel {
  font-weight: 500;
  color: #18181b;
}

html[data-theme='dark'] .commandLabel {
  color: #ffffff;
}

.commandDescription {
  font-size: 14px;
  color: #71717a;
}

html[data-theme='dark'] .commandDescription {
  color: #a1a1aa;
}

.sendButton {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background-color: #18181b;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  transition: background-color 0.2s;
}

html[data-theme='dark'] .sendButton {
  background-color: #3f3f46;
}

.sendButton:hover {
  background-color: #27272a;
}

html[data-theme='dark'] .sendButton:hover {
  background-color: #52525b;
}

.spinner {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.suggestionCards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  padding: 16px;
  margin-top: 16px;
}

.suggestionCard {
  background-color: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

html[data-theme='dark'] .suggestionCard {
  background-color: #27272a;
  border-color: #3f3f46;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.suggestionCard:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border-color: #d4d4d8;
}

html[data-theme='dark'] .suggestionCard:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-color: #52525b;
}

.suggestionCard h4 {
  margin: 0 0 8px 0;
  font-size: 16px;
  font-weight: 600;
  color: #18181b;
}

html[data-theme='dark'] .suggestionCard h4 {
  color: #ffffff;
}

.suggestionCard p {
  margin: 0 0 12px 0;
  font-size: 14px;
  color: #52525b;
  line-height: 1.4;
}

html[data-theme='dark'] .suggestionCard p {
  color: #a1a1aa;
}

.commandTag {
  display: inline-block;
  padding: 4px 8px;
  background-color: #f4f4f5;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #71717a;
}

html[data-theme='dark'] .commandTag {
  background-color: #3f3f46;
  color: #d4d4d8;
}

.unsafeMessage {
  background-color: #fee2e2;
  border: 1px solid #fecaca;
}

html[data-theme='dark'] .unsafeMessage {
  background-color: #7f1d1d;
  border-color: #991b1b;
}

.unsafeResponse {
  background-color: #fee2e2;
  color: #ef4444;
}

html[data-theme='dark'] .unsafeResponse {
  background-color: #7f1d1d;
  color: #fca5a5;
}
