/* Beto AI Page */
.beto-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.beto-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.beto-header-content {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.beto-avatar-large {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: 3px solid var(--accent-primary);
  box-shadow: 0 4px 16px rgba(139, 92, 246, 0.3);
}

.beto-title {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-primary), var(--accent-primary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
}

.beto-subtitle {
  color: var(--text-secondary);
  font-size: 1rem;
  margin: 0.25rem 0 0 0;
}

/* Chat Container */
.beto-chat-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  border-radius: 24px;
  padding: 1.5rem;
  max-height: calc(100vh - 200px);
  min-height: 500px;
}

.beto-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

/* Messages */
.beto-message {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  animation: slideIn 0.3s ease;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.beto-message-assistant {
  align-self: flex-start;
}

.beto-message-user {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid var(--accent-primary);
}

.message-content {
  background: rgba(255, 255, 255, 0.6);
  padding: 1rem 1.25rem;
  border-radius: 16px;
  max-width: 600px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.beto-message-user .message-content {
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  color: white;
  font-weight: 500;
}

.message-content p {
  margin: 0 0 0.75rem 0;
}

.message-content p:last-child {
  margin-bottom: 0;
}

.message-content ul {
  margin: 0.5rem 0;
  padding-left: 1.5rem;
}

.message-content li {
  margin: 0.5rem 0;
}

.message-content strong {
  color: var(--accent-primary);
  font-weight: 700;
}

.beto-message-user .message-content strong {
  color: white;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  padding: 1rem 1.5rem;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent-primary);
  opacity: 0.4;
  animation: typing 1.4s infinite;
}

.typing-indicator span:nth-child(2) {
  animation-delay: 0.2s;
}

.typing-indicator span:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes typing {
  0%, 60%, 100% {
    opacity: 0.4;
    transform: scale(1);
  }
  30% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* Input Area */
.beto-input-area {
  border-top: 1px solid rgba(139, 92, 246, 0.2);
  padding-top: 1rem;
}

.beto-suggestions {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.suggestion-chip {
  padding: 0.5rem 1rem;
  border-radius: 20px;
  background: rgba(139, 92, 246, 0.1);
  border: 1.5px solid rgba(139, 92, 246, 0.2);
  color: var(--text-primary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.suggestion-chip:hover {
  background: var(--accent-primary);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
}

.beto-input-form {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

#beto-input {
  flex: 1;
  padding: 0.875rem 1.25rem;
  border-radius: 24px;
  border: 2px solid rgba(139, 92, 246, 0.2);
  background: rgba(255, 255, 255, 0.5);
  color: var(--text-primary);
  font-size: 1rem;
  transition: all 0.3s ease;
}

#beto-input:focus {
  outline: none;
  border-color: var(--accent-primary);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.beto-send-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
  border: none;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.beto-send-btn:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
}

.beto-send-btn:active {
  transform: scale(0.95);
}

.beto-send-btn i {
  width: 20px;
  height: 20px;
}

/* Scrollbar */
.beto-messages::-webkit-scrollbar {
  width: 8px;
}

.beto-messages::-webkit-scrollbar-track {
  background: rgba(139, 92, 246, 0.05);
  border-radius: 10px;
}

.beto-messages::-webkit-scrollbar-thumb {
  background: rgba(139, 92, 246, 0.3);
  border-radius: 10px;
}

.beto-messages::-webkit-scrollbar-thumb:hover {
  background: rgba(139, 92, 246, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
  .beto-chat-container {
    max-height: calc(100vh - 150px);
  }

  .beto-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .message-content {
    max-width: 80%;
  }

  .beto-suggestions {
    flex-direction: column;
  }

  .suggestion-chip {
    width: 100%;
  }
}
