body {
  font-family: Arial;
  background-color: #e5ddd5; /* cor de fundo estilo WhatsApp */ /* #ece5dd; */
  margin:0;
  padding-bottom:70px; /* espaço para o rodapé */
  font-size: 18px;
}

/* Header com botão Voltar alinhado à esquerda */
header {
  background-color: #075e54;
  color: white;
  padding: 10px;
  text-align: center;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center; /* centraliza o nome do grupo */
  position: relative;
}

main {
  padding: 10px;
  margin-bottom: 80px; /* evita sobreposição com rodapé */
  font-size: 18px;
}

button {
  font-size: 15px;
}

/* Mensagens e grupos */
.grupo, .mensagem {
  background: #fff;
  margin: 10px;
  padding: 10px;
  border-radius: 8px;
  position: relative; /* necessário para posicionar o botão excluir */
}

.hora {
	font-size: 14px;
	color: #000000;
	text-align: left;
	margin-bottom: 30px;
}

.status {
	font-size: 16px; /* igual ao texto das mensagens */
	color: green;
}

/* Botões Apresentar e Parar mais suaves */
.botoes button {
  padding: 6px 12px;
  border-radius: 12px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  border: 1px solid #ccc;
}

/* Apresentar */
.botoes button:nth-child(1) {
  background-color: transparent;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.botoes button:nth-child(1):hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

/* Botão excluir em mensagens */
.mensagem .excluir {
  position: absolute;
  top: 0px;
  right: 0px;
}

.mensagem .excluir .delete {
  background-color: #ffffff;   /* vermelho suave #ffebee */
  color: #ff0000; /* vermelho #c62828 */
  border: 0px solid #ccc; /* vermelho #ffcdd2 */
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  line-height: 1;
  transition: background-color 0.3s, transform 0.2s;
}

.mensagem .excluir .delete:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

/* Rodapé */
.rodape {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ccc;
  padding: 15px 20px;   /* mais espaço interno */
  box-sizing: border-box;
  min-height: 90px;     /* altura mínima maior */
}


.formMensagem, .novo-grupo-form {
  display:flex;
  align-items:center;
  gap:5px;
  width: 100%;
}

/* Modal invisível por padrão */
.modal {
  display: none;
  position: fixed;
  top:0; left:0;
  width:100%; height:100%;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background:#fff;
  padding:6px;
  border-radius:8px;
  width: 98%;        /* ocupa toda a largura disponível */
  max-width: 800px;   /* limite máximo para não ficar gigante */
  position: relative;
}


.close {
  position: absolute;
  top:5px; right:10px;
  font-size: 20px;
  cursor: pointer;
}

/* Lista de grupos */
.lista-grupos {
  padding: 10px;
  margin-bottom: 80px;
}

.grupo-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  padding: 12px;
  margin-bottom: 1px;
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
  position: relative;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5); /* sombra */
}

.grupo-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.grupo-icone {
  font-size: 20px;
}

/* .grupo-nome {
  font-size: 16px;
  color: #075e54;
  text-decoration: none;
  font-weight: bold;
}

.grupo-nome:hover {
  text-decoration: underline;
}
*/

div {
  font-size: 18px;
}

/* Enviar compactos no rodapé */
.formMensagem button[type="button"].btn-busca {
  color: #000;
  border: none;
  padding: 0px;
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
  width: 45px;
  height: 45px;
  background-color:#128c7e;
  color:white;
}

/* Botão Voltar no header */
.btn-voltar-header {
  background-color: #fff;
  color: #000;
  border: none;
  padding: 6px 12px;
  border-radius: 16px;
  font-size: 15px;
  cursor: pointer;
}

.btn-voltar-header:hover {
  background-color: #f0f0f0;
}

/* Botão Alterar */
.btn-alterar {
  background-color: #e0f7fa;   /* azul claro */
  color: #00695c;              /* verde suave */
  border: 1px solid #b2dfdb;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-alterar:hover {
  background-color: #b2ebf2;
  transform: scale(1.05);
}

/* Botão Salvar (✅) */
.btn-salvar {
  background-color: #c8e6c9;   /* verde claro */
  color: #2e7d32;              /* verde escuro */
  border: 1px solid #a5d6a7;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-salvar:hover {
  background-color: #a5d6a7;
  transform: scale(1.05);
}

/* Botão Cancelar (❌) */
.btn-cancelar {
  background-color: #ffebee;   /* vermelho claro */
  color: #c62828;              /* vermelho escuro */
  border: 1px solid #ffcdd2;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 16px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-cancelar:hover {
  background-color: #ffcdd2;
  transform: scale(1.05);
}

