/* Import Base Design System */
@import url('base-design-system.css');
@import url('navbar.css');

/* Full Height Layout */
body {
  height: 100vh;
  overflow-x: hidden;
  overflow-y: auto;
  margin: 0;
  background: linear-gradient(135deg, 
    rgba(102, 126, 234, 0.04) 0%, 
    rgba(118, 75, 162, 0.03) 25%, 
    rgba(240, 147, 251, 0.02) 50%, 
    rgba(245, 87, 108, 0.03) 75%, 
    rgba(79, 172, 254, 0.04) 100%);
  background-size: 400% 400%;
  animation: gradientShift 20s ease infinite;
}

.App {
  height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

/* Hero Section Mini */
.h.floating-shape:nth-child(1) {
  top: 15%;
  left: 8%;
  width: 120px;
  height: 120px;
  background: linear-gradient(45deg, rgba(111, 12, 99, 0.06), rgba(30, 58, 138, 0.05));
  border-radius: 50%;
  animation-delay: 0s;
  filter: blur(2px);
}o.floating-shape:nth-child(2) {
  top: 60%;
  right: 12%;
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(111, 12, 99, 0.04), rgba(79, 172, 254, 0.04));
  border-radius: 30%;
  animation-delay: -5s;
  filter: blur(1.5px);
}
.floating-shape:nth-child(3) {
  top: 35%;
  right: 25%;
  width: 60px;
  height: 60px;
  background: linear-gradient(90deg, rgba(240, 147, 251, 0.05), rgba(245, 87, 108, 0.04));
  transform: rotate(45deg);
  animation-delay: -10s;
  filter: blur(1.8px);
}

/* Extra floating shapes for more ambiance */
.floating-shape-extra:nth-child(4) {
  top: 20%;
  left: 70%;
  width: 40px;
  height: 40px;
  background: linear-gradient(45deg, rgba(79, 172, 254, 0.03), rgba(118, 75, 162, 0.03));
  border-radius: 20px;
  animation-delay: -7s;
  filter: blur(2px);
}

.floating-shape-extra:nth-child(5) {
  top: 80%;
  left: 50%;
  width: 30px;
  height: 30px;
  background: linear-gradient(135deg, rgba(240, 147, 251, 0.02), rgba(111, 12, 99, 0.02));
  border-radius: 50%;
  animation-delay: -15s;
  filter: blur(1.5px);
}

/* Hero Section Mini */
.hero-section-mini {
  background: linear-gradient(135deg, 
    #667eea 0%, 
    #764ba2 25%, 
    #f093fb 50%, 
    #f5576c 75%, 
    #4facfe 100%);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  color: white;
  padding: var(--space-4) 0;
  position: relative;
  overflow: hidden;
}

.hero-section-mini::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  animation: floatingBubbles 20s ease-in-out infinite;
}

.hero-section-mini .hero-content {
  position: relative;
  z-index: 2;
}

.hero-section-mini h1 {
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
}

.hero-section-mini p {
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.1);
}

.mr-3 {
  margin-right: 0.75rem;
}

/* Chat Wrapper */
.chat-wrapper {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 0;
  height: calc(100vh - 140px);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  box-shadow: 
    var(--shadow-xl),
    0 0 40px rgba(111, 12, 99, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  overflow: hidden;
  margin-bottom: var(--space-4);
  position: relative;
  border: 2px solid transparent;
  background-clip: padding-box;
  z-index: 10;
}

.chat-wrapper::before {
  content: '';
  position: absolute;
  top: -3px;
  left: -3px;
  right: -3px;
  bottom: -3px;
  background: linear-gradient(45deg, 
    rgba(111, 12, 99, 0.15) 0%, 
    rgba(139, 92, 246, 0.1) 25%, 
    rgba(168, 85, 247, 0.08) 50%, 
    rgba(192, 132, 252, 0.1) 75%, 
    rgba(111, 12, 99, 0.15) 100%);
  border-radius: calc(var(--radius-xl) + 3px);
  z-index: -1;
  animation: rotateBorder 12s linear infinite;
}

.chat-wrapper::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(111, 12, 99, 0.12) 90deg,
    rgba(139, 92, 246, 0.08) 180deg,
    rgba(168, 85, 247, 0.06) 270deg,
    transparent 360deg
  );
  border-radius: calc(var(--radius-xl) + 2px);
  z-index: -1;
  animation: spinBorder 8s linear infinite;
}

/* Chat Sidebar */

.chat-sidebar {
  background: var(--gray-50);
  border-right: 1px solid var(--gray-200);
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  border-top-left-radius: var(--radius-xl);
  border-bottom-left-radius: var(--radius-xl);
  height: 100%;
  min-width: 260px;
  max-width: 340px;
}

