html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  overflow-y: auto;
}


/* ========================= */
/* GLOBAL */
/* ========================= */

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: 'Segoe UI';
  color: white;

  background: 
    linear-gradient(rgba(0, 119, 255, 0.6), rgba(0,0,0,0.6)),
    url("fundoadm.png");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 🔵 Luz azul */
body::before {
  content: "";
  position: fixed;
  top: -150px;
  left: -150px;
  width: 500px;
  height: 500px;
  background: #00f7ff;
  filter: blur(250px);
  opacity: 0.15;
  z-index: -1;
}

/* 🔴 Luz rosa */
body::after {
  content: "";
  position: fixed;
  bottom: -150px;
  right: -150px;
  width: 500px;
  height: 500px;
  background: #ff0077;
  filter: blur(250px);
  opacity: 0.12;
  z-index: -1;
}

/* ========================= */
/* TITULOS */
/* ========================= */

h1 {
  font-size: 38px;
  margin: 0;
  letter-spacing: 2px;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 20px;
  font-weight: 600;
}

/* ========================= */
/* LAYOUT ADMIN */
/* ========================= */

.container {
  display: flex;
  gap: 30px;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 30px;
}

.sidebar {
  width: 280px;
  background: rgba(20,20,30,0.95);
  padding: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  height: fit-content;
}

.sidebar h2 {
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 20px;
  letter-spacing: 1px;
  color: gold;
}

.sidebar ul {
  padding: 0;
  list-style: none;
  margin-top: 15px;
}

.sidebar li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255, 2, 2, 0.05);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.main {
  flex: 1;
}

/* ========================= */
/* TOPO ADMIN */
/* ========================= */

.topo-admin {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.btn-ranking,
.btn-logout {
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  border: none;
  cursor: pointer;
}

/* Ranking */
.btn-ranking {
  background: linear-gradient(135deg, #00f7ff, #ff0077);
  color: white;
}

/* Logout */
.btn-logout {
  background: #ff3b3b;
  color: white;
}

/* ========================= */
/* CARDS */
/* ========================= */

.card-admin {
  background: rgba(30,30,40,0.95);
  padding: 30px;
  margin-bottom: 25px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(15px);
  box-shadow: 0 10px 40px rgba(0,0,0,0.4);
  transition: 0.3s ease;
}

.card-admin:hover {
  transform: translateY(-5px);
}

/* ========================= */
/* INPUTS */
/* ========================= */

input,
select {
  padding: 12px 14px;
  margin: 8px 0;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  width: 100%;
  background: rgba(255,255,255,0.05);
  color: white;
  outline: none;
  transition: 0.3s;
}

input:focus,
select:focus {
  border: 1px solid #00f7ff;
  box-shadow: 0 0 10px rgba(0,247,255,0.4);
}

/* ========================= */
/* SELECT de players campeões */
/* ========================= */

select {
  background: #ffee00;
  color: rgb(0, 0, 0);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 12px 14px;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

select option {
  background: #1c1c2e;
  color: white;
}

/* ========================= */
/* BOTÕES */
/* ========================= */


/* ========================= */
/* Botão salvar campeonato e excluir campeonato aqui  nesse button */
/* ========================= */
button {
  padding: 10px 18px;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  background: linear-gradient(135deg, #d501ff);
  font-weight: bold;
  transition: 0.3s;
  margin-bottom: 10px;
}

button:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(255, 255, 0, 0.634);
}



/* Botão excluir */
.btn-excluir {
  background: #ff3b3b;
  color: white;
  border: none;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: 0.2s;
}

.btn-excluir:hover {
  background: #ff0000;
  transform: scale(1.1);
}


.sidebar li button {
  width: auto !important;
  min-width: 32px;
  height: 32px;
  padding: 0;
  flex-shrink: 0;
}

/* Botão logout */
.btn-logout {
  background: #ff3b3b;
  color: white;
}

.btn-logout:hover {
  background: #ff0000;
}

/* ========================= */
/* LISTA CAMPEONATOS */
/* ========================= */

#listaTitulos {
  margin-top: 20px;
  display: grid;
  gap: 20px;
}

/* ========================= */
/* MODAL */
/* ========================= */

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  justify-content: center;
  align-items: center;
  padding: 40px;
  z-index: 999;
}

.modal-content {
  background: white;
  color: black;
  padding: 40px 30px;
  border-radius: 20px;
  width: 350px;
  max-width: 90%;
  text-align: center;
  position: relative;
  box-shadow: 0 10px 40px rgba(0,0,0,0.5);
}

#fechar {
  position: absolute;
  top: 15px;
  right: 20px;
  cursor: pointer;
  font-size: 26px;
  font-weight: bold;
  transition: 0.2s;
}

#fechar:hover {
  transform: scale(1.2);
  color: red;
}



/* ========================= */
/* RESPONSIVO MOBILE REAL */
/* ========================= */

