/* ===== RESET E CONFIGURAÇÕES GLOBAIS ===== */
*,
*:before,
*:after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow-x: hidden;
  font-family: "Inter", sans-serif;
  background: linear-gradient(135deg, rgb(90, 52, 9) 0%, rgb(66, 3, 61) 100%);
  color: white;
  font-size: 16px;
  display: flex;
  flex-direction: column;
}

/* ===== CONTEÚDO PRINCIPAL ===== */
main {
  color: white;
  text-align: center;
  flex: 1;
  position: relative;
  margin: 10px;
}

/* ===== SEÇÕES PRINCIPAIS ===== */
.bloco-secao {
  display: flex;
  justify-content: center;
  align-items: center;
  animation: appear 5s linear;
  animation-timeline: view();
  animation-range: entry 0% cover 40%;
}

.secao-container {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 90%;
  max-width: 100%;
  height: 80%;
  background: rgba(26, 26, 26, 1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

/* ===== CONTAINER DE RELATÓRIOS ===== */
.relatorios-container {
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  background: rgba(26, 26, 26, 0.95);
  border-radius: 25px;
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 420px;
  justify-content: center;
  animation: appear 1s ease 0.3s both;
}

.relatorios-header {
  text-align: center;
  margin-bottom: 40px;
}

.relatorios-header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: white;
  text-shadow: none;
  animation: fade-up 1s ease;
}

.relatorios-header p {
  font-size: 1.2rem;
  line-height: 1.8;
  color: #e0e0e0;
  text-shadow: none;
  max-width: 500px;
  margin: 0 auto;
  animation: fade-up 1s ease 0.3s both;
}

/* ===== BOTÕES DE RELATÓRIO ===== */
.relatorios-actions {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
  max-width: 400px;
}

.btn-relatorio {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 20px 24px;
  border-radius: 15px;
  font-size: 1.2rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-icon {
  font-size: 1.5rem;
}

.btn-text {
  font-size: 1.1rem;
}

.btn-membros {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
}

.btn-membros:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.3);
}

.btn-pagamentos {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #fff;
}

.btn-pagamentos:hover {
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.3);
}

/* ===== SEÇÃO DE RELATÓRIO ===== */
.relatorio-section {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 40px 20px;
  background: rgba(26, 26, 26, 1);
  backdrop-filter: blur(10px);
  border-radius: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
  animation: appear 1s ease 0.6s both;
}

.relatorio-container {
  width: 100%;
}

.relatorio-header {
  text-align: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 2px solid rgba(255, 255, 255, 0.1);
}

.relatorio-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 15px;
  color: white;
  text-shadow: none;
}

.relatorio-header p {
  font-size: 1.1rem;
  color: #e0e0e0;
  margin: 8px 0;
}

.relatorio-header span {
  font-weight: 600;
  color: #8b5cf6;
}

/* ===== TABELA DE RELATÓRIO ===== */
.relatorio-content {
  margin: 30px 0;
  overflow-x: auto;
}

.relatorio-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(26, 26, 26, 0.8);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

.relatorio-table th,
.relatorio-table td {
  padding: 16px 20px;
  text-align: left;
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.relatorio-table th {
  background: rgba(26, 26, 26, 0.9);
  font-size: 1.1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #8b5cf6;
}

.relatorio-table tr:nth-child(even) {
  background: rgba(66, 3, 61, 0.2);
}

.relatorio-table tr:hover {
  background: rgba(90, 52, 9, 0.2);
  transition: background 0.3s ease;
}

/* ===== RODAPÉ DO RELATÓRIO ===== */
.relatorio-footer {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-voltar,
.btn-imprimir {
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-voltar {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: #fff;
}

.btn-voltar:hover {
  background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
  transform: translateY(-1px);
}

.btn-imprimir {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: #fff;
}

.btn-imprimir:hover {
  background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
  transform: translateY(-1px);
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 1024px) {
  .relatorios-header h1 {
    font-size: 2.5rem;
  }

  .relatorio-header h2 {
    font-size: 2.2rem;
  }
}

@media (max-width: 768px) {
  .relatorios-container {
    padding: 30px 20px;
    margin: 20px 10px;
  }

  .relatorios-header h1 {
    font-size: 2.2rem;
  }

  .relatorios-header p {
    font-size: 1rem;
  }

  .btn-relatorio {
    padding: 16px 20px;
    font-size: 1rem;
  }

  .btn-icon {
    font-size: 1.3rem;
  }

  .btn-text {
    font-size: 1rem;
  }

  .relatorio-section {
    margin: 20px 10px;
    padding: 30px 15px;
  }

  .relatorio-header h2 {
    font-size: 1.8rem;
  }

  .relatorio-table th,
  .relatorio-table td {
    padding: 12px 15px;
    font-size: 0.9rem;
  }

  .relatorio-footer {
    flex-direction: column;
    gap: 12px;
  }

  .btn-voltar,
  .btn-imprimir {
    width: 100%;
    padding: 14px 20px;
  }
}

@media (max-width: 480px) {
  .relatorios-container {
    padding: 20px 15px;
    margin: 15px 5px;
  }

  .relatorios-header h1 {
    font-size: 1.8rem;
  }

  .relatorios-header p {
    font-size: 0.9rem;
  }

  .btn-relatorio {
    padding: 14px 16px;
    font-size: 0.9rem;
  }

  .relatorio-section {
    margin: 15px 5px;
    padding: 20px 10px;
  }

  .relatorio-header h2 {
    font-size: 1.5rem;
  }

  .relatorio-table th,
  .relatorio-table td {
    padding: 8px 10px;
    font-size: 0.8rem;
  }
}

/* ===== ANIMAÇÕES ===== */
@keyframes fade-up {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes appear {
  from {
    opacity: 0;
    scale: 0.5;
  }
  to {
    opacity: 1;
    scale: 1;
  }
}

/* ===== ESTILOS PARA IMPRESSÃO ===== */
@media print {
  body {
    background: white;
    color: black;
  }

  .menu,
  .rodape,
  .relatorio-footer {
    display: none !important;
  }

  .relatorio-section {
    background: white;
    color: black;
    box-shadow: none;
    border: none;
    margin: 0;
    padding: 20px;
  }

  .relatorio-header h2 {
    color: black;
  }

  .relatorio-header p {
    color: #333;
  }

  .relatorio-table {
    background: white;
    color: black;
  }

  .relatorio-table th {
    background: #f3f4f6;
    color: black;
  }

  .relatorio-table td {
    color: black;
    border-bottom: 1px solid #ddd;
  }

  .relatorio-table tr:nth-child(even) {
    background: #f9fafb;
  }
}