.new-chat-btn {
  background: var(--primary-gradient);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  padding: var(--space-3) var(--space-4);
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  position: relative;
  overflow: hidden;
}

.new-chat-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s ease;
}

.new-chat-btn:hover::before {
  left: 100%;
}

.new-chat-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.new-chat-btn:active {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

/* Estilo especial quando há mensagens ativas */
body.chat-active .new-chat-btn {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  animation: pulseReset 2s ease-in-out infinite;
}

body.chat-active .new-chat-btn:hover {
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  animation: none;
}

@keyframes pulseReset {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
}

.chat-history {
  flex: 1 1 auto;
  overflow-y: auto;
  max-height: calc(100vh - 220px);
  margin-bottom: var(--space-2);
  padding-right: 2px;
}
/* Botão visual para cada sessão do histórico */
.chat-history-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  border-radius: var(--radius-lg);
  margin-bottom: var(--space-2);
  padding: var(--space-2) var(--space-3);
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, border 0.18s, transform 0.14s;
  font-size: 1rem;
  font-weight: 500;
  color: var(--primary-purple, #6d28d9);
  box-shadow: 0 1px 4px rgba(111, 12, 99, 0.03);
  outline: none;
}
.chat-history-item:hover, .chat-history-item:focus {
  background: #ede9fe;
  border: 1.5px solid var(--primary-purple, #6d28d9);
  color: #4c1d95;
  box-shadow: 0 2px 12px rgba(111, 12, 99, 0.08);
  transform: translateY(-1px) scale(1.01);
}
.chat-history-item .session-title {
  font-weight: 600;
  font-size: 1.02rem;
  color: inherit;
  margin-bottom: 2px;
}
.chat-history-item .session-date {
  color: #6b7280;
  font-size: 0.85rem;
  margin-top: 1px;
}

/* Chat Main */
.chat-main {
  display: flex;
  flex-direction: column;
  position: relative;
  height: 100%;
  overflow: hidden;
  padding-bottom: 0;
}

/* Welcome Screen */
.chat-welcome {
  flex: 1;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: var(--space-2) var(--space-4);
  padding-bottom: 120px;
  overflow-y: hidden;
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.chat-welcome.fade-out {
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
}

.welcome-content {
  text-align: center;
  max-width: 100%;
  padding: 0 var(--space-2);
  width: 100%;
}

.welcome-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: var(--space-3);
}

.welcome-subtitle {
  color: var(--gray-600);
  font-size: 1rem;
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

/* Suggestion Cards */
.suggestion-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-2);
  padding: 0 var(--space-2);
  margin-bottom: var(--space-2);
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.suggestion-cards.fade-out {
  opacity: 0;
  transform: translateY(-15px);
  pointer-events: none;
}

.suggestion-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(111, 12, 99, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-2);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.6s ease-out, transform 0.6s ease-out;
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  text-align: left;
  margin: var(--space-1);
  min-height: 60px;
  position: relative;
  overflow: hidden;
  opacity: 1;
  transform: translateY(0);
}

.suggestion-card.fade-out {
  opacity: 0;
  transform: translateY(-10px);
  pointer-events: none;
}

.suggestion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, 
    transparent 0%, 
    rgba(111, 12, 99, 0.1) 50%, 
    transparent 100%);
  transition: left 0.6s ease;
}

.suggestion-card:hover::before {
  left: 100%;
}

.suggestion-card:hover {
  border-color: var(--primary-purple);
  transform: translateY(-3px);
  box-shadow: 
    var(--shadow-lg),
    0 10px 30px rgba(111, 12, 99, 0.15),
    0 0 20px rgba(111, 12, 99, 0.1);
  background: rgba(255, 255, 255, 0.95);
}

.suggestion-icon {
  background: var(--purple-100);
  color: var(--primary-purple);
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}

.suggestion-content {
  flex: 1;
}

.suggestion-title {
  font-weight: 600;
  color: var(--gray-900);
  font-size: 0.85rem;
  margin-bottom: var(--space-1);
}

.suggestion-description {
  color: var(--gray-600);
  font-size: 0.75rem;
  line-height: 1.3;
}

/* Chat Messages */
.chat-messages {
  flex: 1 1 auto;
  padding: var(--space-6);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease-out 0.3s, transform 0.8s ease-out 0.3s;
  margin-bottom: 110px; /* espaço para o input */
}

.chat-messages.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Message Styles */
.message {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  max-width: 80%;
  margin-bottom: var(--space-4);
  animation: slideInMessage 0.3s ease-out;
}

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

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

