/* Estilos para los mensajes en el menú lateral */
#mensajes-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #ffffff;
  padding: 10px;
  transition: background-color 0.3s ease;
}

#mensajes-link:hover {
  background-color: #f5f5f5;
}

.notification-count {
  background-color: red;
  color: white;
  font-size: 12px;
  border-radius: 50%;
  padding: 5px 8px;
  margin-left: 10px;
}

.notification-popup {
  position: absolute;
  top: 50px;
  right: -295px;
  width: 300px;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  z-index: 1000;
  display: none;
}

.notification-popup ul {
  list-style: none;
  padding: 10px;
  max-height: 200px;
  overflow-y: auto;
}

.notification-popup li {
  padding: 8px 10px;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.notification-popup li:hover {
  background-color: #f9f9f9;
}

.notification-popup button {
  width: 100%;
  padding: 8px;
  background-color: red;
  color: white;
  border: none;
  cursor: pointer;
}

.notification-popup button:hover {
  background-color: darkred;
}

/* Modal de Chat */
.chat-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.chat-modal-content {
  background-color: white;
  width: 500px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.chat-header {
  background-color: #007bff;
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 18px;
}

.chat-header h2 {
  margin: 0;
}

.chat-messages {
  padding: 10px;
  background-color: #f5f5f5;
  flex: 1;
  overflow-y: auto;
  max-height: 400px;
}

.mensaje {
  margin-bottom: 10px;
}

.mensaje p {
  margin: 0;
  padding: 5px;
  border-radius: 5px;
}

.mensaje p:nth-child(1) {
  background-color: #e0f7fa;
}

.mensaje p:nth-child(2) {
  background-color: #fce4ec;
}

.chat-input {
  display: flex;
  padding: 10px;
  border-top: 1px solid #ddd;
}

.chat-input input[type="text"] {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 5px;
  margin-right: 10px;
}

.chat-input button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
}

.chat-input button:hover {
  background-color: #0056b3;
}

/* Cerrar modal */
.close-chat {
  position: absolute;
  top: 10px;
  right: 15px;
  cursor: pointer;
  font-size: 20px;
  color: white;
}
