/* Estilo Global */
* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  min-height: 850px;
  overflow-x: hidden; /* impede scroll horizontal */
}

html::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url(/images/bgfs25.jpg) center no-repeat;
  background-size: cover;
  z-index: -2; /* Um nível abaixo do gradiente */
}



body {
  font-family: 'Josefin Sans', sans-serif;

  color: #333;
  display: flex;
  flex-direction: column;
  min-height: 100vh;

  position: relative;
  overflow-x: hidden;
  z-index: 0;
}

/* Gradiente fixo por cima da imagem */
body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to right, rgba(0, 0, 0, 0.9) 5%, transparent 50%, rgba(0, 0, 0, 0.9) 95%);
  pointer-events: none;
  z-index: -1;
}

header {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.795) 20%, rgba(0, 0, 0, 8) 80%);
  color: white;
  min-width: 850px;
  display: flex;
  align-items: center;
  position: relative;
  justify-content: flex-start;
  width: 100%;
  padding: 1rem;
}

.header-container {
  max-width: 850px; /* Igual à largura do conteúdo principal */
  margin: 0 auto;   /* Centraliza o container horizontalmente */
  padding: 1rem 20px; /* Espaçamento top/baixo 1rem e laterais 20px */
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}


header img {
  width: 150px;
  height: auto;
}

nav {
  margin-left: 2rem; /* distância de 2rem entre o logo e o menu */
  display: flex;
  flex: 1; /* ocupa o espaço restante */
}

nav ul {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  gap: 2rem;
}

nav ul li {
  margin-right: 20px;
}

nav ul li a {
  color: white;
  text-decoration: none;
  font-size: 18px;
  padding: 10px;
  transition: background-color 0.3s, border-bottom 0.3s;
}

nav ul li a.active {
  position: relative;
  display: inline-block;
  padding-bottom: 10px;
}

nav ul li a.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 1px;
  background-color: white;
  border-radius: 2px;
}

nav ul li a:hover {
  border-radius: 5px;
}

.titulo-server {
  background-color: #003000;
  height: 80px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0px;
}

.borda-destaque {
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 5px;
  padding: 5px 10px;

  margin-left: 10px;
  height: 30px;
}

.whatsapp-icon {
  color: #f1f1f1;
  font-size: 22px;
  margin-right: 5px;
}

.whatsapp-icon:hover {
  color: #f1f1f1;
}

/* Efeito de digitação */
@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

/* Efeito de piscada */
@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0;
  }
}

.titulo-server span {
  display: inline-block;
  white-space: nowrap;
  overflow: hidden;
  animation: typing 3s steps(30) 1s forwards, blink 1s 4s step-end 3;
  font-size: 1.5rem;
  color: #f1f1f1;
}

.video-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  border-radius: 10px;

}

#video-background {
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

.mascara-fundo {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
  backdrop-filter: blur(4px);
}

.container-anuncio {
  position: relative;
  color: #f1f1f1;
  border-radius: 20px;
  overflow: hidden;
  margin: 0 auto;
  height: auto;
  width: 810px;
  box-shadow: 5px 5px 25px rgba(0, 0, 0, 1);
  z-index: 0;
}

/* Camada da imagem de fundo escura, desfocada e deslocada para baixo */
.container-anuncio::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url(https://megafarming.com.br/images/Banner-Mega-Farming3.jpg);
  background-size: cover;
  background-position: center 0; /* garante que o topo da imagem esteja alinhado */
  transform: translateY(60px); /* deslocamento vertical para revelar o topo */
  filter: brightness(0.05) blur(1.5px); /* super escura + leve blur */
  z-index: 1;
}

/* Conteúdo acima da camada da imagem */
.container-anuncio > * {
  position: relative;
  z-index: 2;
}


.container-anuncio p {
  font-size: 16px;
  line-height: 1.5;
  padding: 1rem;
  margin: 0px;
  height: 350px;
}

.container-anuncio > *:not(.video-wrapper) {
  position: relative;
  z-index: 1;
}

.container-anuncio > *:not(.video-wrapper):not(.mascara-fundo) {
  position: relative;
  z-index: 2;
}

.whatsapp-container {
  position: relative;
  max-width: 22rem;
  width: 100%;
  min-height: 430px;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
  border-radius: 20px; /* Bordas arredondadas para o iframe */
  box-shadow: 5px 5px 25px rgba(0, 0, 0, 1); /* sombra escura e intensa */
}

