  body {
      font-family: Arial, sans-serif;
      margin: 0;
      padding: 0;
      display: flex;
      justify-content: center;
      align-items: center;
      height: 100vh;
      background: linear-gradient(135deg, #6a11cb, #2575fc); /* Fondo con gradiente */
      flex-direction: column;
    }

    /* Estilos para el video de fondo */
    #background-video {
      position: absolute; /* Para colocarlo detrás del contenido */
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      object-fit: cover; /* Esto asegura que el video cubra toda la pantalla sin distorsionarse */
      z-index: -1; /* Asegura que el video quede detrás del formulario */
    }

    /* Estilos del formulario de login */
    .login-container {
      background-color: white;
      padding: 2em;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      width: 320px;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
    }
    .login-container h1 {
      color: #2575fc;
      font-size: 2em;
      margin-bottom: 20px;
    }
    .login-container input {
      width: 75%;
      padding: 12px;
      margin: 10px 0;
      border-radius: 8px;
      border: 1px solid #ccc;
      font-size: 16px;
      transition: all 0.3s ease;
    }
    .login-container input:focus {
      outline: none;
      border: 1px solid #2575fc;
      box-shadow: 0 0 10px rgba(37, 117, 252, 0.3);
    }
    .login-container button {
      width: 100%;
      padding: 14px;
      background-color: #2575fc;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
      transition: all 0.3s ease;
    }
    .login-container button:hover {
      background-color: #6a11cb;
    }
    .login-container .error-message {
      color: red;
      font-size: 14px;
      margin-top: 10px;
    }

    /* Estilos del chat */
    #chat-container {
      display: none;
      width: 80%;
      height:85%;
      background-color: white;
      padding: 20px;
      border-radius: 12px;
      box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
      overflow: hidden;
      flex-direction: column;
    }

    /* Contenedor de la lista de usuarios */
    #user-list {
      width: 400px;
      background: linear-gradient(to bottom, #0cc3fa, #080808);
      padding: 10px;
      overflow-y: auto;
      list-style-type: none;
      border-radius: 8px;
      height: 95%;
      color: #fafafa;

    }

    /* Nuevo contenedor para mensajes y formulario */
    #message-container {
      flex-direction: column;
      height: 100%;
      width: 100%;
      position: relative;
      margin-left: 1px;
    }

    /* Contenedor de los mensajes */
    #messages {
      flex-grow: 1;
      overflow-y: auto;
      margin-bottom: 10px;
      display: flex;
      flex-direction: column;
      padding: 10px;
      border-radius: 8px;
      background-color: #61faff;
      height: calc(90% - 60px); /* Ajustamos para que ocupe el espacio adecuado */
    }

    .message {
      margin: 5px 0;
      padding: 10px;
      border-radius: 10px;
      max-width: 80%;
      display: flex;
      flex-direction: column;
    }

    .from-me {
      background-color: #46f20c;
      align-self: flex-end;
      text-align: right;
    }

    .from-others {
      background-color: #f57f8a;
      align-self: flex-start;
      text-align: left;
       color: #fafafa;
    }

    /* Contenedor de la zona de mensajes y archivo */
    #message-form {
      display: flex;
      justify-content: space-between;
      padding: 1px;
      position: absolute;
      bottom: 10px;
      width: 100%;
    }

    #message-input {
      width: 50%;
      padding: 5px;
      border-radius: 8px;
    }

    #emoji-button {
      width: 10%;
      padding: 5px;
      border-radius: 8px;
      background-color: #2575fc;
      color: white;
      border: none;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    #user-select {
      width: 18%;
      padding: 5px;
      border-radius: 8px;
    }

    #file-input {
      width: 18%;
      padding: 5px;
      border-radius: 8px;
    }

    button {
      background-color: #2575fc;
      color: white;
      border: none;
      padding: 10px;
      border-radius: 8px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    button:hover {
      background-color: #6a11cb;
    }

    /* Estilo para el botón de Cerrar sesión */
    #logout-btn {
      width: 50%;
      margin-top: 10px;
      padding: 14px;
      background-color: #ff4e4e;
      color: white;
      border: none;
      border-radius: 8px;
      font-size: 16px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }
    #logout-btn:hover {
      background-color: #ff2a2a;
    }


/* Estilos para las imágenes de perfil en la lista de usuarios */
#users img {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  margin-right: 10px;
}

/* Estilos para el botón de configuración */
#config-btn {
  background-color: #2575fc;
  color: white;
  border: none;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 10px;
}

#config-btn:hover {
  background-color: #6a11cb;
}

 /* Ocultar el input original */
    #file-input {
      display: none;
    }

    /* Estilo del botón personalizado */
    .custom-button {
      display: inline-block;
      padding: 10px 20px;
      background-color: #6d940a;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      font-size: 16px;
      font-family: Arial, sans-serif;
      text-align: center;
      transition: background-color 0.3s;
    }

    /* Hover del botón */
    .custom-button:hover {
      background-color: #0056b3;
    }