/* Formulário de edição do grupo */
.form-edicao {
  display: none;       /* escondido por padrão */
  margin-top: 8px;     /* espaço abaixo do card */
  margin-left: 60px;   /* desloca para a esquerda, evitando sobreposição */
}

/* Modal de edição */
.modal-edicao {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  height: auto;
  background: rgba(0,0,0,0.4);
  align-items: flex-end;
  justify-content: center;
  animation: slideUp 0.4s ease-out;
}

.modal-edicao-content {
  background: #fff;
  padding: 20px;
  border-radius: 12px 12px 0 0;
  width: 100%;
  max-width: 800px;   /* limite máximo */
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
}


@keyframes slideUp {
  from { transform: translateY(100%); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.campo-edicao {
  width: 100%;
  font-size: 16px;
  padding: 6px;
  margin-bottom: 10px;
}

.acoes-edicao {
  display: flex;
  justify-content: flex-end; /* alinhados à direita */
  gap: 10px;                 /* espaço entre Cancelar e Confirmar */
}

#modalExcluir .modal-edicao-content {
  text-align: left;
}

/* Botão Alterar em mensagens */
.mensagem .botoes .btn-alterar {
  background-color: transparent; /* fundo transparente */
  color: #000;                   /* texto preto */
  border: 1px solid #ccc;        /* borda leve */
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 15px;               /* igual aos botões Apresentar/Parar */
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.mensagem .botoes .btn-alterar:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

/* Botão Mover em mensagens (igual ao Alterar) */
.mensagem .botoes .btn-mover {
  background-color: #ffffff;    /* fundo branco */
  color: #000;                	/* texto preto */
  border: 0px solid #ccc;       /* borda leve */
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 15px;              /* igual aos botões Apresentar/Parar */
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.mensagem .botoes .btn-mover:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

/* Botão Mais */
.btn-mais {
  background-color: #ffffff;
  color: #2e7d32;
  border: 1px solid #ccc;
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-mais:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}


/* Inputs e textarea */
input, textarea {
  font-size: 20px;  
  border-radius: 8px;
  padding: 5px;
  border: 1px solid #ccc;
}

/* todos os textarea */
textarea {
  font-size: 20px;
  width: 100%;
  height: 50px; /* padrão */
}

/* ✅ Campo PESQUISAR da página letras.php */
#textoPesquisa, #texto {
  font-size: 20px;      /* tamanho da letra */
  line-height: 1.4;     /* melhora leitura */
  padding: 10px;        /* mais confortável para toque */
  height: auto;         /* evita ficar muito baixo */
  min-height: 48px;     /* altura mínima estilo WhatsApp */
}

/* ✅ Campos grandes (edição de letra e bíblia) */
body.pagina-modal #LetraDaMusica {
  font-size: 20px;
  line-height: 1.5;
  font-family: "Courier New", Courier, monospace;
  white-space: pre-wrap;
  width: 100%;
  box-sizing: border-box;
}

/* ✅ Campos de título/autor */
body.pagina-modal #NomeDaMusica,
body.pagina-modal #NomeDoAutor {
  font-size: 20px;
}

.botoes {
  display: flex;
  align-items: center;
  gap: 8px; /* espaço entre ícone e botões */
}


.btn-busca {
  display: flex;
  flex-direction: column;   /* ícone em cima, texto embaixo */
  align-items: center;
  justify-content: flex-start; /* empurra conteúdo para cima */
  background-color: #075e54;   /* mesma cor do header */
  color: white;
  border: none;
  border-radius: 12px;
  width: 60px;
  height: 70px;             /* aumenta altura para dar espaço */
  font-size: 12px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.btn-busca i {
  font-size: 25px;
  margin-bottom: 4px;       /* espaço extra entre ícone e texto */
}

.btn-busca span {
  margin-top: auto;         /* garante que o texto não encoste na borda */
}

.linha-submensagem {
  display: flex;
  align-items: center;
  gap: 8px;
}
.linha-submensagem .mensagem-texto {
  flex: 1;
  cursor: default !important; /* força o cursor padrão */
}

.btn-copiar {
  background: #ffffff;
  border: none;
  cursor: pointer;
  color: #333;
}
.btn-copiar:hover {
  background-color: #f0f0f0;
  color: #000;
}

.sub-card .mensagem-texto {
  background-color: rgba(255,255,255,1); /* branco sólido */
  padding: 4px;
  border-radius: 4px;
}

/* Página MENSAGEM */
.sub-card-mensagem {
  margin: 10px;
  margin-left: 30px;           /* indentação para diferenciar */
  border-left: 3px solid #2e7d32; /* linha amarela mais forte à esquerda */
  padding: 4px;
  border-radius: 4px;
  display: none;
}

/* Página MENSAGENS */
.mensagem {
  background-color: #fff;
  margin: 5px;
  margin-bottom: 20px;
  padding: 10px;
  border-radius: 8px;
  position: relative;
  padding-top: 33px;
  padding-bottom: 31px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.5); /* sombra suave */
  font-size: 10px;      /* ✅ padrão geral */
  line-height: 1.5;    /* ✅ melhora leitura */
}

