
:root {
  --blanco: #ffffff;
  --azulChat: #00389b;
  --azulNegro: #000919;
  --azulOscuro: #01093d;
  --fuente: 'Poppins', sans-serif;
}

body {
  margin: 0;
  font-family: var(--fuente);
  background: url('../background-gradient.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--blanco);
  display: flex;
  flex-direction: column;
  height: 100vh;
}

/* Cambiar el tema */
.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
}

#theme-toggle-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  padding: 0.4rem;
  transition: transform 0.3s ease;
}

#theme-toggle-btn:hover {
  transform: scale(1.2);
}

body.dark-theme {
  background-color: #121212;
  color: #eee;
}

body.dark-theme .bubble {
  background-color: #333;
  color: #fff;
}

body.dark-theme .theme-toggle button {
  color: #fff;
}
/* -------------- */

/* Encabezado */
#header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem;
}

/* Perfil superior*/
#profile {
  display: flex;
  align-items: center;
  background: white;
  padding: 0.4rem 0.6rem;
  border-radius: 10px;
}

/* Imagen de perfil */
#profile img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

/* Nombre de perfil */
#profile .info {
  display: flex;
  flex-direction: column;
  color: var(--azulChat);
}

/* Cargo de perfil */
#profile .info small {
  font-size: 0.7rem;
}

/* Logos de redes arriba BORRAR */
#social {
  display: flex;
  gap: 0.5rem;
  background: white;
  padding: 0.3rem 0.6rem;
  border-radius: 10px;
}

#social a {
  color: var(--azulChat);
  font-size: 1.2rem;
}
/* ------------- */

main {
  flex: 1;
  padding: 1rem 0.8rem;
  overflow-y: auto;
}

/* Burbuja de chat */
.bubble {
  background: var(--azulChat);
  color: white;
  border-radius: 0 1rem 1rem 1rem;
  padding: 0.5rem 1rem 0.5rem 1rem;
  margin-bottom: 1rem;
  max-width: 80%;
  animation: typeWriter 0.3s steps(40, end) 1 normal both;
  white-space: pre-wrap;
}
/* ------------- */

/* Efecto Escritura de Texto */
@keyframes typeWriter {
  from { width: 0; }
  to { width: 100%; }
}
/* ------------- */

.bubble h4 {
  margin: 0 0 0.2rem 0;
  font-weight: 600;
}

.bubble h5 {
  margin: 0.2rem 0;
  font-weight: 500;
  font-size: 0.9rem;
}

.bubble small {
  font-size: 0.75rem;
}

#main-buttons {
  padding: 0 0.8rem 1rem;
}

.button-grid {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.button-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
}

.button-row button {
  flex: 1;
  padding: 0.6rem;
  border: none;
  border-radius: 999px;
  background-color: rgba(255, 255, 255, 0.15);
  color: white;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease, background 0.3s ease;
}

.button-row button:hover {
  background-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-3px);
}

#input-area {
  display: flex;
  padding: 0.6rem;
  background: transparent;
  gap: 0.5rem;
  align-items: center;
}

#input-area input {
  flex: 1;
  padding: 0.6rem;
  border-radius: 999px;
  border: none;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
}

#input-area input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

#input-area button {
  background-color: var(--azulChat);
  color: white;
  border: none;
  border-radius: 50%;
  padding: 0.6rem;
  font-size: 1rem;
  cursor: pointer;
}
