#imagem {
  position: relative;
  text-align: left;
}

/* 🔥 CORREÇÃO PRINCIPAL */
html, body {
  min-height: 100%;
  overflow-x: hidden;
}

/* Sidebar para telas grandes (desktop) */
@media (min-width: 768px) {
  .sidebar {
    height: 100vh;
    width: 250px;
    position: fixed;
    top: 0;
    right: 0;
    background-color: #343a40;
    padding-top: 1rem;
    z-index: 1030;
  }

  .sidebar a {
    color: white;
    text-decoration: none;
    display: block;
    padding: 0.75rem 1rem;
  }

  .sidebar a:hover {
    background-color: #495057;
  }

  .main-content {
    margin-right: 250px;
    padding: 20px;
  }

  .borda-inferior {
    border-bottom: 1px solid rgba(128, 128, 128, 0.576);
  }
}

/* Sidebar mobile */
@media (max-width: 767.98px) {
  .sidebar {
    display: none !important;
    width: 100%;
    height: auto;
    position: relative;
  }

  .main-content {
    margin-right: 0;
  }

  .telefone {
    width: 90%;
  }
}

/* Chat mobile */
@media(min-width: 500px) and (max-width:767.98px){
  .chat-tela-mobile{
    width: 90%;
    margin: auto;
  }
}

@media(min-width: 768px) and (max-width: 954px){
  .chat-sm-width{
    width: 65%;
  }
}

/* Chat desktop */
@media(min-width: 955px){
  .chat-width{
    width: 75%;
  }
}

/* Classes gerais */
.mdp {
  margin-left: 230px;
}

.link-fundo {
  background-color: #28a745;
  padding: 5px;
  border-radius: 10px;
  color: white;
}

.white {
  color: white;
}

.cor-chat{
  background-color: rgba(247, 249, 172, 0.554);
}

.cor-topo{
  background-color: rgba(246, 249, 172, 0.584);
}

.lixeira{
  border: 3px outset rgb(242, 29, 29);
  border-radius: 5px;
  margin-right: auto;
}

/* Scroll invisível (sem quebrar layout) */
html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0px;
  display: none;
}

/* Cards */
.cidade-card,
.turma-card {
  transition: 0.2s;
  cursor: pointer;
  font-size: 14px;
  border-radius: 10px;
  max-width: 300px;
  width: 100%;
}

.cidade-card:hover,
.turma-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 12px rgba(0,0,0,0.12);
}

/* 🔥 MENU MOBILE (BOTTOM NAV CORRIGIDO) */

.bottom-nav {
  position: fixed; /* ESSENCIAL */
  bottom: 0;
  left: 0;
  right: 0;
  height: 65px;

  background: #ffffff;

  display: flex;
  flex-direction: row; /* garante horizontal */
  justify-content: space-around;
  align-items: center;

  border-top: 1px solid #e0e0e0;
  box-shadow: 0 -2px 10px rgba(0,0,0,0.05);

  z-index: 9999;
}

/* itens do menu */
.nav-item {
  flex: 1; /* distribui igual */
  text-decoration: none;
  color: #555;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  font-size: 12px;
  transition: 0.2s;
}

.nav-item .icon {
  font-size: 20px;
  margin-bottom: 2px;
}

.nav-item:hover {
  color: #0d6efd;
  transform: scale(1.05);
}

/* ativo (opcional) */
.nav-item.active {
  color: #0d6efd;
  font-weight: bold;
}

/* logout */
.logout {
  color: #d9534f;
}