/* Submensagens com estilo de anotação */
.mensagem.submensagem {
  background-color: #ffffff;   /* amarelo claro, suave (post-it) */
  margin-left: 30px;           /* indentação para diferenciar */
  border-left: 3px solid #fbc02d; /* linha amarela mais forte à esquerda */
  font-size: 18px;             /* um pouco menor que a mensagem principal */
  padding: 8px;
  border-radius: 6px;          /* cantos levemente arredondados */
  font-size: 20px;     /* ✅ mantém igual */
  line-height: 1.5;    /* ✅ melhora leitura */
}

/* Página SUBMENSAGEM */
.sub-card {
  margin: 1px;
  padding: 0px;
  border-radius: 8px;
}

.btn-apresentar {
  background-color: #fff;   /* fundo branco */
  color: #000;              /* texto preto */
  border: 1px solid #ccc;   /* borda leve para destacar */
  padding: 6px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.btn-stop {
  background-color: #fff;   /* fundo branco */
  color: #000;              /* texto preto */
  border: 1px solid #ccc;   /* borda leve para destacar */
  padding: 6px 12px;
  border-radius: 50%;
  cursor: pointer;
  transition: background 0.3s, box-shadow 0.3s;
}

.btn-toggle-sub {
  background-color: btn-toggle-sub;   /* era fundo branco #ffffff */
  color: #000;                 /* texto preto */
  border: 0px solid #ccc;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  position: absolute;
  bottom: 0px;
  right: 0px;
}

.btn-toggle-sub:hover {
  background-color: transparent; /* #f0f0f0 */
  transform: scale(1.05);
}

.btn-toggle-sub-dados {
  background-color: #ffffff;   /* fundo branco */
  color: #000;                 /* texto preto */
  border: 0px solid #ccc;
  border-radius: 10px;
  padding: 6px 12px;
  font-size: 15px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  position: absolute;
  bottom: 0px;
  right: -100px;
}
.btn-toggle-sub-dados:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}

.btn-arquivo {
  background-color: transparent !important; /* fundo transparente */
  color: #000 !important;                   /* cor do ícone/texto */
  border: 1px solid #ccc !important;
  border-radius: 50%;
  padding: 6px 12px;
  font-size: 30px;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
  width: 45px;
  height: 45px;
}
.btn-arquivo:hover {
  background-color: #f0f0f0;
  transform: scale(1.05);
}


/* Checkbox customizado */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 28px;
  height: 28px;
  border: 2px solid #075e54;
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: inherit; /* garante herança da cor */
}
/* Estado desmarcado: ? cinza claro */
input[type="checkbox"]::after {
  content: "?";
  color: #ccc;
  font-size: 14px;
}
/* Estado marcado: fundo verde e X branco */
input[type="checkbox"]:checked {
  background-color: #075e54;
  border-color: #075e54;
  color: #fff; /* força branco dentro */
}
input[type="checkbox"]:checked::after {
  content: "X";
  color: #fff !important; /* força branco mesmo no Safari/iOS */
  font-size: 14px;
}

.badge {
  display: inline-block;
  background-color: #075e54; /* verde escuro do header */
  color: #fff;
  border-radius: 50%;
  padding: 6px 10px;
  font-size: 14px;
  font-weight: bold;
  margin-left: 8px;
  text-align: center;
  xmin-width: 24px;
}


.menu-container {
  position: relative;
  display: inline-block;
}
/* ✅ Botões do menu do card (editar, imagem, mover, etc) */
.menu-container .btn {
  padding: 6px 10px;        /* aumenta o tamanho do botão */
  font-size: 14px;          /* aumenta o ícone */
  border-radius: 10px;      /* mantém seu padrão arredondado */
}
/* ✅ Ícone dentro do botão */
.menu-container .btn i {
  font-size: 22px;          /* deixa o ícone maior */
}

