#avatar {
      width: 150px;
      transition: box-shadow 0.3s ease;
      border-radius: 50%;
    }
    .speaking {
      box-shadow: 0 0 20px 5px rgba(255, 200, 0, 0.6);
    }
    #loading {
      font-weight: bold;
      display: none;
    }
    .auth-section {
      border: 1px solid #ccc;
      padding: 10px;
      margin: 20px auto;
      max-width: 400px;
    }
    input {
      display: block;
      margin: 5px 0;
      padding: 5px;
      width: 95%;
    } 
    
.user-bubble {
  background-color: #e1f5fe;
  padding: 6px 10px;
  margin: 6px 0;
  border-radius: 8px;
  max-width: 80%;
  text-align: right;
}

.assistant-bubble {
  background-color: #fff3cd;
  padding: 6px 10px;
  margin: 6px 0;
  border-radius: 8px;
  max-width: 80%;
  text-align: left;
}

#terms-modal {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  background-color: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
#terms-content {
  background-color: white;
  padding: 30px;
  max-width: 600px;
  border-radius: 10px;
  text-align: left;
}

.speaking {
  animation: blinkSmile 2s infinite;
}

@keyframes blinkSmile {
  0% { transform: scale(1); filter: brightness(100%); }
  50% { transform: scale(1.02); filter: brightness(110%); }
  100% { transform: scale(1); filter: brightness(100%); }
}

#recordBtn.recording {
  background: #e53935;
  color: #fff;
}

.bubble-author {
  font-size: 12px;
  font-weight: 600;
  opacity: 0.7;
  margin-bottom: 2px;
}

.bubble-content {
  white-space: pre-wrap;
  word-break: break-word;
}