.whatsapp-header {
  background: #075E54;
  color: white;
  padding: 1.5rem;
  display: flex;
  align-items: center; /* Centraliza verticalmente */
  gap: 10px;
  border-radius: 5px 5px 0 0;
  position: relative;
}


.whatsapp-header img {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.5);
  position: relative;
  z-index: 1;
  margin-right: 1rem;
}

.status-pulse {
  position: absolute;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  border: 2px solid #00ff00;
  animation: pulse 3.0s infinite, fadeInOut 3.0s infinite;
  top: 28px; /* Posicionamento para cima, acima da imagem */
  left: 18px; /* Ajustado para mais à esquerda */
  transform: translateY(0); /* Ajuste para manter em cima da imagem */
  z-index: 100;
}

@keyframes pulse {
  0% { transform: scale(1); opacity: 0.5; }
  50% { transform: scale(1.5); opacity: 1.0; }
  100% { transform: scale(1); opacity: 0.5; }
}

@keyframes fadeInOut {
  0%, 100% { opacity: 0; border-width: 5px; }
  50% { opacity: 0.6; border-width: 1px; }
}

.online-animado {
    display: block;
    animation: subirOnline 10s ease-in-out infinite;
    position: relative;

}

/* Animação do WhatsApp: sobe e volta suavemente */
@keyframes subirOnline {
  0% {
    opacity: 0;
    transform: translateY(5px);
  }
  30% {
    opacity: 1;
    transform: translateY(0);
  }
  70% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}


.whatsapp-header div {
  flex-grow: 1;
}

.whatsapp-header strong {
  display: block;
}

.whatsapp-header span {
  color: #fff;
  font-size: 12px;
  display: block;
}

.whatsapp-header small {
  color: #00ff00;
  display: block;
}

.whatsapp-body {
  padding: 15px;
  background: #032c27e1;
  color: #eeeeee;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 200px;
  overflow-y: auto;
  flex-grow: 1;
  justify-content: flex-end;
  margin-bottom: 35px;
}

.whatsapp-message {
  background: #075e54;
  padding: 10px;
  border-radius: 5px;
  font-size: 16px;
  margin-bottom: 10px;
  max-width: 90%;
  opacity: 0;
  display: none;
  text-align: left;
  line-height: 1.5
}

.typing-effect {
  display: inline-block;
  font-size: 14px;
  background: #075E54;
  padding: 10px;
  border-radius: 5px;
  animation: fadeIn 0.5s ease-in-out;
  margin-bottom: 10px;
}

.dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0 2px;
  background: #666;
  border-radius: 50%;
  opacity: 0.4;
  animation: blink 1.5s infinite;
}

.dot:nth-child(2) { animation-delay: 0.3s; }
.dot:nth-child(3) { animation-delay: 0.6s; }

@keyframes blink {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

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

.whatsapp-footer {
  text-align: center;
  padding: 15px;
  background: #075e54;
  border-radius: 0 0 5px 5px;
  opacity: 1;
  position: absolute;
  bottom: 0;
  width: 100%;
  cursor: pointer;
  overflow: hidden; /* Adicionado */
}

.whatsapp-footer a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

.whatsapp-footer img {
  width: 20px;
}

.whatsapp-footer.pulse {
  animation: pulseButton 1.5s infinite;
  background: #075e54;
  opacity: 1;
  border-radius: 0 0 5px 5px; /* Adicionado */
}

@keyframes pulseButton {
  0% { transform: scale(1); }
  50% { transform: scale(1.10); }
  100% { transform: scale(1); }
}


.texto-com-espaco {
  display: flex;
  flex-direction: column;
  line-height: 2; /* aumenta o espaço vertical entre as linhas */
}

.texto-com-espaco b,
.texto-com-espaco span,
.texto-com-espaco small {
  display: block;
}

.discord-widget-container {
  position: relative;
  display: inline-block;
  background-color: #1e1f22; /* Cor de fundo */
  border-radius: 10px; /* Bordas arredondadas em todo o container */
  width: 100%; /* Largura 100% */
  height: 100%; /* Altura do widget */
  min-height: 430px;
  padding: 0px; /* Espaçamento interno */
  box-sizing: border-box; /* Garantir que o padding não afete o tamanho */
  overflow: hidden; /* Garante que o conteúdo siga a borda arredondada */
  max-width: 22rem;
  border-radius: 20px; /* Bordas arredondadas para o iframe */
  box-shadow: 5px 5px 25px rgba(0, 0, 0, 1); /* sombra escura e intensa */
}

.discord-widget {
  border: none;
  width: 100%; /* Largura 100% para o iframe */
  height: 100%; /* Altura 100% para o iframe */
}

.custom-text {
  position: absolute;
  bottom: 0px;
  color: #f1f1f1;
  background-color: #1e1f22;
  font-size: 14px;
  width: 20rem;
  height: 2.2rem;
  text-align: center; /* Centraliza o texto */
}


.discord-button {
  background-color: #5865f2;
  color: #f1f1f1;
  padding: 7px 0px;
  font-size: 12px;
  border-radius: 5px;
  text-decoration: none;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.3);
  display: inline-block;
  width: 90px;
  margin-left: 10px;
}

