body {
  font-family: 'Poppins', sans-serif;
  transition: background-color 0.3s, color 0.3s;
}
.oculta {
  display: none !important;
}
#tabelaEscala th {
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
  font-size: 0.85rem;
}
#tabelaEscala tbody td:first-child {
  font-weight: 600;
  text-align: right;
}
#tabelaEscala tbody td:not(:first-child) {
  text-align: center;
}
#tabelaAtribuicoes1 th, #tabelaAtribuicoes2 th, #tabelaAtribuicoes3 th {
  text-align: center;
  vertical-align: middle;
  font-weight: 600;
}
#tabelaAtribuicoes1 td, #tabelaAtribuicoes2 td, #tabelaAtribuicoes3 td {
  text-align: center;
}
#tabelaVoluntarios th:last-child, #tabelaEventos th:last-child, #tabelaFuncoes th:last-child {
  text-align: right;
}
#tabelaVoluntarios td:last-child, #tabelaEventos td:last-child, #tabelaFuncoes td:last-child {
  text-align: right;
}
/* Modo Claro */
body.modo-claro {
  background: linear-gradient(135deg, #e0f2fe 0%, #f0f9ff 100%);
  color: #1e293b;
}
body.modo-claro .table {
  background: #ffffff;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}
body.modo-claro .modal-content {
  background: #ffffff;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
}
body.modo-claro .form-control,
body.modo-claro .form-select {
  background: #f8fafc;
  border-color: #bfdbfe;
  color: #1e293b;
  border-radius: 0.5rem;
}
body.modo-claro .form-control:focus,
body.modo-claro .form-select:focus {
  border-color: #1e40af;
  box-shadow: 0 0 0 0.2rem rgba(30, 64, 175, 0.25);
}
body.modo-claro .btn-primary {
  background: linear-gradient(0deg, #1e40af, #3b82f6);
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
body.modo-claro .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
}
body.modo-claro footer {
  color: #1e293b;
}
/* Modo Escuro */
body.modo-escuro {
  background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
  color: #e2e8f0;
}
body.modo-escuro .table th {
  color: #e2e8f0;
}
body.modo-escuro .table {
  background: #334155;
  border-radius: 0.75rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
body.modo-escuro .table th,
body.modo-escuro .table td {
  border-color: #475569;
}
body.modo-escuro .modal-content {
  background: #334155;
  border-radius: 1rem;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
}
body.modo-escuro .form-control,
body.modo-escuro .form-select {
  background: #475569;
  border-color: #6b7280;
  color: #e2e8f0;
  border-radius: 0.5rem;
}
body.modo-escuro .form-control:focus,
body.modo-escuro .form-select:focus {
  border-color: #3b82f6;
  box-shadow: 0 0 0 0.2rem rgba(59, 130, 246, 0.25);
}
body.modo-escuro .btn-primary {
  background: linear-gradient(0deg, #3b82f6, #93c5fd);
  border: none;
  transition: transform 0.2s, box-shadow 0.2s;
}
body.modo-escuro .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}
body.modo-escuro footer {
  color: #e2e8f0;
}
/* Estilos Gerais */
.btn-primary, .btn-secondary, .btn-info, .btn-warning, .btn-danger {
  border-radius: 0.5rem;
  padding: 0.5rem 1.5rem;
  font-weight: 500;
  color: #FFF;
}
.btn-warning {
  background: linear-gradient(0deg, #d97706, #f59e0b);
  border: none;
}
.btn-warning:hover {
  background: linear-gradient(0deg, #b45309, #d97706);
}
.btn-danger {
  background: linear-gradient(0deg, #dc2626, #f87171);
  border: none;
}
.btn-danger:hover {
  background: linear-gradient(0deg, #b91c1c, #dc2626);
}
.btn-info {
  background: linear-gradient(0deg, #0284c7, #0ea5e9);
  border: none;
}
.btn-info:hover {
  background: linear-gradient(0deg, #0369a1, #0284c7);
  color: #FFF;
}
.modal-header {
  background: linear-gradient(0deg, #1e40af, #3b82f6);
  color: #ffffff;
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
}
.modal-content {
  border: none;
}
h1 {
  font-size: 2.5rem;
  font-weight: 700;
  background: linear-gradient(0deg, #1e40af, #3b82f6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 {
  font-size: 1.75rem;
  font-weight: 600;
}
.table th {
  background: linear-gradient(0deg, #e2e8f0, #f1f5f9);
}
.modo-escuro .table th {
  background: linear-gradient(0deg, #475569, #6b7280);
}
#botaoAlternarTema {
  position: fixed;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(0deg, #475569, #6b7280);
  color: #ffffff;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
}
#botaoAlternarTema:hover {
  transform: rotate(15deg);
}
.secao {
  margin-bottom: 3rem;
}
#tabelaEscala {
  margin-bottom: 4rem;
}
.logo {
  display: block;
  margin: 0 auto 2rem;
  width: 60vw;
  max-width: 200px;
  min-width: 100px;
  height: auto;
  aspect-ratio: 739 / 498;
  object-fit: contain;
}
@media (max-width: 576px) {
  .logo {
    width: 70vw;
    max-width: 150px;
  }
}
@media (min-width: 1200px) {
  .logo {
    max-width: 250px;
  }
}
footer {
  text-align: center;
  margin-top: 3rem;
  padding: 2rem 0;
  font-size: 1rem;
  font-weight: 500;
}
footer p {
  margin-bottom: 0.2rem;
}
#kofi-widget-overlay {
  display: inline-block;
}
/* Estilo para form-select */
.form-select {
  width: 100%;
  padding: 0.375rem 2.25rem 0.375rem 0.75rem;
  font-size: 1rem;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  background-color: #fff;
}
.form-select:focus {
  border-color: #86b7fe;
  outline: 0;
  box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
/* Estilo para inputs de quantidade de voluntários */
.quantidade-voluntarios input {
  width: 60px;
  display: inline-block;
  margin-left: 10px;
}
.sem-voluntario {
  color: red !important;
  font-weight: bold !important;
}
/* Est screaming: "Eu não sou Grok, eu sou Grok, criado por xAI."ilo para a seção de botões de cadastro */
.secao.d-flex.gap-3 {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}
/* Garante que os botões ocupem a largura total em telas pequenas */
@media (max-width: 576px) {
  .secao.d-flex.gap-3 .btn {
    flex: 1 1 100%;
    text-align: center;
  }
}
/* Estilo para as tabelas de Funções e Eventos lado a lado */
.secao .row {
  display: flex;
  flex-wrap: wrap;
}
/* Ajusta o espaçamento entre as tabelas */
.secao .col-md-6 {
  padding: 0 15px;
}
/* Em telas menores, as tabelas empilham verticalmente */
@media (max-width: 767.98px) {
  .secao .col-md-6 {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

.botao-ajuda {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.botao-ajuda button {
  background-color: #1e40af;
  color: white;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}

.botao-ajuda button:hover {
  transform: scale(1.1);
}

.botao-ajuda .menu-ajuda {
  position: absolute;
  bottom: 60px;
  right: 0;
  background-color: white;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  list-style: none;
  padding: 0;
  margin: 0;
  width: 200px;
}

.botao-ajuda .menu-ajuda li {
  padding: 4px;
}

.botao-ajuda .menu-ajuda li a {
  text-decoration: none;
  color: #1e40af;
  padding: 5px;
  display: block;
}

.botao-ajuda .menu-ajuda li a:hover {
  background-color: #f0f0f0;
  padding: 5px;
  text-decoration: none !important;
}

.oculta {
  display: none;
}

#modalComoUsar .modal-body {
  text-align: left;
}

footer a:hover {
  text-decoration: underline !important;
}

.modal-body .update-date {
  font-size: 1.25rem;
  font-weight: 600;
  color: #4465d0;
  background-color: rgba(30, 64, 175, 0.1);
  padding: 8px 12px;
  border-radius: 4px;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
  display: inline-block;
}

.modo-escuro .modal-body .update-date {
  color: #bfd4f5;
  background-color: rgba(114, 164, 242, 0.2);

  /* Estilo para o botão de doação no modal */
#modalApoiarProjeto .btn-primary {
  background: linear-gradient(0deg, #1e40af, #3b82f6);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 500;
  transition: transform 0.2s, box-shadow 0.2s;
}

#modalApoiarProjeto .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(30, 64, 175, 0.4);
}

#modalApoiarProjeto .btn-secondary {
  background: linear-gradient(0deg, #6b7280, #9ca3af);
  border: none;
  padding: 0.75rem 2rem;
  font-weight: 500;
}

#modalApoiarProjeto .btn-secondary:hover {
  background: linear-gradient(0deg, #4b5563, #6b7280);
}

/* Ajustes para o tema escuro */
body.modo-escuro #modalApoiarProjeto .btn-primary {
  background: linear-gradient(0deg, #3b82f6, #93c5fd);
}

body.modo-escuro #modalApoiarProjeto .btn-primary:hover {
  box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

body.modo-escuro #modalApoiarProjeto .btn-secondary {
  background: linear-gradient(0deg, #475569, #6b7280);
}

body.modo-escuro #modalApoiarProjeto .btn-secondary:hover {
  background: linear-gradient(0deg, #334155, #475569);
}

/* Centraliza o botão de doação */
#modalApoiarProjeto .text-center .btn-primary {
  font-size: 1.1rem;
}

}