/* html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
} */
/* Garante que o body não tenha margens fantasmas teste */



html,
body {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  overflow-x: hidden !important;
}

a {
  text-decoration-line: none;
  color: black;
}

.input {
  padding: 14px 18px;
  font-size: 1.1rem;
  border: 2px solid #111;
  border-radius: 28px;
  outline: none;
  margin-bottom: 0;
  background: #fff;
  color: #222;
}

.btn-cheio {
  padding: 14px 18px;
  width: 100%;
  background: #2196f3;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 25px;
  margin-top: 8px;
  margin-bottom: 0;
  cursor: pointer;
  box-shadow: none;
}

.btn-publicacao {
  justify-content: center;
  align-items: center;
  padding: 10px 10px;
  width: 100%;
  background: #2196f3;
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 50px;
  margin-top: 8px;
  margin-bottom: 0;
  cursor: pointer;
  box-shadow: none;
}

.btn-outline {
  width: 100%;
  padding: 14px 18px;
  background: #fff;
  color: #2196f3;
  font-size: 1.15rem;
  font-weight: 700;
  border: 2px solid #2196f3;
  border-radius: 28px;
  margin-top: 8px;
  margin-bottom: 0;
  cursor: pointer;
  box-shadow: none;
}

.auth-link {
  background: none;
  border: none;
  color: #111;
  font-size: .95rem;
  font-weight: 500;
  cursor: pointer;
  margin-top: 8px;
}

.auth-footer-link {
  color: #2196f3;
  text-decoration: none;
  font-size: .84rem;
  text-decoration: underline;
  font-weight: 500;
}

.copyright {
  width: 100%;
  text-align: center;
  color: #888;
  font-size: .78rem;
  margin-top: 8px;
}

.barra-vida {
  width: 100%;
  height: 30px;
  padding: 3px 3px 5px 3px;
  background-color: #000;
  color: #fff;
  font-size: 12px;
}

.barra-titulo {
  width: 100%;
  height: 30px;
  padding: 3px 0px 5px 0px;
  background-color: #000;
  color: #fff;
  font-size: 12px;
  justify-content: center;
  align-items: center;
}

.barra-titulo-terra {
  width: 100%;
  height: 70px;
  padding: 6px 0px 5px 0px;
  background-color: #000;
  color: #fff;
  font-size: 12px;
  justify-content: center;
  align-items: center;
}

.barra-voltar {
  width: 100%;
  height: 40px;
  background-color: #fff;
  color: #000;
  font-size: 15px;
  display: flex;
  padding: 15px;
}

/* Área de posts com scroll e altura máxima */
.area-post {
  color: #222;
  margin: 10px 0px 20px 0px;
 /* overflow-y: auto;*/
}

/* Scrollbar personalizada 
.area-post::-webkit-scrollbar {
  width: 8px;
}

.area-post::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

.area-post::-webkit-scrollbar-thumb {
  background: #2196f3;
  border-radius: 10px;
}

.area-post::-webkit-scrollbar-thumb:hover {
  background: #1976d2;
}*/

/* Adicionados estilos para posts - links clicáveis */
.post-title-link, .post-image-link, .post-text-link {
  position: relative !important;
  z-index: 9999 !important;
  pointer-events: auto !important;
  cursor: pointer !important;
}

.post-title-link:hover, .post-image-link:hover, .post-text-link:hover {
  opacity: 0.8;
}

/* Forçar que todos os links dentro de post-item sejam clicáveis */
.post-item a {
  pointer-events: auto !important;
  cursor: pointer !important;
  z-index: 9999 !important;
}