.discord-button:hover {
  background-color: #1925a5; /* Cor mais escura ao passar o mouse */
}

.main {
  padding: 0rem 1rem;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center; /* Centraliza os blocos horizontalmente */
  gap: 20px 0;
}

.main-container-direita {
  flex: 1;

  max-width: 350px;
  /* Centralização do conteúdo interno */
  display: flex;
  flex-direction: column; /* Ou row, depende do layout interno */
  gap: 1rem;
  padding: 0px 20px;
}

/* Bloco da esquerda (servidores) - maior */
.main-container-esquerda {
  flex: 1;
  gap: 1rem;
  display: flex;
  flex-direction: column; /* Ou row, depende do layout interno */
  padding: 0px 20px;

  max-width: 850px;
}

.footer {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.0) 0%, rgba(0, 0, 0, 0.781) 20%, rgba(0, 0, 0, 8) 80%);
  color: white;
  padding: 0;
  text-align: center;
}

.footer-container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  max-width: 1200px;
  margin: auto;
}

.footer-section {
  flex: 1;
  min-width: 250px;
  padding: 10px;
  display: grid;
  place-items: center;    /* Centraliza horizontal e verticalmente */

}

.footer-section h2 {
  font-size: 24px;
  margin-bottom: 15px;
}

.footer-section p {
  font-size: 16px;
  line-height: 1.5;
}

.container-lista-servidores {
  margin: 0;
  border-radius: 20px;
  box-shadow: 5px 5px 25px rgba(0, 0, 0, 1); /* sombra escura e intensa */
}

.header-bar {
  background-color: #003000;
  color: white;
  text-align: center;
  padding: 30px;
  font-size: 22px;
  text-transform: uppercase;
  width: 100%;
  box-sizing: border-box;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.table-wrapper {
  overflow-x: auto;
  width: 100%;
}

table.dataTable {
  border-collapse: collapse;
  width: 100% !important;
  table-layout: auto;
  border-bottom-left-radius: 0px;
  border-bottom-right-radius: 0px;
  overflow: hidden;
}

table.dataTable thead th {
  background-color: #003000;
  color: white;
  text-align: center;
  padding: 8px;
}

table.dataTable tbody td {
  padding: 6px 10px;
  font-size: 14px;
  white-space: normal;
  word-break: break-word;
}

table.dataTable tbody tr:nth-child(even) {
  background-color: #003000f6;
  color: #ffffff;
}

table.dataTable tbody tr:nth-child(odd) {
  background-color: #004100f3;
  color: #ffffff;
}

/* Estilo do Online com efeito scanner */
.status-online {
  position: relative;
  display: inline-block;
  padding: 5px 10px;
  border-radius: 5px;
  overflow: hidden;
  background: #d80303;
  color: white;
  font-size: 12px;
}

.status-online {
display: inline-block;
position: relative;
background: linear-gradient(135deg, #334600ec, #8cbe0086);
color: rgb(225, 255, 198);
padding: 4px 14px;
border-radius: 5px;
font-weight: bold;
text-shadow: 0 0 4px rgba(255,255,255,0.6);
overflow: hidden;
animation: pulse 2s infinite;
}

.status-online::after {
content: "";
position: absolute;
top: 0;
left: -75%;
width: 50%;
height: 100%;
background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.281), transparent);
animation: shimmer 2.5s infinite;
transform: skewX(-20deg);
}

