/* --- Reset básico --- */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

body {
  background: #f4f7fb;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px;
  color: #333;
}

/* --- Título del formulario --- */
#forum-label {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 15px;
  display: block;
  text-align: center;
  color: #444;
}

/* --- Contenedor de inputs --- */
#form {
  background: #fff;
  padding: 20px 25px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 280px;
  margin-bottom: 20px;
}

/* --- Inputs --- */
#form input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  transition: all 0.2s ease-in-out;
  font-size: 0.95rem;
}

#form input:focus {
  border-color: #4a90e2;
  outline: none;
  box-shadow: 0 0 4px rgba(74, 144, 226, 0.5);
}

/* --- Botones --- */
button {
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.95rem;
  transition: background 0.3s, transform 0.2s;
  margin: 5px;
}

#send {
  background: #4a90e2;
  color: white;
}

#send:hover {
  background: #357abd;
  transform: scale(1.05);
}

#open {
  background: #50c878;
  color: white;
}

#open:hover {
  background: #3ba962;
  transform: scale(1.05);
}

/* --- Lista --- */
#list {
  margin-top: 20px;
  list-style: none;
  padding: 0;
  width: 280px;
}

#list li {
  background: #fff;
  margin-bottom: 8px;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* --- Modal --- */
.container-modal {
  display: none; /* oculto por defecto */
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.55);
  justify-content: center;
  align-items: center;
}

#modal {
  background: white;
  padding: 25px 30px;
  border-radius: 12px;
  width: 320px;
  position: relative;
  text-align: center;
  box-shadow: 0 6px 20px rgba(0,0,0,0.2);
}

/* Botón de cerrar modal */
#modal button {
  position: absolute;
  top: 12px;
  right: 12px;
  background: #e74c3c;
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 0.9rem;
}

#modal button:hover {
  background: #c0392b;
}
