/* === Layout geral === */
body.fundo-pagina {
  font-family: Arial, sans-serif;
  margin: 0;
  background-color: #121212;
  color: #e0e0e0;
}

header {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  height: 90px;
  justify-content: space-between;
  align-items: center;
  background-color: #007BFF;
  color: white;
  padding: 10px 20px;
  position: relative;
}

/* Título */
header h1 {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  flex: 1;
  margin: 0;
}

main {
  padding: 20px;
}

/* === Botões do formulário === */
.botoes-form {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 15px;
}

.botoes-form button {
  padding: 4px 12px;
  font-size: 13px;
  background-color: #007BFF;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.botoes-form button:hover {
  background-color: #0056b3;
}

.botao-lobby-flutuante {
  position: fixed;
  top: 10px;
  left: auto;
  right: 10px;
  width: 50px;
  height: 50px;
  z-index: 10002;
  background-color: rgba(0, 123, 255, 0.8);
  border: none;
  border-radius: 50%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background-color 0.3s;
  backdrop-filter: blur(4px);
}

.botao-lobby-flutuante:hover {
  background-color: rgba(0, 123, 255, 1);
  transform: scale(1.1);
}

.icone-lobby {
  width: 28px;
  height: 28px;
  filter: drop-shadow(0 0 2px black);
}

.menu-lobby {
  position: fixed;
  top: 0;
  right: -300px;
  width: 300px;
  height: 100vh;
  background-color: rgba(255, 255, 255, 0.95);
  box-shadow: -2px 0 8px rgba(0, 0, 0, 0.3);
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 10003;
  overflow-y: auto;
}

.menu-lobby.ativo {
  right: 0;
}

.menu-lobby ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-lobby li {
  margin-bottom: 15px;
  font-size: 18px;
  color: #333;
}

#voltar {
  margin-top: 20px;
  background-color: #007BFF;
  color: white;
  padding: 6px 12px;
  border: none;
  border-radius: 4px;
}

/* === Rodapé === */
footer {
  text-align: center;
  padding: 15px;
  color: #ffffff;
}

/* === Formulário === */
form label {
  display: block;
  margin-top: 10px;
  margin-bottom: 4px;
  font-weight: bold;
}

form input,
form select {
  width: 100%;
  max-width: 300px;
  padding: 8px;
  border-radius: 4px;
  border: 1px solid #ccc;
  background-color: #1e1e1e;
  color: #fff;
  margin-bottom: 10px;
}

/* === Lista de professores === */
.bolhas-professores {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin-top: 15px;
}

.bolha {
  background-color: #141414;
  border: 1px solid #ccc;
  border-left: 8px solid #007BFF;
  padding: 12px 56px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 280px;
  font-size: 14px;
}

.bolha strong {
  display: block;
  margin-bottom: 4px;
  font-weight: bold;
  color: #007BFF;
}

/* === Tag de disciplina nas bolhas === */
.bolha .tag {
  display: inline-block;
  margin-top: 6px;
  padding: 4px 8px;
  background-color: #007BFF;
  color: #fff;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.bolha .data-hora {
  display: block;
  margin-top: 8px;
  padding: 4px 6px;
  background-color: #1e1e1e;
  color: #00ffcc;
  border-left: 3px solid #00ffcc;
  font-size: 13px;
  font-weight: bold;
  border-radius: 4px;
}

.bolha .data-hora::before {
  content: "🕒";
  font-size: 14px;
}

.botoes-bolha {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.botao-editar,
.botao-excluir {
  padding: 4px 8px;
  font-size: 12px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.botao-editar {
  background-color: #ffc107;
  color: #000;
}

.botao-excluir {
  background-color: #dc3545;
  color: white;
}

.toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #333;
  color: #fff;
  text-align: center;
  border-radius: 4px;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  transform: translateX(-50%);
  font-size: 17px;
  opacity: 0;
  transition: opacity 0.5s ease-in-out, visibility 0.5s;
}

.toast.show {
  visibility: visible;
  opacity: 1;
}

/* === Responsividade === */
@media (max-width: 768px) {
  .bolhas-professores {
    flex-direction: column;
    align-items: center;
  }
}
