.pageContainer {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: #f9fafb;
  padding: 32px;
  box-sizing: border-box;
}

/* Page Header */
.pageHeader {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 32px;
}

.backButton {
  background: transparent;
  border: none;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 0;
  font-size: 14px;
  transition: color 0.2s;
}

.backButton:hover {
  color: #0f172a;
}

.pageTitle {
  color: #0f172a;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.chatContainer {
  flex: 1;
  width: 100%;
  max-width: 768px;
  margin: 0 auto;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.header {
  height: 42px;
  background-color: #9100df;
  border-radius: 10px 10px 0 0;
  display: flex;
  align-items: center;
  padding: 0 16px;
  flex-shrink: 0;
}

.iconWrapper {
  width: 20px;
  height: 20px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.headerTitle {
  margin-left: 12px;
  color: white;
  font-size: 16px;
  font-weight: 600;
}

/* Messages Area */
.messagesArea {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 16px;
  scroll-behavior: smooth;
}

.loadingMessage {
  display: flex;
  align-items: flex-start;
  margin-bottom: 16px;
}

.loadingBubble {
  background-color: #eeeeee;
  border-radius: 4px;
  padding: 10px 12px;
}

.loadingDots {
  display: flex;
  gap: 4px;
}

.dot {
  width: 8px;
  height: 8px;
  background-color: #616161;
  border-radius: 50%;
  animation: bounce 1.4s infinite ease-in-out both;
}

.dot:nth-child(1) {
  animation-delay: -0.32s;
}

.dot:nth-child(2) {
  animation-delay: -0.16s;
}

@keyframes bounce {
  0%, 80%, 100% {
    transform: scale(0);
  }
  40% {
    transform: scale(1);
  }
}

/* Attachments */
.attachmentsContainer {
  padding: 0 16px 8px;
}

/* Input Area */
.inputContainer {
  padding: 0 16px 16px;
  flex-shrink: 0;
}

.inputWrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #f8f8f8;
  border: 1px solid #e3e3e3;
  border-radius: 5px;
  padding: 10px 12px;
}

.fileInput {
  display: none;
}

.iconButton {
  height: 32px;
  width: 32px;
  color: #616161;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.iconButton:hover {
  opacity: 0.7;
}

.textarea {
  flex: 1;
  background: transparent;
  font-size: 12px;
  color: #616161;
  outline: none;
  resize: none;
  max-height: 80px;
  min-height: 20px;
  border: none;
  font-family: inherit;
}

.textarea::placeholder {
  color: #616161;
}

.sendButton {
  height: 32px;
  width: 32px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #9100df;
  transition: opacity 0.2s;
}

.sendButton:hover:not(:disabled) {
  opacity: 0.8;
}

.sendButton:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