@media (max-width: 768px) {

  /* Layout geral */
  .container {
    flex-direction: column;
    padding: 20px 15px;
    gap: 20px;
  }

  /* Sidebar vira bloco normal */
  .sidebar {
    width: 100%;
    padding: 20px;
  }

  /* Topo admin */
  .topo-admin {
    flex-direction: column;
    gap: 15px;
    align-items: stretch;
  }

  .topo-admin h1 {
    font-size: 24px;
    text-align: center;
  }

  /* Cards */
  .card-admin {
    padding: 20px;
  }

  /* Inputs mais confortáveis */
  input,
  select {
    font-size: 16px;
  }

  /* Botões full largura */
  .btn-ranking,
.btn-logout {
  width: 100%;
  text-align: center;
}

  /* Lista campeonatos */
  .sidebar ul {
  padding: 0;
  list-style: none;
  margin-top: 15px;
}

.sidebar li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 8px;
  background: rgba(255,255,255,0.03);
  border-radius: 10px;
  font-size: 15px;
}

.sidebar li:hover {
  background: rgba(255,255,255,0.08);
}

  /* Modal */
  .modal {
    padding: 20px;
  }

  .modal-content {
    width: 100%;
    padding: 25px 20px;
  }

 

  /* Títulos globais menores */
  h1 {
    font-size: 26px;
    text-align: center;
  }

  h2 {
    font-size: 18px;
    text-align: center;
  }

}

.camp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.seta {
  font-size: 18px;
  transition: 0.2s;
}

.camp-detalhes {
  margin-top: 15px;
  animation: expandir 0.2s ease;
}

@keyframes expandir {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}


*{
box-sizing:border-box;
margin:0;
padding:0;
font-family:Segoe UI;
}

body{
height:100vh;
}

.tabela-pontos{
width:100%;
border-collapse:collapse;
margin-top:10px;
}

.tabela-pontos thead{
border-bottom:2px solid #444;
}

.tabela-pontos th{
text-align:left;
padding:10px;
font-size:14px;
color:#bbb;
}

.tabela-pontos td{
padding:10px;
border-bottom:1px solid #333;
font-size:15px;
}

.tabela-pontos td:nth-child(2),
.tabela-pontos td:nth-child(3),
.tabela-pontos td:nth-child(4),
.tabela-pontos td:nth-child(5){
text-align:center;
width:60px;
}

.tabela-pontos td:last-child{
text-align:right;
width:70px;
}

.btnExcluirPontuacao{
background:#1a73e8;
border:none;
color:white;
padding:8px 12px;
border-radius:10px;
cursor:pointer;
}

.btnExcluirPontuacao:hover{
opacity:0.8;
}

.camp-header{
cursor:pointer;
}

/* SELECT2 DARK MODE COMPLETO */

.select2-container--default .select2-selection--single{
background-color:#1e2130 !important;
border:1px solid #2f3348 !important;
height:38px;
}

.select2-container--default .select2-selection__rendered{
color:white !important;
line-height:38px !important;
}

.select2-container--default .select2-selection__arrow b{
border-color:white transparent transparent transparent !important;
}

.select2-dropdown{
background-color:#1e2130 !important;
border:1px solid #2f3348 !important;
}

.select2-results__option{
background-color:#1e2130 !important;
color:white !important;
}

.select2-results__option--highlighted{
background-color:#3a6ff7 !important;
color:white !important;
}

.select2-search--dropdown .select2-search__field{
background-color:#1e2130 !important;
color:white !important;
border:1px solid #2f3348 !important;
}

/* SELECT2 ESTILO BONITO */

.select2-container--default .select2-selection--single{
background-color:#1e2130 !important;
border:1px solid #2f3348 !important;
height:42px !important;
border-radius:10px !important;
padding-left:10px;
}

.select2-container--default .select2-selection__rendered{
color:white !important;
line-height:42px !important;
}

.select2-dropdown{
background:#1e2130 !important;
border:1px solid #2f3348 !important;
border-radius:10px !important;
overflow:hidden;
}

.select2-results__option{
background:#1e2130 !important;
color:white !important;
padding:10px;
}

.select2-results__option--highlighted{
background:#3a6ff7 !important;
color:white !important;
}

.select2-search--dropdown{
padding:10px;
}

.select2-search--dropdown .select2-search__field{
background:#151826 !important;
color:white !important;
border:1px solid #2f3348 !important;
border-radius:8px !important;
padding:6px;
}

.linha-podio{
display:flex;
align-items:center;
justify-content:space-between;
gap:15px;
margin-bottom:10px;
}

.linha-podio label{
color:white;
font-weight:600;
min-width:180px;
}

.linha-podio select{
flex:1;
}

.linha-estat{
display:flex;
align-items:center;
justify-content:space-between;
gap:15px;
margin-bottom:10px;
}

.linha-estat label{
color:white;
font-weight:600;
min-width:180px;
}

.linha-estat select{
flex:1;
}

.menu-logo img {
  height: 50px; /* ajusta a altura da logo */
  width: auto;
}