:root {
  --bg: #f9f9f9;
  --text: #333;
  --primary: #5B3C88;
  --card: #fff;
  --border: #ddd;
}

/* ===== BASE ===== */
body {
  font-family: "Anek Latin", sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  padding: 16px;
  padding-bottom: 80px; /* espaço pro menu fixo */
  max-width: 800px;
  margin: auto;
}

/* ===== HEADER ===== */
header.topo {
  background: var(--primary);
  padding: 12px 0 3px 0;
  text-align: center;
  border-bottom: 3px solid #3e275e;
}

.logo-header {
  width: 160px;
  height: auto;
}

/* ===== CARDS PRINCIPAIS ===== */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 20px;
  padding: 18px;
  padding-bottom: 20px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.card h2 {
  margin-top: 0;
  color: var(--primary);
  font-size: 1.3em;
  border-bottom: 1px solid var(--border);
  padding-bottom: 6px;
  margin-bottom: 10px;
}

/* ===== LISTAS EM BULLETS ===== */
.lista-bullets {
  list-style: disc;
  padding-left: 24px;
  margin: 0;
}

.lista-bullets li {
  margin-bottom: 8px;
  line-height: 1.5;
  color: #444;
}

/* ===== MENU INFERIOR FIXO ===== */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: #fff;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 6px 0;
  box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.05);
  z-index: 100;
}

footer a {
  text-decoration: none;
  color: var(--primary);
  font-size: 0.85em;
  font-weight: 500;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  transition: 0.2s;
  text-transform: uppercase;;
}

footer a:hover,
footer a.ativo {
  color: #7c5bb8;
}

footer a img {
  width: 22px;
  height: 22px;
}

/* ===== PAINEL ADMIN ===== */
.menuAdmin {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.menuAdmin button {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
  font-family: "Anek Latin", sans-serif;
  text-transform: uppercase;
  font-size: 14px;
}

.menuAdmin button:hover {
  background: #7c5bb8;
}

.menuAdmin a {
  padding: 8px 14px;
  border: none;
  border-radius: 6px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
  font-weight: 500;
  transition: 0.2s;
  font-family: "Anek Latin", sans-serif;
  text-transform: uppercase;
  font-size: 14px;
  text-decoration: none;
}

.menuAdmin a:hover {
  background: #7c5bb8;
}

/* Área de edição */
#areaEdicao {
  margin-top: 10px;
}

.itemAdmin {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 25px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.itemAdmin input,
.itemAdmin textarea {
  padding: 8px;
  border-radius: 6px;
  border: 1px solid var(--border);
  margin-bottom: 8px;
  font-size: 0.95em;
  font-family: inherit;
  resize: vertical;
  transition: border 0.2s;
}

.itemAdmin input:focus,
.itemAdmin textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 3px rgba(91, 60, 136, 0.3);
}

.btnSalvar,
.btnEditar,
.btnExcluir {
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  color: #fff;
  cursor: pointer;
  margin-left: 4px;
  font-family: "Anek Latin", sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
}

.btnSalvar,
.btnEditar {
  background: #28a745;
}

.btnExcluir {
  background: #e74c3c;
}

#btnNovo {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  cursor: pointer;
  font-family: "Anek Latin", sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
}

#btnSalvarIrmaos {
  background: #28a745;
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 0x;
  cursor: pointer;
  font-family: "Anek Latin", sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
}

/* Login */
.login {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-top: 100px;
}

.login input {
  padding: 8px;
  width: 220px;
  border-radius: 6px;
  border: 1px solid #ccc;
}

.login button {
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 500;
}

/* ===== TELAS PEQUENAS ===== */
@media (max-width: 768px) {
  main {
    padding: 20px;
    padding-bottom: 55px;
  }

  .logo-header {
    width: 140px;
  }

  footer {
    font-size: 0.8em;
    padding: 8px 0;
  }
}

/* ===== BULLETS PERSONALIZADOS ===== */
.lista-bullets {
  list-style: none;
  padding-left: 0;
  margin: 0;
  font-size: 17px;
}

.lista-bullets li {
  position: relative;
  padding-left: 19px;
  margin-bottom: 17px;
  line-height: 1.5;
  color: #444;
  font-size: 17px;
}

