body {
  background:#0e0e0e;
  font-family:Arial, sans-serif;
}

/* Mobile-first */
#chat-container {
  width: 100%;
  height: 100vh;
  margin: 0;
  background: #111;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Desktop correction */
@media (min-width: 600px) {
  #chat-container {
    max-width: 360px;
    height: auto;
    margin: 30px auto;
    border-radius: 12px;
  }
}


#chat-header {
  display:flex;
  align-items:center;
  background:#1c1c1c;
  padding:10px;
  color:#fff;
}

#chat-header img {
  width:40px;
  height:40px;
  border-radius:50%;
  margin-right:10px;
}

#chat {
  height:420px;
  overflow-y:auto;
  padding:10px;
}

.bubble {
  font-size: 0;
}

.bubble {
  max-width:75%;
  margin:6px 0;
  padding:10px;
  border-radius:12px;
  font-size:14px;
}

.me {
  background:#2a7cff;
  color:#fff;
  margin-left:auto;
}

.her {
  background:#2a2a2a;
  color:#eee;
}

.bubble img {
  width:100%;
  border-radius:10px;
  margin-top:5px;
}

#input-area {
  display:flex;
  background:#1c1c1c;
}

#input-area input {
  flex:1;
  padding:10px;
  background:#111;
  border:none;
  color:#fff;
}

#input-area button {
  width:50px;
  background:#2a7cff;
  border:none;
  color:#fff;
  font-size:18px;
}

/* typing indicator (3 dots) */
.typing {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:6px 10px;
}

.typing span {
  width:6px;
  height:6px;
  background:#aaa;
  border-radius:50%;
  margin:0 2px;
  animation: blink 1.4s infinite both;
}

.typing span:nth-child(2) { animation-delay:.2s; }
.typing span:nth-child(3) { animation-delay:.4s; }

@keyframes blink {
  0% { opacity:.2; }
  20% { opacity:1; }
  100% { opacity:.2; }
}

#chat-header {
  background: #0b5cff; /* barra azul */
  color: #fff;
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: bold;
}

#chat-header img {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

#chat-header span {
  color: #fff;
  font-size: 16px;
}

#chat {
  height: 420px;
  overflow-y: auto;
  padding: 10px;

  background-image: url("media/fundo.jpg"); /* sua imagem */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.me {
  background: rgba(42, 124, 255, 0.85);
  color: #fff;
}

.her {
  background: rgba(30, 30, 30, 0.85);
  color: #eee;
}

.bubble {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}