.post-item {
  background: #fff;
 /* border: 1px solid #dcdcdc;*/
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.post-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Adicionando estilos para avatar circular do usuário */
.author-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.author-avatar {
  width: 45px;
  height: 45px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  flex-shrink: 0;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.author-avatar i {
  font-size: 1.5rem;
  color: #ffffff;
}

.author-details {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.author-details strong {
  font-size: 1rem;
  color: #222;
  line-height: 1.2;
}

.post-author strong {
  font-size: 1rem;
  color: #222;
}

.post-date {
  font-size: 0.85rem;
  color: #888;
  margin-top: 2px;
}

.post-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #222;
  margin: 10px 0;
}

.post-content {
  font-size: 1rem;
  color: #444;
  line-height: 1.6;
  margin: 15px 0;
  word-wrap: break-word;
}

.post-media {
  margin: 15px 0;
  text-align: center;
}

.post-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.post-stats {
  display: flex;
  gap: 20px;
  padding: 10px 0;
  border-top: 1px solid #f0f0f0;
  border-bottom: 1px solid #f0f0f0;
  font-size: 0.9rem;
  color: #666;
}

.post-stats i {
  margin-right: 5px;
  color: #2196f3;
}

.post-actions {
  display: flex;
  flex-direction: row; /* Mudado para row (lado a lado) ao invés de column */
  gap: 10px;
  margin-top: 10px;
  align-items: stretch;
}

/* Garantir que o form não quebre o layout */
.post-actions .like-form {
  flex: 1;
  display: flex;
}

.btn-action {
  flex: 1;
  background: #f0f0f0;
  border: none;
  border-radius: 8px;
  padding: 10px 15px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #222;
  cursor: pointer;
  transition: background 0.2s;
  /* Garantindo altura e alinhamento consistentes */
  min-height: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
}

.btn-action:hover {
  background: #e0e0e0;
}

.btn-action i {
  margin-right: 5px;
}

.btn-like:hover i {
  color: #2196f3;
}

.btn-comment:hover i {
  color: #2196f3;
}

.post-comments-section {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.post-comments-section h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #222;
  margin-bottom: 10px;
}

.comment-item {
  background: #f8f8f8;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 8px;
}

.comment-item strong {
  font-size: 0.9rem;
  color: #222;
}

.comment-date {
  font-size: 0.75rem;
  color: #888;
  margin-left: 8px;
}

.comment-item p {
  margin: 5px 0 0 0;
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .post-item {
    padding: 0px;
    margin-bottom: 3px;
  }

  .post-title {
    font-size: 1.1rem;
  }

  .post-content {
    font-size: 0.95rem;
  }

  .post-stats {
    flex-direction: column;
    gap: 3px;
  }

  .post-actions {
    flex-direction: row; /* Mantendo row no mobile também para botões ficarem lado a lado */
    gap: 3px;
  }
}

/* Botão de expandir/recolher post */
.btn-expand {
  background: none;
  border: none;
  color: #2196f3;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 5px 0;
  margin-top: 5px;
}

.btn-expand:hover {
  text-decoration: underline;
}

.menu-inferior {
  position: fixed !important;
  width: 100% !important; /* Largura total da página */
  height: 45px;
  bottom: 0px;
  left: 0px;
  padding: 0;
  margin: 0;
  background-color: #000;
  color: #fff;
  z-index: 90100;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 !important;
}

.menu-inferior a {
  color: #fff;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .menu-inferior {
    width: 100% !important; /* Em mobile, ocupa toda a largura */
  }
}

.sidebar {
  position: relative;
  width: 110px !important;
  min-width: 100px !important;
  min-height: 100vh !important;
  background: #2196f3 !important;
  display: flex !important;
  flex-direction: column !important;
  /* Zere o padding da direita para o conteúdo azul encostar no fim da tela */
  padding: 0px 3px 3px 3px !important;
  margin: 0 !important;
  /* Garante que a borda preta fique na esquerda, dividindo do conteúdo */
  /* border-left: 2px solid #000; */
  z-index: 110 !important;
}

/* APENAS PARA CELULARES MUITO PEQUENOS (Ex: < 360px) */
@media (max-width: 360px) {
  .sidebar {
    padding-right: 12px !important;
    padding-left: 3px !important;
  }
}

/* Ajuste para garantir que o conteúdo principal tenha espaço */
.app.container-fluid {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
}

.row.g-0.flex-nowrap {
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  background-color: transparent !important;
}

/* Garantir que o body também tenha fundo transparente para páginas de cidades */
body.cidade-page .app.container-fluid,
body.cidade-page .row.g-0.flex-nowrap {
  background-color: transparent !important;
}

/* Conteúdo principal - ocupa o espaço restante */
.col.p-0.m-0 {
  flex: 1 !important;
  min-width: 0 !important;
  width: calc(100% - 110px) !important;
  max-width: calc(100% - 110px) !important;
  overflow-x: hidden !important;
}

/* Responsividade para mobile */
@media (max-width: 768px) {
  .col.p-0.m-0 {
    width: calc(100% - 100px) !important;
    max-width: calc(100% - 100px) !important;
  }
  
  .sidebar {
    width: 100px !important;
    min-width: 100px !important;
  }
}

/* Para telas muito pequenas */
@media (max-width: 360px) {
  .col.p-0.m-0 {
    width: calc(100% - 90px) !important;
    max-width: calc(100% - 90px) !important;
  }
  
  .sidebar {
    width: 90px !important;
    min-width: 90px !important;
  }
}

/* Centralização dos itens internos dentro do limite do padding */
.menu-lateral-contexto {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

.menu-lateral-contexto a,
.menu-lateral-contexto span {
  width: 100% !important;
  text-align: center !important;
  margin-bottom: 3px !important;
}

/* Garante que a barra de rolagem do navegador seja a única visível */
body {
  overflow-y: auto !important;
}

/* Scrollbar da sidebar 
.sidebar::-webkit-scrollbar {
  width: 6px;
}

.sidebar::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.1);
}

.sidebar::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}
*/
/* Responsividade para mobile */
@media (max-width: 768px) {
  .sidebar {
    /* width: 100px !important;
        min-width: 100px !important; */
    /* Adiciona 2px de respiro na direita para não "sumir" a borda do botão */
    padding-right: 3px !important;
    padding-left: 3px !important;
    /* Reduz padding-bottom para minimizar espaçamento no final */
    padding-bottom: 1px !important;
  }
  
  /* Para páginas de bairro, remover completamente o padding-bottom */
  body.bairro-page .sidebar {
    padding-bottom: 0 !important;
  }
  
  /* Reduzir margin-bottom dos itens do menu em telas pequenas */
  .menu-lateral-contexto a,
  .menu-lateral-contexto span {
    margin-bottom: 2px !important;
  }
}

.regiao-red {
  background: #950101;
  color: #fff;
  border: 2px solid #222;
  border-radius: 5px;
  width: 100%;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 0 2px;
  text-align: center;
  transition: background .2s;
  display: block;
}

/* Botão Marte - vermelho específico para o planeta */
.marte {
  background: #c1440e !important;
  color: #fff !important;
  border: 2px solid #000 !important;
  border-radius: 5px;
  width: 100%;
  padding: 2px 0 3px 0;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  margin: 0;
  text-align: center;
  transition: background .2s;
  display: block;
  box-sizing: border-box;
}

.regiao-branco {
  background: #2196f3;
  color: #fff;
  border: 2px solid #222;
  border-radius: 5px;
  width: 100%;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  cursor: default;
  margin: 0 0 2px;
  text-align: center;
  transition: background .2s;
  display: block;
}

.regiao-preto {
  background: #2196f3;
  color: #222;
  border: 2px solid #222;
  border-radius: 5px;
  width: 100%;
  text-align: center;
  padding: 10px 0;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  margin: 0 0 2px;
  transition: background .2s;
  display: block;
}

/* Links dos países devem herdar cor preta */
.regiao-preto a {
  color: #222;
}

/* Destaque para capitais no menu lateral */
.menu-lateral-contexto .regiao-preto.capital-highlight {
  background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%) !important;
  color: #000 !important;
  font-weight: 900 !important;
  border: 2px solid #FF8C00 !important;
  box-shadow: 0 2px 4px rgba(255, 140, 0, 0.3) !important;
}

/* Botão Flutuante Centralizado na Área de Conteúdo Principal */
.btn-post {
    position: fixed !important;
    left: calc(50% - 55px) !important; /* Centralizado no conteúdo principal (50% - metade da sidebar) */
    transform: translateX(-50%) !important;
    bottom: 60px !important;
    background: #2196f3 !important;
    color: #fff !important;
    border: 2px solid #222 !important;
    border-radius: 12px !important;
    width: 50px !important;
    height: 50px !important;
    display: flex !important;
    align-items: center;
    justify-content: center !important;
    font-size: 1.8rem !important;
    box-shadow: 0 3px 8px #00000040 !important;
    z-index: 9999 !important;
    cursor: pointer;
}

/* ====================================== */
/* ESTILOS PARA CARDS DE NOTAS (ANIVERSÁRIO, NASCIMENTO, CASAMENTO, FALECIMENTO) */
/* ====================================== */

/* 🎂 ANIVERSÁRIO: Estilo Festa/Alegre */
.card-tipo-aniversario {
  border: 4px solid #FF9800 !important;
  background: #FF9800 !important;
  color: #000 !important;
}

.card-tipo-aniversario .post-body-content,
.card-tipo-aniversario .d-flex {
  color: #000 !important;
}

.card-tipo-aniversario .badge-categoria {
  background: #FF9800;
  color: #fff;
}

/* ✨ NASCIMENTO: Estilo Suave/Bebê */
.card-tipo-nascimento {
  border: 4px solid #4FC3F7 !important;
  background: #4FC3F7 !important;
  color: #000 !important;
}

.card-tipo-nascimento .post-body-content,
.card-tipo-nascimento .d-flex {
  color: #000 !important;
}

.card-tipo-nascimento .badge-categoria {
  background: #4FC3F7;
  color: #000;
}

/* 💍 CASAMENTO: Estilo Elegante/Dourado */
.card-tipo-casamento {
  border: 4px solid #FFD700 !important;
  background: #FFD700 !important;
  color: #000 !important;
}

.card-tipo-casamento .post-body-content,
.card-tipo-casamento .d-flex {
  color: #000 !important;
}

.card-tipo-casamento .badge-categoria {
  background: #FFD700;
  color: #000;
}

/* 🕊️ FALECIMENTO: Estilo Respeitoso/Sóbrio */
.card-tipo-falecimento {
  border: 4px solid #78909C !important;
  background: #78909C !important;
  color: #fff !important;
}

.card-tipo-falecimento .post-body-content,
.card-tipo-falecimento .d-flex {
  color: #fff !important;
}

.card-tipo-falecimento .badge-categoria {
  background: #78909C;
  color: #fff;
}

/* Badge de Identificação no Topo do Card */
.badge-categoria {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  margin-bottom: 10px;
  letter-spacing: 0.5px;
}

/* Estilo unificado para os botões de ação do card */
.post-item .btn-visual-padrao {
  width: 100%;
  height: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background-color: #f0f2f5 !important;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  color: #555;
  transition: background 0.2s, color 0.2s;
}

.post-item .btn-visual-padrao i {
  font-size: 16px;
}

/* Estado de curtido deve ser global para não haver delay */
.post-item .btn-visual-padrao.curtido {
  color: #2196f3 !important;
  background-color: #e3f2fd !important;
}

/* Garantir que os estilos dos cards de notas sejam aplicados em todas as telas */
@media (min-width: 769px) {
  .card-tipo-aniversario {
    border: 4px solid #FF9800 !important;
    background: #FF9800 !important;
    color: #000 !important;
  }
  
  .card-tipo-nascimento {
    border: 4px solid #4FC3F7 !important;
    background: #4FC3F7 !important;
    color: #000 !important;
  }
  
  .card-tipo-casamento {
    border: 4px solid #FFD700 !important;
    background: #FFD700 !important;
    color: #000 !important;
  }
  
  .card-tipo-falecimento {
    border: 4px solid #78909C !important;
    background: #78909C !important;
    color: #fff !important;
  }
}

/* ====================================== */
/* CORREÇÕES PARA MODAIS CORTADOS */
/* ====================================== */

/* Correção para modais cortados - VOLTANDO AO PADRÃO BOOTSTRAP */
/* Remover overflow-x que pode cortar conteúdo */
.modal.show .modal-dialog {
    overflow-x: visible !important;
}

/* Garantir que conteúdo do modal não seja cortado */
.modal-open .modal {
    overflow-x: hidden;
    overflow-y: auto;
}

/* Estilos específicos para modal de stories (fullscreen) */
.stories-viewer-modal .modal-dialog.modal-fullscreen {
    max-height: 100vh !important;
}

.stories-viewer-modal .modal-content {
    max-height: 100vh !important;
    background: #000 !important;
}

.stories-viewer-modal .modal-body {
    max-height: calc(100vh - 60px) !important;
}

/* Estilos para modal de plano sidebar */
#modalPlanoSidebar .modal-dialog {
    max-height: 80vh !important;
}

