/* Variables de colores y fuentes */
:root {
  --primary-color: #2c3e50;
  --secondary-color: #3498db;
  --accent-color: #e74c3c;
  --background-color: #f5f6fa;
  --text-color: #2c3e50;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Estilos generales */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.6;
  background-color: var(--background-color);
  color: var(--text-color);
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Encabezado */
h1 {
  color: var(--primary-color);
  text-align: center;
  margin-bottom: 2rem;
  font-size: 2.5rem;
  font-weight: 600;
}

/* Controles de entrada */
input[type="text"] {
  width: 70%;
  padding: 12px 20px;
  margin: 8px 0;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1rem;
  transition: border-color 0.3s ease;
}

input[type="text"]:focus {
  outline: none;
  border-color: var(--secondary-color);
  box-shadow: var(--shadow);
}

button {
  background-color: var(--secondary-color);
  color: white;
  padding: 12px 24px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  margin-left: 10px;
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #2980b9;
}

/* Sección de usuarios */
#users {
  background-color: white;
  padding: 1rem;
  border-radius: 8px;
  margin: 20px 0;
  box-shadow: var(--shadow);
  font-weight: 500;
}

/* Contenedor de mensajes */
#messages {
  background-color: white;
  padding: 1.5rem;
  border-radius: 8px;
  margin-top: 20px;
  min-height: 400px;
  max-height: 600px;
  overflow-y: auto;
  box-shadow: var(--shadow);
}

/* Mensajes individuales (a añadir dinámicamente) */
.message {
  background-color: #f8f9fa;
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 4px solid var(--secondary-color);
}

/* Diseño responsivo */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }

  input[type="text"] {
    width: 100%;
    margin-bottom: 10px;
  }

  button {
    width: 100%;
    margin-left: 0;
    margin-bottom: 10px;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.message {
  animation: fadeIn 0.3s ease-out;
}