@keyframes pulse {
0%, 100% {
box-shadow: 0 0 8px rgb(0, 255, 21);
}
50% {
box-shadow: 0 0 14px rgb(115, 255, 0);
}
}

@keyframes pulse-manutencao {
  0%, 100% {
    box-shadow: 0 0 10px rgb(200, 0, 0);
  }
  50% {
    box-shadow: 0 0 20px rgb(255, 0, 0);
  }
}

@keyframes shimmer {
0% {
left: -75%;
}
100% {
left: 125%;
}
}


.status-offline {
  color: red;
  font-weight: bold;
}

.jogo-icon {
  height: 30px;
  margin-left: 4px;
  vertical-align: middle;
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}




#contador {
  font-size: 42px;
  font-weight: bold;
  color: #f1f1f1;
  transition: all 0.3s ease-in-out;
}

#contador {
  display: inline-block;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.contador-animado {
  animation: pop-fade 0.5s ease;
}

@keyframes pop-fade {
  0% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.offline-background {
  position: relative;
  background-image: url('https://megafarming.com.br/images/man.png');
  background-size: cover;
  background-position: center;
}

.offline-background::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7); /* Cor escura e opacidade */
  z-index: 0; /* A camada escura fica abaixo do conteúdo */
}

.offline-background .content {
  position: relative; /* Garante que o conteúdo fique acima da camada de escurecimento */
  z-index: 1; /* O conteúdo fica acima da camada escura */
}


.manutencao-texto {
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  color: #ff0000;
  padding: 10px;
  margin: 10px auto;
  border-radius: 8px;
  text-shadow: 5px 5px 10px rgb(0, 0, 0);
  width: 600px;
  width: 110%;
  box-sizing: border-box;
  animation: pulse-manutencao 0.1s ease-in-out infinite; /* Aplica a animação só aos textos de manutenção */
  position: relative;
  z-index: 2; /* Garante que o texto fique acima de qualquer fundo */
}

/* Opcional: efeito de fade-in quando a manutenção é detectada */
.manutencao-texto.fade-in {
  animation: fadeIn 3.0s ease-out;
}

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

/* Quando a tabela estiver em manutenção (com a classe offline-background) */
.offline-background tbody tr,
.offline-background tbody tr:hover {
  background-color: transparent !important; /* Remover qualquer cor de fundo */
  color: inherit !important; /* Manter a cor do texto inalterada */
}

/* Se você também quiser remover qualquer destaque de seleção de linha */
.offline-background tbody tr.selected {
  background-color: transparent !important;
}

#tabelaStatus thead th {
  text-align: center;
  vertical-align: middle;
  font-size: 14px;
}

#tabelaStatus td:nth-child(6) span {
  display: inline-block;
  padding: 5px 10px;
  max-width: 100%;
  white-space: nowrap;
}

.convite-icon {
  width: 30px;
  height: 30px;
  margin: 0 auto;
}

.jogadores-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.jogadores-container img.jogo-icon {
  height: 28px;
}

.jogadores-texto {
  font-size: 13px;
  font-weight: bold;
  color: #ffffff;
  text-shadow: 0 0 4px #000;
}

