.message-container {
  margin-bottom: 100px;
}

.message {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;

  &-content {
    padding: 12px;
    border-radius: 12px;
    max-width: 80%;
    word-break: break-word;
  }

  &-time {
    font-size: 0.8rem;
    color: var(--ion-color-medium);
    margin-top: 4px;
  }

  &.user-message {
    align-items: flex-end;
    
    .message-content {
      background: var(--ion-color-primary);
      color: white;
    }
  }

  &.ai-message {
    align-items: flex-start;
    
    .message-content {
      background: var(--ion-color-light);
      color: var(--ion-color-dark);
    }
  }
}

.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  color: var(--ion-color-medium);
}

.input-area {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px;
  background: var(--ion-background-color);
  display: flex;
  gap: 8px;
  border-top: 1px solid var(--ion-color-light-shade);

  ion-input {
    flex: 1;
    background: var(--ion-color-light);
    border-radius: 20px;
    --padding-start: 16px;
  }
}

.action-buttons-container {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding: 10px;
  
}

.fixed-above-input {
  position: fixed;
  bottom: 70px; // 根据输入区域的高度调整
  left: 0;
  right: 0;
  background: var(--ion-background-color);
  border-top: 1px solid var(--ion-color-light-shade);
  border-bottom: 1px solid var(--ion-color-light-shade);
  z-index: 1000;
}