.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1.2rem;
  color: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.user-message .message-avatar {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.assistant-message .message-avatar {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.message-content {
  background: white;
  padding: var(--space-4);
  border-radius: var(--radius-lg);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  font-size: 0.95rem;
  line-height: 1.6;
  word-wrap: break-word;
  position: relative;
  transition: all 0.2s ease;
}

.user-message .message-content {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border-bottom-right-radius: 6px;
}

.assistant-message .message-content {
  background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
  color: var(--gray-700);
  border: 1px solid var(--gray-200);
  border-bottom-left-radius: 6px;
}

.message-content:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* Message Animation */
@keyframes slideInMessage {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes slideInFirstMessage {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  50% {
    opacity: 0.7;
    transform: translateY(10px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.message.first-message {
  animation: slideInFirstMessage 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Typing Indicator */
.message.typing .message-content {
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f2ff 100%);
  border: 1px solid var(--gray-200);
  padding: var(--space-3) var(--space-4);
}

.typing-dots {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 20px;
}

.typing-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-purple);
  animation: typingAnimation 1.4s infinite ease-in-out;
  opacity: 0.4;
}

.typing-dots span:nth-child(1) {
  animation-delay: 0s;
}

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

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

@keyframes typingAnimation {
  0%, 60%, 100% {
    transform: translateY(0);
    opacity: 0.4;
  }
  30% {
    transform: translateY(-10px);
    opacity: 1;
  }
}

/* Static Background Mode */
.chat-messages.static-background {
  background: white;
  margin: 0;
  padding: var(--space-4); /* Padding menor no topo */
  padding-bottom: 120px; /* Espaço para o input area que já existe */
  border-radius: 0;
  box-shadow: none;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  height: 100%;
  overflow-y: auto;
}

/* Chat Main in Static Mode */
.chat-main.has-messages {
  background: white;
  padding: 0;
  margin: 0;
  position: relative; /* Para suportar position absolute do chat-messages */
  height: 100%;
}

.chat-main.has-messages .chat-input-area {
  position: sticky;
  bottom: var(--space-4);
  margin: 0 var(--space-4) var(--space-4) var(--space-4);
  border-radius: var(--radius-lg);
  border-top: 1px solid var(--gray-200);
  box-shadow: var(--shadow-lg);
}

/* Hide background effects when chat is active */
.background-effects,
.floating-shape,
.animated-gradient-bg {
  opacity: 1;
  transition: opacity 0.8s ease-out;
}

body.chat-active .background-effects,
body.chat-active .floating-shape,
body.chat-active .animated-gradient-bg {
  opacity: 0;
  pointer-events: none;
}

/* Full screen chat mode */
body {
  transition: background-color 0.8s ease-out;
}

body.chat-active {
  background: white !important;
}

.chat-wrapper {
  transition: background-color 0.6s ease-out, margin 0.6s ease-out, padding 0.6s ease-out, border-radius 0.6s ease-out, box-shadow 0.6s ease-out;
}

body.chat-active .chat-wrapper {
  background: white;
}

/* Input area no modo normal (sem has-messages) */
.chat-input-area {
  border-top: 1px solid var(--gray-200);
  padding: var(--space-4);
  background: #fff;
  flex-shrink: 0;
  position: fixed;
  left: 300px; /* largura da sidebar */
  right: 0;
  bottom: 0;
  z-index: 20;
  min-height: 80px;
  margin: 0;
  max-width: none;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  box-shadow: 0 -2px 16px rgba(111, 12, 99, 0.06);
  opacity: 1;
  transform: translateY(0);
  transition: all 0.4s ease-out, opacity 0.6s ease-out 0.4s, transform 0.6s ease-out 0.4s;
}
}

.chat-input-area.fade-in {
  opacity: 1;
  transform: translateY(0);
}

.input-container {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: var(--space-3);
  transition: all 0.3s ease;
  justify-content: center;
}

.input-container:focus-within {
  border-color: var(--primary-purple);
  box-shadow: 0 0 0 3px rgba(111, 12, 99, 0.1);
}

.chat-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  resize: none;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 24px;
  max-height: 120px;
  font-family: inherit;
  text-align: center;
  padding: var(--space-2) var(--space-3);
}

.chat-input::placeholder {
  color: var(--gray-400);
  text-align: center;
}

.chat-input:focus {
  text-align: left;
  box-shadow: 
    0 0 20px rgba(111, 12, 99, 0.15),
    0 0 40px rgba(111, 12, 99, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.8);
  background: rgba(255, 255, 255, 0.98);
}

/* Animação suave para mudança de placeholder */
.chat-input {
  transition: opacity 0.3s ease-in-out;
}

.chat-input::placeholder {
  transition: opacity 0.3s ease-in-out;
}

.send-button {
  background: var(--primary-purple);
  color: white;
  border: none;
  border-radius: var(--radius-lg);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
}

.send-button:hover {
  background: var(--purple-700);
  transform: scale(1.05);
}

.send-button:disabled {
  background: var(--gray-300);
  cursor: not-allowed;
  transform: none;
}

/* Responsive Design */
@media (max-width: 768px) {
  .chat-wrapper {
    grid-template-columns: 1fr;
    height: calc(100vh - 160px);
    margin-bottom: var(--space-4);
  }
  
  .chat-sidebar {
    display: none;
  }
  
  .suggestion-cards {
    grid-template-columns: 1fr;
  }
  
  .welcome-title {
    font-size: 1.5rem;
  }
  
  .welcome-subtitle {
    font-size: 1rem;
  }
}

/* Utility Classes */
.mr-2 { margin-right: 0.5rem; }

/* Animations from index.css */
@keyframes gradientShift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

@keyframes floatingBubbles {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-20px) rotate(180deg); }
}