@media (max-width: 768px) {
  .main {
    flex-direction: column;
    padding: 1rem;
  }

  .main-container-esquerda,
  .main-container-direita {
    max-width: 100%;
    padding: 0;
  }

  .container-anuncio p {
    height: auto;
  }

  header {
    min-width: auto;
  }

  .header-container {
    flex-direction: column;
    align-items: center;
    min-width: auto;
    padding: 1rem;
  }

  nav ul {
    flex-direction: row; /* Mantém os itens lado a lado */
    flex-wrap: wrap; /* Se precisar, permite quebrar linha */
    justify-content: center; /* Centraliza horizontalmente */
    gap: 1rem; /* Espaçamento entre os itens */
  }

  .manutencao-texto {
    width: 100%;
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .main-container-direita {
    align-items: center; /* Isso centraliza as caixas dentro do container no mobile */
  }

  .whatsapp-container,
  .discord-widget-container {
    margin: 0 auto; /* Garante centralização mesmo se tiver width fixa */
  }

  .custom-text {
    width: 100%;
    max-width: 22rem;
  }
}

@media (max-width: 768px) {
  .container-anuncio {
    background-color: #003000; /* mesmo fundo escuro da tabela */
    border-radius: 20px;
    box-shadow: 5px 5px 25px rgba(0, 0, 0, 1);
    padding: 20px;
    margin-top: 20px;
    width: 100%;
    overflow: hidden;
    position: relative;
  }

  .container-anuncio .video-wrapper,
  .container-anuncio .mascara-fundo,
  .container-anuncio video {
    display: none !important;
  }

  .titulo-server {
    color: white;
    font-size: 20px;
    height: auto;
    padding: 5px;
  }

  .container-anuncio p {
    color: white;
    padding: 0;
    font-size: 14px;
    line-height: 1.6;
    height: auto;
    margin-top: 40px;
  }

    .header-bar {
    font-size: 18px; /* ou qualquer valor menor */
    padding: 30px;    /* opcional: reduz o espaçamento também */
  }
}

@media (max-width: 768px) {
  #tabelaStatus th:nth-child(1),
  #tabelaStatus td:nth-child(1) {
    width: auto;
    white-space: nowrap;
  }

  #tabelaStatus th:nth-child(2),
  #tabelaStatus td:nth-child(2) {
    width: auto;
    min-width: 120px;
    white-space: nowrap;

  }

  #tabelaStatus th:nth-child(3),
  #tabelaStatus td:nth-child(3) {
    width: auto;
    min-width: 100px;
    white-space: nowrap;
  }

  #tabelaStatus th:nth-child(5),
  #tabelaStatus td:nth-child(5) {
    width: auto;
    white-space: nowrap;
  }

  #tabelaStatus th,
  #tabelaStatus td {
    white-space: normal;
    word-break: break-word;
  }

  .titulo-server span {
    display: block;
    font-size: 1.2rem; /* Ajusta tamanho se quiser */
  }
}

@media (min-width: 769px) {
  table.dataTable thead th::before {
    content: attr(data-full);
  }
  table.dataTable thead th {
    font-size: 0; /* oculta o "S", "N", etc. */
    position: relative;
  }
  table.dataTable thead th::before {
    font-size: 14px; /* mostra o nome completo */
    position: relative;
    display: inline-block;
  }
}

#tabelaStatus_wrapper {
  background-color: #003000;
  padding: 0;
  border-radius: 0 0 20px 20px;
  overflow-x: auto;      /* Permite scroll horizontal se necessário */
  width: 100%;           /* Faz o wrapper ocupar 100% */
  box-sizing: border-box; /* Inclui padding dentro do width */
  max-width: 850px;       /* (ou o tamanho que desejar, tipo o container da esquerda) */
  margin: 0 auto;          /* Centraliza horizontalmente */
  height: 770px;
}

#tabelaStatus_wrapper > .dataTables_scroll {
  min-width: 100%;        /* Faz o container de scroll respeitar a largura total */
  box-sizing: border-box;
}

table.dataTable {
  width: 100% !important; /* Garante que a tabela use 100% da largura disponível dentro do scroll wrapper */
  min-width: 600px;       /* Define um mínimo para forçar scroll em telas muito estreitas */
}



.dataTables_wrapper label {
  color: white !important;
}

/* Força a centralização da barra de pesquisa */
#tabelaStatus_filter {
  display: flex !important;
  justify-content: center !important;
  margin-bottom: 1rem !important;
  width: 100% !important;
}

/* Força a centralização dos botões de paginação */
#tabelaStatus_paginate {
  display: flex !important;
  justify-content: center !important;
  margin-top: 1rem !important;
  width: 100% !important;
  gap: 10px !important;
}

#tabelaStatus_paginate .paginate_button {
  color: #c0c0c0 !important; /* branco claro */
}

#tabelaStatus_paginate .paginate_button:hover {
  color: inherit !important;
  background: none !important;
  box-shadow: none !important;
  cursor: default !important;
}

#tabelaStatus_paginate .paginate_button:hover {
  color: #ffffff !important; /* verde */
}

#tabelaStatus_filter label {
  display: flex;
  align-items: center;
  gap: 10px; /* Aqui você controla o espaço entre o texto e o campo de input */
  color: white;
}