.btn-menu {
  background: #444;
  color: #fff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-menu:hover {
  background: #666;
}
.menu-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: none;
  flex-direction: column;
  overflow: hidden;
  animation: slideDown 0.3s ease forwards;
  z-index: 1; /* garante que fique acima de tudo, exceto da telas modais */
}
.menu-dropdown button {
  background: #fff;
  border: none;
  padding: 10px 16px;
  text-align: left;
  cursor: pointer;
  transition: background 0.2s;
  color: #000;
  width: 210px; /* largura do menu */
}
.menu-dropdown button:hover {
  background: #f0f0f0;
}
@keyframes slideDown {
  from {opacity: 0; transform: translateY(-10px);}
  to {opacity: 1; transform: translateY(0);}
}
/* estilo diferenciado para o botão Fechar */
.btn-fechar-menu {
  font-weight: bold;
  color: #d00; /* vermelho para destacar */
}
.btn-fechar-menu:hover {
  background: #ffe5e5;
}


.mensagem.apresentando {
  border: 2px solid green;   /* borda verde */
  border-radius: 6px;        /* opcional: arredondar */
}
.mensagem.sub-card-mensagem.apresentando {
  border: 2px solid green;   /* borda verde mais grossa */
  border-radius: 6px;        /* opcional: arredondar */
}

.btn-apresentar.ativo {
  background-color: #a7e6d7; /* verde azulado claro */
  color: #000;
  border: 1px solid #5bb5a2;
}

/* Botão X no topo direito */
.modal-close {
  position: absolute;
  top: 10px;
  right: 15px;
  background: transparent;
  border: none;
  font-size: 22px;
  cursor: pointer;
}

.card-ativo {
  border: 3px solid #28a745; /* verde Bootstrap */
  box-shadow: 0 0 10px rgba(40,167,69,0.5);
}
.btn-ativo {
  background-color: #28a745;
  color: #fff;
}

#mensagemTextoEdicao {
  height: 200px; /* ajuste para caberem 8 linhas */
  font-size: 20px;
  ZZZbackground-color: #fff9c4;     /* ✅ amarelo post-it */
}


/* Container do botão toggle dividido */
.toggle-container {
  display: inline-flex;
  border: 0px solid #333;
  border-radius: 10px;
  overflow: hidden;
}
/* Cada lado do botão toggle */
.toggle-side {
  padding: 0px 10px;
  font-size: 16px;
  cursor: pointer;
  flex: 1;
  border: none;
  outline: none;
  transition: background-color 0.9s, color 0.9s;
}
/* Estado desligado do botão toggle */
.off {
  background-color: #f0f0f0;
  color: #333;
}
/* Estado ligado do botão toggle */
.on {
  background-color: #4CAF50;
  color: white;
}
.botoes-flex {
  display: flex;
  align-items: center;
}
/* Botões Telão/TV não mudam ao passar o mouse */
.toggle-side.on:hover {
  background-color: #4CAF50; /* mesma cor do estado ligado */
  color: white;
}

.toggle-side.off:hover {
  background-color: #f0f0f0; /* mesma cor do estado desligado */
  color: #333;
}

/* FORÇA: qualquer coisa dentro da modal de letra herda fonte maior - aba Letra da Música */
#modalAnexarMensagem #anexar-anotacoes,
#modalAnexarMensagem #anexar-anotacoes * {
  font-size: 20px !important;
  line-height: 1.35 !important;
}

.card .card-title {
  font-size: 20px; /* ajuste do tamanho da letra das submensgens */
}

@media (max-width: 576px) {
  .modal-dialog {
    margin: 0.25rem; /* diminui margem lateral */
  }
  .card-body {
    padding-left: 0.25rem;
    padding-right: 0.25rem;
  }
}

#novaMensagem, #pesquisaBiblia, #pesquisaLetra {
  font-size: 20px;
}


/* Aumenta o tamanho do texto dos resultados da Bíblia e Letras */
#resultadoBiblia .list-group-item,
#resultadoLetra .list-group-item {
  font-size: 20px;
  line-height: 1.4;
}

/* Página com aparência de modal */
body.pagina-modal {
  background-color: #fff;          /* mesmo branco da modal */
  min-height: 100vh;
}

/* Header como cabeçalho de modal */
body.pagina-modal header {
  background-color: #fff;
  border-bottom: 1px solid #dee2e6;
  color: #212529; /* ✅ cor padrão de texto do Bootstrap */
  position: sticky;
  top: 0;
  z-index: 1050;
}

