.chatContainer {
  display: flex;
  flex-direction: column;
}

.messageList {
  flex: 1;
  overflow-y: auto;
  padding: 16px 12px 80px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.userMessage {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.aiMessage {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bubble {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 15px;
  line-height: 1.6;
  word-break: break-word;
  background: #fff;
  color: #222;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.userMessage .bubble {
  background: linear-gradient(135deg, #a7e0ff 0%, #5bbcff 100%);
  color: #222;
  border-bottom-right-radius: 6px;
}

.aiMessage .bubble {
  background: #fff;
  color: #222;
  border-bottom-left-radius: 6px;
}

.time {
  font-size: 11px;
  color: #aaa;
  margin: 4px 8px 0 8px;
  align-self: flex-end;
}

.inputBar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  background: #fff;
  padding: 10px 12px 10px 12px;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.04);
  z-index: 10;
}

.input {
  flex: 1;
  border: none;
  outline: none;
  background: #f3f4f6;
  border-radius: 18px;
  padding: 10px 14px;
  font-size: 15px;
  margin-right: 8px;
}

.sendButton {
  background: var(
    --primary-gradient,
    linear-gradient(135deg, #a7e0ff 0%, #5bbcff 100%)
  );
  color: #fff;
  border: none;
  border-radius: 18px;
  padding: 8px 18px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.sendButton:disabled {
  background: #e5e7eb;
  color: #aaa;
  cursor: not-allowed;
}

.iconBtn {
  background: none;
  border: none;
  outline: none;
  margin-right: 6px;
  font-size: 20px;
  color: #888;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition:
    background 0.2s,
    color 0.2s;
}

.iconBtn:hover,
.iconBtn:active {
  background: #f3f4f6;
  color: #5bbcff;
}

.image {
  max-width: 180px;
  max-height: 180px;
  border-radius: 10px;
  display: block;
}

.fileLink {
  color: #5bbcff;
  text-decoration: none;
  font-size: 15px;
  word-break: break-all;
  display: flex;
  align-items: center;
}

.nav-title {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 18px;
  text-shadow: 0 2px 4px rgba(24, 142, 238, 0.2);
}
