/* ================================
🔄 RESET BÁSICO E CONFIGURAÇÃO GLOBAL
=================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: sans-serif;
  background: #f9f9f9;
  color: #333;
  padding-top: env(safe-area-inset-top);
  padding-top: constant(safe-area-inset-top);
}

/* ================================
📦 LAYOUT PRINCIPAL
=================================== */
main {
  padding-top: 70px;
}


.conteudo {
  display: flex;
  flex-direction: column;
  align-items: center; /* centraliza horizontalmente */
  justify-content: center; /* opcional: centraliza verticalmente se tiver altura definida */
  padding-top: 90px;
  width: 100%;
}


#feedContainer {
  display: flex;
  flex-direction: column;
  align-items: center; /* centraliza os cards */
  padding: 0 10px;
}
#kanbam {
  margin-top: 20px;
  display: flex;
  flex-direction: row;
  align-items: top; /* centraliza os cards */
  padding: 0 10px;
  min-height: 100vh;
}

/* ================================
🧭 HEADER FIXO
=================================== */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  font-size: 12px;
  height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 4px 16px;
  background-color: #001E42;
  color: white;
  z-index: 9998;
}

header h1, header h2 {
  margin: 0;
  font-size: 1.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* ================================
📌 BOTÕES DE NAVEGAÇÃO
=================================== */
#canalDenBtn,
#painelDenBtn,
#toDacaldaInf {
  background: transparent;
  border: none;
  color: white;
  font-size: large;
  text-align: right;
}

#btnNovoAcomp, #btnEnviarAcomp {
  background-color: #001E42;
  color: white;
  border-radius: 9px;
  max-width: 35%;
}
#statusAcomp{
  max-width: 35%;
}
#textoAcomp {
  background-color: #ccc;
  min-height: 150px;
}


#perfilBtn,
#loginBtn {
  background: white;
  color: #001E42;
  border: none;
  border-radius: 9px;
  font-size: large;
  text-align: center;
}

/* ================================
➕ BOTÃO FLUTUANTE DE NOVO POST
=================================== */
#btnNovoPost {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #001E42;
  color: white;
  font-size: 32px;
  border: none;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
  cursor: pointer;
}

/* ================================
📄 CARDS
=================================== */

.card {
  width: 100%;
  max-width: 600px;
  background: white;
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  cursor: pointer;
}


.card img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  margin-top: 0.5rem;
}

/* ================================
📝 FORMULÁRIOS
=================================== */
input,
select,
textarea,
button {
  font-size: 1rem;
  width: 100%;
  margin-bottom: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

#formPost{
  padding: 20px;
  max-width: 600px;
  text-align: justify;
}

#formDenuncia,#container_consulta {
  flex-direction: column;
  padding: 20px;
  max-width: 600px;
  text-align: justify;
  display: none;
}

#titulo,
#categoria,
#texto,
#midias {
  margin-bottom: 7px;
  background-color: #d4d4d4;
  color: black;
}

/* ================================
🎛️ BOTÕES DE AÇÃO
=================================== */
#btnVoltarfd,
#logoutBtn,
#btnPublicar,
#entrarBtn {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  width: auto;
  max-width: 200px;
  margin: 0px;
}

#btnVoltarfd {
  background-color: white;
  color: #001E42;
  border: 1px solid white;
}

#logoutBtn {
  background-color: red;
  color: white;
  border: 1px solid red;
}

#btnPublicar,
#entrarBtn {
  background-color: #001E42;
  color: white;
  border: 1px solid #001E42;
}

#btnDenunciar {
  background-color: red;
  color: white;
}

/* ================================
🔄 ANIMAÇÕES DE TRANSIÇÃO
=================================== */
.page-slide-up {
  animation: slideUp 0.4s ease forwards;
}

@keyframes slideUp {
  from {
    transform: translateY(0);
    opacity: 1;
  }
  to {
    transform: translateY(-100%);
    opacity: 0;
  }
}

.page-slide-up-enter {
  animation: slideUpEnter 0.4s ease forwards;
}

@keyframes slideUpEnter {
  from {
    transform: translateY(100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* ================================
🔍 FILTRO FLUTUANTE
=================================== */
#filtroFlutuante {
  position: fixed;
  top: 35px;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 100%;
  max-height: 60px;
  padding: 5px;
  background-color: #ffffffa6;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  z-index: 999;
}

#filtroCategoria {
  background-color: white;
  color: #001E42;
  width: 100%;
  max-width: 300px;
  margin: 0 auto;
  font-size: 1rem;
  border-radius: 8px;
  border: 1px solid #ccc;
  display: block;
}

/* ================================
📱 MENU LATERAL
=================================== */
#menuToggle {
  background: none;
  border: none;
  color: white;
  cursor: pointer;
  margin: 0px;
  padding: 0px;
}

#sidebaroverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5); /* semitransparente */
  z-index: 9998;                /* abaixo da sidebar */
  display: none;               /* começa escondido */
  transition: opacity 0.3s ease;
  opacity: 0;
}
#sidebaroverlay.active {
  display: block;
  opacity: 1;
}

#sideMenu {
  position: fixed;
  display: flex;
  flex-direction: column;
  top: 32px;
  left: -250px;
  width: 250px;
  height: 100%;
  background: #001e42e5;
  padding: 15px 20px;
  transition: left 0.3s ease;
  z-index: 9999;
  color: white;
  align-content: space-between;
}

#sideMenu.open {
  left: 0;
}