/* Remove qualquer sombra/fundo estranho do main */
body.pagina-modal main {
  background-color: #fff;
}

/* Opcional: centraliza e limita largura para “sensação de diálogo” */
body.pagina-modal main.container {
  max-width: 1140px;
}

/* Botões no estilo de modal Bootstrap */
body.pagina-modal .btn-modal-like {
  background-color: #fff;
  color: #212529;               /* texto padrão Bootstrap */
  border: 1px solid #ced4da;    /* borda fina */
  font-weight: 500;
}

/* Hover igual ao do Bootstrap */
body.pagina-modal .btn-modal-like:hover {
  background-color: #f8f9fa;    /* cinza muito claro */
  color: #212529;
  border-color: #adb5bd;
}

/* Remove aparência “verde” ativa */
body.pagina-modal .btn-modal-like:focus,
body.pagina-modal .btn-modal-like:active {
  box-shadow: none;
}

/* Borda grossa simulando janela/modal */
body.pagina-modal::before {
  content: "";
  position: fixed;
  inset: 0;                     /* top, right, bottom, left = 0 */
  border: 8px solid #495057;    /* cinza escuro Bootstrap */
  pointer-events: none;         /* não interfere em cliques */
  z-index: 1100;                /* acima do conteúdo */
  box-sizing: border-box;
  border-radius: 6px;
}



/* Linha da estrofe */
.estrofe-linha {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

/* Texto da estrofe */
.estrofe-texto {
  flex: 1;
  font-size: 20px;
  line-height: 1.4;
  white-space: pre-line;
}

/* Botões à direita */
/* Botões da estrofe (Play em cima, Stop embaixo) */
.estrofe-botoes {
  display: flex;
  flex-direction: column;   /* ✅ empilha verticalmente */
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

/* Destaque suave entre estrofes */
/* =========================
   Letras – Estrofes compactas (card limpo)
   ========================= */
.sub-card.estrofe {
  background-color: #ffffff;
  border-radius: 6px;

  /* ✅ compacto: nada de espaço vertical */
  margin: 0;
  padding: 0px 10px;

  /* ✅ sombra discreta, estilo mensagens.php */
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);

  /* ✅ identidade visual */
  border-left: 4px solid #28a745;
}

.estrofe-texto:hover {
  background: rgba(0,0,0,0.03);
}




.botoes .btn {
  margin-right: 4px;
}



/* ===========================
   MODO MOVER (cards compactos)
   =========================== */
#mensagensLista .mover-bar { display: none; }              /* escondido por padrão */

#mensagensLista .drag-handle {
  display: inline-block;
  cursor: grab;
  user-select: none;
  font-size: 18px;
  line-height: 1;
}


#mensagensLista.modo-mover .mensagem {
  display: grid !important;
  grid-template-columns: 1fr auto;   /* texto | botão */
  grid-template-rows: auto auto;
  gap: 4px 10px;
  align-items: start;
  margin-top: 5px !important;
  margin-bottom: 5px !important;
  padding-top: 1px !important;
  padding-bottom: 1px !important;
  box-shadow: none !important;
}

/* Área do botão mover (coluna direita) */
#mensagensLista.modo-mover .mover-bar {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: flex !important;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  padding: 0;
  gap: 6px;
}

/* 1) Esconde tudo que deixa o card alto */
#mensagensLista.modo-mover .mensagem .hora,
#mensagensLista.modo-mover .mensagem img,
#mensagensLista.modo-mover .mensagem video,
#mensagensLista.modo-mover .mensagem .menu-container,
#mensagensLista.modo-mover .mensagem .btn-toggle-sub,
#mensagensLista.modo-mover .mensagem .toggle-container {
  display: none !important;
}

/* ✅ EXCEÇÃO: no modo mover, cards de IMAGEM mostram uma miniatura no topo */
#mensagensLista.modo-mover .mensagem.card-imagens img {
  display: block !important;      /* vence o display:none do modo mover */
  width: 100% !important;
  height: 60px !important;        /* ajuste a altura do “pedaço” aqui */
  object-fit: cover !important;   /* corta e preenche (mostra um pedaço) */
  border-radius: 6px !important;
  margin: 0 0 6px 0 !important;
}

/* 2) Deixa só 1 linha do texto (com ...) */
#mensagensLista.modo-mover .mensagem .mensagem-texto.js-card-click {
  grid-column: 1;
  grid-row: 1 / span 2;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  line-height: 1.3 !important;
  padding: 2px 0 !important;
}