.lista-bullets li::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #7c5bb8 0%, #5b3c88 80%);
  box-shadow: 0 0 4px rgba(91, 60, 136, 0.3);
}

.campoEditavel {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 8px;
  margin-bottom: 10px;
  font-family: inherit;
  line-height: 1.5;
  font-size: 0.95em;
  background: #fff;
  overflow-y: auto;
}

.campoEditavel:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 3px rgba(91, 60, 136, 0.3);
}

/* === Correção: largura do card na página quadro === */
main:not(.conteudo-principal) .card {
  max-width: 420px; /* mesmo visual da tela inicial */
  width: 90%;
  margin: 0 auto 20px auto; /* centraliza igual à index */
  display: block;
}

/* === Navegação de semana (centralizada no card) === */
.semana-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.semana-nav .intervalo {
  font-weight: 600;
  font-size: 1.05em;
  color: var(--primary);
}

.semana-nav .seta {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--primary);
  font-size: 1em;
  padding: 4px 10px;
  cursor: pointer;
  transition: 0.2s;
}

.semana-nav .seta:hover {
  background: var(--primary);
  color: #fff;
}

/* ===== MAPAS ===== */
.lista-mapas {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.card-mapa {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fafafa;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.card-mapa:hover {
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
}

.card-mapa .mini-mapa img {
  width: 90px;
  height: 90px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.card-mapa .info-mapa {
  flex: 1;
}

.card-mapa h3 {
  font-size: 17px;
  margin: 0 0 5px 0;
  color: var(--primary);
}

.card-mapa p {
  font-size: 15px;
  color: #444;
  margin: 0;
  line-height: 1.2;
}

/* === Ao clicar, expande === */
.card-mapa.expandido {
  flex-direction: column;
  align-items: center;
  text-align: left;
}

.card-mapa.expandido .mini-mapa img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  margin-top: 10px;
  object-fit: contain;
}

.card-mapa.expandido .info-mapa {
  width: 100%;
  margin-top: 10px;
}

/* === Indicador de expansão === */
.seta-expandir {
  position: absolute;
  bottom: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  transition: transform 0.3s ease, background 0.2s;
}

.card-mapa.expandido .seta-expandir {
  transform: rotate(180deg);
}


.card-mapa {
  position: relative;
}

/* === Lightbox (imagem tela cheia) === */
.overlay-mapa {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  animation: fadeIn 0.25s ease;
}

.overlay-mapa img {
  width: 100%;
  max-width: 900px;
  border-radius: 12px;
  box-shadow: 0 0 15px rgba(0,0,0,0.6);
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ===== MANUTENÇÃO ===== */
.lista-manutencao {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Card recolhido / expandido */
.card-manutencao {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  overflow: hidden;
  position: relative; /* 🔹 necessário para fixar a seta dentro do card */
}

/* Cabeçalho (mês) */
.cabecalho-manutencao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fafafa;
  border-bottom: 1px solid var(--border);
  padding: 13px 14px;
  border-radius: 10px 10px 0 0;
  cursor: pointer;
}

.cabecalho-manutencao h3 {
  margin: 0;
  font-size: 17px;
  color: var(--primary);
  font-weight: 600;
}

/* === Indicador de expansão === */
.seta-manutencao {
  bottom: 10px;
  right: 10px;
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  transition: transform 0.3s ease, background 0.2s;
}

.card-manutencao.expandido .seta-manutencao {
  transform: rotate(180deg);
}


/* Conteúdo interno */
.conteudo-manutencao {
  display: none;
  padding: 0px 18px;
  border-top: 1px solid var(--border);
  background: #fff;
  animation: fadeIn 0.3s ease;
}

.card-manutencao.expandido .conteudo-manutencao {
  display: block;
}

/* Subtítulo (grupos de tarefas) */
.conteudo-manutencao h4 {
  margin: 30px 0 8px;
  font-size: 0.95em;
  color: var(--primary);
}

/* Linha de tarefa */
/* === Correção de alinhamento dos checkboxes === */
.linha-tarefa {
  display: flex;
  align-items: flex-start; /* deixa o checkbox alinhado ao topo do texto */
  gap: 8px;
  margin-bottom: 8px;
}

.linha-tarefa input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px; /* sobe ligeiramente pra alinhar melhor com texto */
  accent-color: var(--primary);
  cursor: pointer;
}

/* Animação suave */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.botao-link {
  display: block;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 6px 0;
  font-size: inherit;
}

/* === Equipes de Limpeza === */
.card-equipes {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  padding: 15px 18px;
  margin-bottom: 25px;
  border-left: 5px solid var(--cor-destaque, #5B3C88);
}

.card-equipes h3 {
  font-size: 1.2rem;
  margin-bottom: 6px;
  color: var(--cor-destaque, #5B3C88);
}

.linhaEquipe {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
}

.linhaEquipe label {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.linhaEquipe input[type="text"] {
  flex: 1;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 5px 8px;
  font-size: 0.9rem;
  transition: 0.2s;
}

.linhaEquipe input[type="text"]:focus {
  border-color: var(--cor-destaque, #5B3C88);
  outline: none;
  box-shadow: 0 0 0 2px rgba(91,60,136,0.15);
}

#btnSalvarEquipes {
  display: inline-block;
  background: var(--cor-destaque, #5B3C88);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 8px 14px;
  cursor: pointer;
  transition: background 0.2s;
  font-family: "Anek Latin", sans-serif;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 500;
}

#btnSalvarEquipes:hover {
  background: #6e4aad;
}

/* Ajuste visual para inputs menores */
@media (max-width: 600px) {
  .linhaEquipe {
    flex-direction: column;
    align-items: stretch;
  }
  .linhaEquipe input[type="text"] {
    width: 100%;
  }
}

.card-manutencao-admin {
  background: #fff;
  border: 2px solid #5B3C88;
  border-radius: 10px;
  padding: 10px 20px 10px 20px;
  margin-bottom: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.05);
}

.card-manutencao-admin h3 {
  color: #3b2a6d;
  margin-bottom: 6px;
}

.linhaCampo-admin {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.card-manutencao-admin select,
.card-manutencao-admin input,
.card-manutencao-admin textarea {
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: "Anek Latin", sans-serif;
  padding: 6px 8px;
  font-size: 0.95em;
  width: 100%;
  box-sizing: border-box;
  line-height: 1.5;
}

.botao-roxo {
  background: #5B3C88;
  color: #fff;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  font-family: "Anek Latin", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 10px;
  font-size: 13px;
}

.botao-roxo:hover {
  background: #472e6b;
}

.botao-diferente {
  background: #7a7a7a;
  color: #fff;
  border: none;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: bold;
  transition: 0.2s;
  font-family: "Anek Latin", sans-serif;
  font-weight: 500;
  text-transform: uppercase;
  margin-top: 10px;
  font-size: 12px;
}

.botao-diferente  :hover {
  background: #4b4b4b;
}



.lista-mensagens {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.mensagem-card {
  border-radius: 10px;
  padding: 0px 16px 16px 16px;
  box-shadow: 0 3px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  opacity: 1;
  transform: scale(1);
}

.mensagem-card:hover {
  transform: scale(1.02);
}

.texto-mensagem {
  font-size: 1em;
  margin-bottom: 10px;
  color: #333;
  font-family: 'Delius', cursive;
}

.linha-inferior {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  color: #555;
}

.assinatura {
  font-weight: 900;
  font-family: 'Delius', cursive;
}

.acoes {
  display: flex;
  align-items: center;
  gap: 8px;
}

.acoes button {
  border: none;
  background: none;
  cursor: pointer;
  font-size: 0.9em;
}

.acoes button.curtir {
  color: #d24c65;
  font-weight: bold;
  transition: transform 0.2s;
}

.acoes button.curtir:hover:not([disabled]) {
  transform: scale(1.2);
}

.acoes button.curtir[disabled] {
  opacity: 0.6;
  cursor: default;
}

.paletaCores {
  margin-top: 10px;
}

.cores {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.cor {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid transparent;
  cursor: pointer;
  transition: 0.2s;
}

.cor:hover {
  transform: scale(1.1);
}

.cor.ativa {
  border-color: #5B3C88;
  box-shadow: 0 0 5px rgba(91,60,136,0.5);
}

.font {
  font-family: "Anek Latin", sans-serif;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  width: 90%;
  font-size: 16px;
}