.chat-container {
  display: flex;
  flex-direction: column;
  padding: 16px;
  padding-bottom: 60px;
  height: 100%;
  overflow-y: auto;
  scroll-behavior: smooth;
  margin-top: 10px;
  position: relative;
}

.chat-content {
  padding: 16px;
  padding-bottom: 60px;
  padding-top: 80px;
}

.message-wrapper {
  display: flex;
  margin: 8px 0;
  
  &.user-message {
    justify-content: flex-end;
  }
  
  &.ai-message {
    justify-content: flex-start;
  }
}

.message-bubble {
  max-width: 75%;
  padding: 12px 16px;
  border-radius: 18px;
  word-wrap: break-word;
  position: relative;
}

.user-message .message-bubble {
  background-color: var(--ion-color-primary);
  color: white;
  margin-left: 20%;
}

.ai-message .message-bubble {
  background-color: var(--ion-color-light);
  color: var(--ion-color-dark);
  margin-right: 20%;
}

.message-content {
  font-size: 16px;
  line-height: 1.4;
}

.message-time {
  font-size: 12px;
  opacity: 0.7;
  margin-top: 4px;
  text-align: right;
}

.loading-indicator {
  display: flex;
  justify-content: center;
  padding: 20px;
}

ion-footer ion-toolbar {
  --padding-top: 0;
  --padding-bottom: 0;
}

ion-item {
  --padding-start: 8px;
  --padding-end: 8px;
  --inner-padding-end: 8px;
}

ion-input {
  --padding-start: 12px;
  --padding-end: 12px;
  --padding-top: 8px;
  --padding-bottom: 8px;
}

ion-button {
  margin: 0;
}

.teacher-selector {
  background: var(--ion-background-color);
  padding: 12px;
  text-align: center;
  border-bottom: 1px solid var(--ion-color-light-shade);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.teacher-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

.teacher-icon {
  font-size: 28px;
  margin-bottom: 4px;
  color: var(--ion-color-primary);
}

.teacher-name {
  font-size: 16px;
  font-weight: 500;
  color: var(--ion-color-dark);
  margin-bottom: 2px;
}

.teacher-description {
  font-size: 12px;
  color: var(--ion-color-medium);
}

.teacher-list-item {
  display: flex;
  align-items: center;
  padding: 12px 0;
  width: 100%;
}

.teacher-details {
  margin-left: 12px;
}

ion-item.selected {
  --background: var(--ion-color-light);
}

ion-content {
  --padding-top: 0;
}

ion-button#select-teacher {
  --background: var(--ion-background-color);
  --background-hover: var(--ion-background-color);
  --background-activated: var(--ion-background-color);
  --box-shadow: none;
  --border-style: none;
  --ripple-color: transparent;
  --padding-start: 16px;
  --padding-end: 16px;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  height: auto;
}