/* 3) Se você tem um <div class='mensagem-texto'> dentro do outro,
      força o interno a não quebrar linha também */
#mensagensLista.modo-mover .mensagem .mensagem-texto.js-card-click .mensagem-texto {
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* feedback visual durante o arraste */
#mensagensLista.modo-mover .mensagem.dragging {
  opacity: 0.55;
}

/* Remove qualquer margem interna do texto renderizado */
#mensagensLista.modo-mover
  .mensagem
  .mensagem-texto.js-card-click
  .mensagem-texto {
  margin: 0 !important;
  padding: 0 !important;
}

/* ==========================
   Animação do ícone de arrastar
   ========================== */
@keyframes swing-move {
  0%   { transform: rotate(0deg); }
  20%  { transform: rotate(-10deg); }
  40%  { transform: rotate(10deg); }
  60%  { transform: rotate(-8deg); }
  80%  { transform: rotate(8deg); }
  100% { transform: rotate(0deg); }
}
/* Aplica a animação SOMENTE no modo mover */
/* Ícone ☰ */
#mensagensLista.modo-mover .drag-handle {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 30px;          /* ✅ área mínima ideal para toque */
  height: 30px;
  font-size: 26px;      /* ✅ aumenta o ☰ */
  line-height: 1;
  animation: swing-move 1.8s ease-in-out infinite;
  transform-origin: center center;
  cursor: grab;
  border-radius: 8px;
  background: #198754; /* ✅ melhora feedback visual #eaeaea */
  color: #ffffff;
}

#mensagensLista.modo-mover .mensagem.dragging .drag-handle {
  animation: none;
}

.drag-handle {
  touch-action: none; /* Evita que o Safari interprete como scroll */
}


/* Texto "Arraste" abaixo do ícone */
#mensagensLista.modo-mover .mover-label {
  font-size: 14px;
  line-height: 1;
  text-align: center;
  cursor: grab;
}



.linha-letra {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.texto-letra {
  flex: 1;
  cursor: pointer;
}

.controles-letra {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 42px;
}


.card-letras {
  background-color: #dff5e8; /* #dff5e8 */
}
.card-imagens {
  background-color: #BBBBBB;
}
.card-nota {
  background-color: #fff9c4;
}
/* Botões do header do mensagens.php */
.header-btn-fixo {
  width: 85px;          /* ajuste fino aqui se quiser */
  text-align: left;     /* mantém ícone + texto alinhados */
  white-space: nowrap; /* evita quebra */
  border-width: 1px;
  border-color: #dddddd;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.2);
  color: black; /* #075e54 verde escuro do header */
  font-size: 20px;
  line-height: 1.1;
}
.header-btn-fixo-biblia {
  background: #ffffff;
}
.header-btn-fixo-letras {
  background: #dff5e8; /* #dff5e8 */
}
.header-btn-fixo-nota {
  background: #fff9c4; /* post-it amarelo suave clássico */
}
.header-btn-fixo-imagens {
  background: #BBBBBB;
}


/* ✅ Fonte 20px apenas na modal de Letra */
#modalCriaNovaLetra input,
#modalCriaNovaLetra textarea,
#modalCriaNovaLetra select {
  font-size: 18px !important;
}

#modalCriaNovaLetra .modal-body {
    padding: 0 !important;
}

#capitulosBiblia {
  display: none;
  gap: 10px;
  padding: 1px;
  background: #ffffff;
  border-radius: 12px;

  /* ✅ layout em grade automática */
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(40px, 1fr));
}