.floating-shape {
  position: absolute;
  opacity: 0.08;
  animation: floatShape 25s ease-in-out infinite;
  z-index: 1;
  pointer-events: none;
}

.floating-shape:nth-child(1) {
  top: 10%;
  left: 10%;
  width: 60px;
  height: 60px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  animation-delay: 0s;
}

.floating-shape:nth-child(2) {
  top: 70%;
  right: 10%;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 30%;
  animation-delay: -5s;
}

.floating-shape:nth-child(3) {
  top: 30%;
  right: 30%;
  width: 30px;
  height: 30px;
  background: rgba(255, 255, 255, 0.08);
  transform: rotate(45deg);
  animation-delay: -10s;
}

@keyframes floatShape {
  0%, 100% {
    transform: translateY(0px) rotate(0deg);
  }
  25% {
    transform: translateY(-15px) rotate(90deg);
  }
  50% {
    transform: translateY(-8px) rotate(180deg);
  }
  75% {
    transform: translateY(-20px) rotate(270deg);
  }
}

/* Shimmer Border Animation */
@keyframes shimmerBorder {
  0% {
    background: linear-gradient(90deg, 
      var(--primary-purple) 0%, 
      #8B5CF6 25%, 
      #A855F7 50%, 
      #C084FC 75%, 
      var(--primary-purple) 100%);
    box-shadow: 0 0 20px rgba(111, 12, 99, 0.4);
  }
  33% {
    background: linear-gradient(90deg, 
      #A855F7 0%, 
      #C084FC 25%, 
      var(--primary-purple) 50%, 
      #8B5CF6 75%, 
      #A855F7 100%);
    box-shadow: 0 0 25px rgba(168, 85, 247, 0.5);
  }
  66% {
    background: linear-gradient(90deg, 
      #C084FC 0%, 
      var(--primary-purple) 25%, 
      #8B5CF6 50%, 
      #A855F7 75%, 
      #C084FC 100%);
    box-shadow: 0 0 30px rgba(192, 132, 252, 0.6);
  }
  100% {
    background: linear-gradient(90deg, 
      var(--primary-purple) 0%, 
      #8B5CF6 25%, 
      #A855F7 50%, 
      #C084FC 75%, 
      var(--primary-purple) 100%);
    box-shadow: 0 0 20px rgba(111, 12, 99, 0.4);
  }
}

/* Rotating Border Animation */
@keyframes rotateBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Spinning Border Animation */
@keyframes spinBorder {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}

/* Responsive Styles for Messages */
@media (max-width: 768px) {
  .message {
    max-width: 90%;
  }
  
  .message-avatar {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .message-content {
    padding: var(--space-3);
    font-size: 0.9rem;
  }
  
  .chat-messages {
    padding: var(--space-4);
    gap: var(--space-3);
  }
  
  .chat-messages.static-background {
    padding: var(--space-2); /* Padding menor em mobile */
    padding-bottom: 100px;
  }
  
  .chat-main.has-messages .chat-input-area {
    padding: var(--space-3);
    min-height: 70px;
  }
}

@media (max-width: 480px) {
  .message {
    max-width: 95%;
  }
  
  .message-avatar {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }
  
  .message-content {
    padding: var(--space-2) var(--space-3);
    font-size: 0.85rem;
  }
  
  .chat-messages.static-background {
    padding: var(--space-1) var(--space-2); /* Padding mínimo no mobile */
    padding-bottom: 90px;
  }
}