#modalPlanoSidebar .modal-content {
    max-height: 80vh !important;
}

#modalPlanoSidebar .modal-body {
    max-height: 60vh !important;
}

/* ====================================== */
/* ESTILOS ESPECÍFICOS PARA MODAIS DE PUBLICAÇÃO */
/* ====================================== */

/* Ajustar tamanho dos inputs e botões para caber melhor */
#modalViagem input,
#modalViagem textarea,
#modalViagem select,
#modalFesta input,
#modalFesta textarea,
#modalFesta select,
#modalHospedagem input,
#modalHospedagem textarea,
#modalHospedagem select {
    font-size: 0.9rem !important;
    padding: 8px 12px !important;
    margin-bottom: 8px !important;
}

/* Ajustar botões dos modais de publicação */
#modalViagem .modal-footer button,
#modalFesta .modal-footer button,
#modalHospedagem .modal-footer button {
    padding: 8px 16px !important;
    font-size: 0.9rem !important;
    min-height: 40px !important;
}

/* Reduzir tamanho dos labels */
.input-label-bold {
    font-size: 0.85rem !important;
    margin-bottom: 4px !important;
}

/* Ajustar espaçamento entre elementos */
.row.g-2.mb-3 {
    margin-bottom: 12px !important;
}

/* Para mobile - ajustes adicionais */
@media (max-width: 768px) {
    #modalViagem input,
    #modalViagem textarea,
    #modalViagem select,
    #modalFesta input,
    #modalFesta textarea,
    #modalFesta select,
    #modalHospedagem input,
    #modalHospedagem textarea,
    #modalHospedagem select {
        font-size: 0.85rem !important;
        padding: 6px 10px !important;
        margin-bottom: 6px !important;
    }
    
    .input-label-bold {
        font-size: 0.8rem !important;
    }
}