/* botão de capítulo */
.biblia_capitulos {
  display: flex;
  justify-content: center;
  align-items: center;

  text-decoration: none;
  font-weight: bold;
  font-size: 18px;

  color: #fff;
  background: linear-gradient(145deg, #4caf50, #2e7d32);

  border-radius: 12px;
  height: 30px;

  transition: all 0.2s ease;
  box-shadow: 0 3px 6px rgba(0,0,0,0.4);
}

/* hover (mouse ou toque) */
.biblia_capitulos:hover {
  transform: scale(1.05);
  background: linear-gradient(145deg, #66bb6a, #388e3c);
  color: #000;
}

/* clique */
.biblia_capitulos:active {
  transform: scale(0.95);
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* foco teclado/acessibilidade */
.biblia_capitulos:focus {
  outline: 2px solid #fff;
}

/* opcional: capítulo ativo */
.biblia_capitulos.ativo {
  background: linear-gradient(145deg, #ff9800, #f57c00);
}




.biblia-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Card do grupo */
.biblia-grupo {
  background: #f8f9fa;
  border-radius: 16px;
  padding: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}

/* ✅ Títulos dos grupos da Bíblia */
.titulo-grupo {
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 18px;       /* 🔥 maior */
}

/* ✅ Botões dos livros */
/* Botões estilo "pill" */
.livros button {
  border: none;
  background: #e0e0e0;
  color: #333;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 18px;
  transition: 0.2s;
}

/* Hover */
.livros button:hover {
  background: #198754;
  color: white;
}

/* Ativo ao clicar */
.livros button:active {
  transform: scale(0.95);
}

.livros {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* cores suaves nos botões */
.grupo-pentateuco .livros button       { background: #e9e9e9; }
.grupo-historicos .livros button       { background: #ffe0e0; }
.grupo-poeticos .livros button         { background: #ffeaea; }
.grupo-profetas-maiores .livros button { background: #efe3f7; }
.grupo-profetas-menores .livros button { background: #f5e6fa; }

.grupo-evangelhos .livros button       { background: #e3edff; }
.grupo-atos .livros button             { background: #dde8ff; }
.grupo-paulo .livros button            { background: #e4f5e4; }
.grupo-gerais .livros button           { background: #e9f9e9; }
.grupo-apocalipse .livros button       { background: #e0ffe0; }

/* INÍCIO - CIFRAS ESTILO CIFRACLUB / WORSHIP */

/* ✅ Cabeçalho da música */
.card-header {
  margin-top: 20px;
  margin-bottom: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #eeeeee;
}

/* ✅ Corpo da música */
.card-body {
  padding: 1px 1px;
  border-radius: 12px;
  background-color: #f9f9f9;
}

/* ✅ Cada estrofe */
.sub-card.estrofe {
  padding: 6px 10px;
  margin-bottom: 10px;
  border-radius: 12px;
  background-color: rgba(255,255,255,0.03);
  transition: all 0.25s ease;
}

.sub-card.estrofe:hover {
  background-color: rgba(255,255,255,0.05);
}

/* ✅ Linha principal do card */
.linha-letra {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

/* ✅ Container do texto */
.texto-letra {
  flex: 1;
  min-width: 0;
  overflow-x: auto;              /* mantém alinhamento em telas pequenas */
  padding: 2px 0;
  cursor: pointer;
}

/* ✅ Scroll discreto horizontal */
.texto-letra::-webkit-scrollbar {
  height: 6px;
}

.texto-letra::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.18);
  border-radius: 999px;
}

/* ✅ Estilo base das linhas */
.linha-cifra-destaque,
.linha-cifra-letra,
.linha-cifra-vazia {
  font-family: "Courier New", Courier, monospace;
  font-size: 18px !important;
  line-height: 1.0;
  letter-spacing: 0;
  white-space: pre-wrap;   /* ✅ permite quebrar mantendo espaços */
  word-break: break-word;  /* ✅ evita overflow */
  margin: 0;
  padding: 0;
}

/* ✅ Linha de cifra - estilo Worship / CifraClub */
.linha-cifra-destaque {
  color: #2e7d32; /* verde escuro padrão de todas páginas (melhor no fundo claro) */
  font-weight: 700;
  background: rgba(255, 215, 0, 0.08);
  border-left: 4px solid rgba(184, 217, 102, 0.6);
  padding: 2px 8px 2px 5px;
  margin: 0 0 1px 0;
  border-radius: 8px;
  text-shadow: 0 0 1px rgba(0,0,0,0.35);
}

/* ✅ Linha da letra */
.linha-cifra-letra {
  color: #000; /* ✅ preto */
  font-weight: 400;
  padding: 1px 10px;
  margin: 0 0 2px 0;
}

/* ✅ Linha vazia entre blocos */
.linha-cifra-vazia {
  height: 10px;
}

/* ✅ Botões play/stop */
.controles-letra {
  margin-left: 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ✅ Destaque ativo */
.sub-card.card-ativo {
  background-color: rgba(0, 255, 0, 0.08);
  border-radius: 12px;
}

/* ✅ Em telas menores, reduz um pouco sem perder alinhamento */
@media (max-width: 768px) {
  .linha-cifra-destaque,
  .linha-cifra-letra,
  .linha-cifra-vazia {
    font-size: 16px;
  }

  .sub-card.estrofe {
    padding: 1px 2px;
  }

  .card-body {
    padding: 0px;
  }
}

/* FIM - CIFRAS ESTILO CIFRACLUB / WORSHIP */

/* INÍCIO - MODO AUTOMÁTICO CIFRAS */
#autoListaCifra .estrofe-auto {
	border: 1px solid #ddd;
	border-radius: 14px;
	padding: 12px;
	margin-bottom: 12px;
	background: #fff;
	transition: all .2s ease;
}

#autoListaCifra .estrofe-auto.ativa {
	border: 3px solid #198754;
	background: #eefaf2;
	box-shadow: 0 0 0 4px rgba(25,135,84,.10);
}

#autoListaCifra .linha-cifra-destaque {
	font-weight: 700;
	color: #0d6efd;
	white-space: pre-wrap;
	font-family: monospace;
}

#autoListaCifra .linha-cifra-letra {
	white-space: pre-wrap;
}

#autoListaCifra .linha-cifra-vazia {
	height: 12px;
}
/* FIM - MODO AUTOMÁTICO CIFRAS */

/* INÍCIO - FAIXA DE TOM - UMA LINHA SÓ */
.faixa-tom-manual-inner {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px; /* ✅ reduz espaço */
  min-width: max-content;
  white-space: nowrap;
}

.tom-select-inline {
  width: 72px;     /* ✅ reduz bastante */
  min-width: 72px;
  font-size: 18px;
  padding: 2px 4px;
}

.tom-pill .valor {
  font-size: 20px; /* ✅ menor */
  font-weight: bold;
}

/* FIM - FAIXA DE TOM - UMA LINHA SÓ */

/* =======================================
   INÍCIO - ABAS MODO MANUAL / AUTOMÁTICO
   ======================================= */
#abasCifras {
    margin-bottom: 15px;
}

#abasCifras .nav-link {
    font-size: 18px;
    font-weight: bold;
    padding: 8px;
    border-radius: 16px 16px 0 0;
    border: 3px solid #ccc;
    background: #f5f5f5;
    color: #333;
    transition: all .2s ease;
}

#abasCifras .nav-link:hover {
    transform: scale(1.03);
}

#tab-manual {
    background: #e8f5e9;
    color: #2e7d32;
}

#tab-automatico {
    background: #fff3cd;
    color: #b26a00;
}

#abasCifras .nav-link.active {
    font-size: 22px;
    box-shadow: 0 0 15px rgba(0,0,0,.25);
    border-width: 4px;
}
/* =======================================
   FIM - ABAS MODO MANUAL / AUTOMÁTICO
   ======================================= */

/*
   INÍCIO - FOOTER
*/
#rodape{
    position:fixed;
    left:0;
    bottom:0;
    width:100%;
    display:flex;
    justify-content:space-around;
    align-items:center;
    padding:1px 0;
    background:linear-gradient(135deg, #7b1e1e, #b71c1c);
    box-shadow:0 -5px 25px rgba(0,0,0,.15);
    z-index:9999;
}

#rodape button{
    position:relative;

    border:none !important;
    background:transparent !important;

    color:white !important;

    min-width:100px;

    font-size:18px;
    font-weight:700;

    transition:.3s;
	animation:flutuarFooter 6s ease-in-out infinite;
}

}
#rodape button:nth-child(2){
    animation-delay:.5s;
}
#rodape button:nth-child(3){
    animation-delay:1s;
}
#rodape button:hover{
    transform:translateY(-4px) scale(1.08);
    text-shadow:0 0 10px rgba(255,255,255,.6);
}
#rodape button:active{
    transform:scale(.95);
}
#rodape button span{
    display:block;
    margin-top:4px;
    font-size:20px;
    font-weight:800;
    letter-spacing:.1px;
}
@keyframes flutuarFooter{
    0%,100%{
        transform:translateY(0px);
    }

    50%{
        transform:translateY(-2px);
    }
}
.icone-footer{
    display:block;
    font-size:28px;
    margin-bottom:2px;

    animation:sairDaBarra 5s ease-in-out infinite;
}

#rodape button:nth-child(2) .icone-footer{
    animation-delay:1s;
}

#rodape button:nth-child(3) .icone-footer{
    animation-delay:2s;
}
@keyframes respirarIcone{
    0%,100%{
        transform:scale(1);
    }

    50%{
        transform:scale(1.08);
    }
}
@keyframes sairDaBarra{

    0%,100%{
        transform:translateY(0) scale(0.7);
    }

    50%{
        transform:translateY(-20px) scale(1.05);
    }

}
/*
   FIM - FOOTER
*/