#sideMenu ul {
  list-style: none;
  padding: 0;
}

#sideMenu li {
  margin-bottom: 20px;
}

#sideMenu a {
  color: white;
  text-decoration: none;
  font-size: 18px;
}

.install-btn {
  width: 100%;
  background: none;
  border: none;
  color: white;     /* mesma cor dos itens do menu */
  font-size: 16px;
  padding: 12px;
  text-align: center; /* fica alinhado como os links */
  cursor: pointer;
}

.install-btn:hover {
  background: rgba(255,255,255,0.1); /* leve destaque ao passar o dedo/mouse */
}

/* ================================
🛑 OVERLAY DO MENU LATERAL
=================================== */
.menu-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0); /* ou 0.3 para escurecer */
  z-index: 998;
  display: none;
}

/* ================================
⏳ TELA DE CARREGAMENTO
=================================== */
#tela_carregamento {
  position: fixed;
  flex-direction: column;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #001E42;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.spinner {
  width: 60px;
  height: 60px;
  border: 6px solid #001E42;
  border-top: 6px solid #ccc;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10000;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* ================================
🔐 MODAL DE LOGIN
=================================== */
#modalOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

#loginModal {
  position: relative;
  background-color: white;
  color: #001E42;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 400px;
}

/* ================================
📱 MEDIA QUERIES: TELAS PEQUENAS
=================================== 
@media (max-width: 768px) {
  header {
    flex-direction: row;
    align-items: flex-start;
    padding: 8px;
  }

  header h1, header h2 {
  margin: 0;
  font-size: 1.4rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

  #btnNovoPost {
    width: 48px;
    height: 48px;
    font-size: 28px;
    bottom: 16px;
    right: 16px;
  }

  .card {
    padding: 0.75rem;
    font-size: 0.95rem;
  }

  #formPost,
  #formDenuncia {
    padding: 16px;
  }

  input,
  select,
  textarea,
  button {
    font-size: 0.95rem;
    padding: 0.4rem;
  }

  #filtroCategoria {
    max-width: 90%;
    font-size: 0.95rem;
  }

  #loginModal {
    width: 95%;
    padding: 16px;
  }

  #sideMenu {
    width: 220px;
    padding: 12px 16px;
  }

  #sideMenu a {
    font-size: 16px;
  }

  #menuToggle {
    font-size: 20px;
    max-width: 32px;
  }

  #perfilBtn,
  #loginBtn,
  #btnVoltarfd,
  #logoutBtn,
  #btnPublicar,
  #entrarBtn {
    font-size: 0.85rem;
    padding: 5px 10px;
  }

  .spinner {
    width: 50px;
    height: 50px;
    border-width: 5px;
  }
}*/

/* ================================
📱 MEDIA QUERIES: TELAS MUITO PEQUENAS
=================================== 
@media (max-width: 480px) {
  .conteudo {
    padding: 0 10px;
  }

  .card {
    font-size: 0.9rem;
  }

  #filtroFlutuante {
    top: 32px;
    padding: 4px;
  }

  #filtroCategoria {
    font-size: 0.9rem;
  }

  #btnNovoPost {
    font-size: 24px;
  }

  #sideMenu {
    width: 200px;
  }

  #sideMenu a {
    font-size: 15px;
  }

  #loginModal {
    padding: 12px;
  }
}*/

/* ================================
Paginas de detalhamento
=================================== */

#bodyPagDetalhe, #formulariodenuncia{
  font-family: sans-serif; 
  padding: 20px; 
  max-width: 600px; 
  margin: auto;
  flex-direction: column;
}


#btnvoltarfeed {
  position: fixed;
  border-radius: 20px;
  color: white;
  background-color: #001e428f; 
  border-color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  max-width: 120px;
  white-space: nowrap;
  width: auto;
  max-width: 200px;
  z-index: 10000;
}

#postContainer {
  flex-direction: column;
  align-items: center; /* centraliza horizontalmente */
  padding-top: 50px;
  max-width: 700px;
}

#btnExcluir {
  margin-top: 20px;
  border-radius: 20px;
  color: white;
  background-color: red; 
  border-color: red;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.9rem;
  cursor: pointer;
  max-width: 120px;
  white-space: nowrap;
  width: auto;
  max-width: 200px;
}

.modal {
  display: none;
  position: fixed;
  inset: 0; /* top, right, bottom, left = 0 */
  background: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
  width: 100vw;
  height: 100vh;
}
.modal-content {
  background: #fff;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  max-width: 400px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}
.modal-content button {
  margin-top: 15px;
  padding: 10px 20px;
  border: none;
  background: #0077cc;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}
.modal-content button:hover {
  background: #005fa3;
}

/*menu hamburger*/

.hamburger {
  background: none;
  border: none;
  cursor: pointer;
  padding: 10px;
  position: relative;
  width: 30px;
  height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hamburger span {
  background: white;
  height: 3px;
  border-radius: 2px;
  transition: 0.3s ease;
  width: 100%;
  display: block;
  transform-origin: center;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(7px, 7px);
}

.hamburger.active span:nth-child(2) {
  transform: rotate(45deg);
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

.div-dos-botoes {
  display: flex;
  gap: 10px; /* espaço entre os botões */
}

.div-dos-botoes button {
  flex: 1; /* força os dois botões a ocuparem a mesma largura */
}

#btnNovaConsulta, #btnNovaDenuncia {
  background-color:#f0f0f0;
  color: #000000;

}
