body {
  margin: 0;
  font-family: 'Segoe UI', sans-serif;
  background: #0f172a; /* tono azul oscuro deportivo */
  color: white;
}



.closebtn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 36px;
}

.hamburger {
  font-size: 30px;
  cursor: pointer;
  position: fixed;
  top: 15px;
  left: 20px;
  z-index: 3;
}

.main {
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.logo {
  width: 60%;
  max-width: 300px;
}

/* Responsive */
@media screen and (max-width: 600px) {
  .logo {
    width: 80%;
  }
}


.sidebar {
  height: 100vh;
  width: 0;
  position: fixed;
  z-index: 2;
  top: 0;
  left: 0;
  background-color: #1e293b;
  overflow: hidden; /* 🚫 Nada de scroll aquí */
  transition: width 0.4s ease-in-out;
  box-sizing: border-box;
}

.sidebar.open {
  width: 75%; /* El tamaño que uses para abrir */
}


.sidebar-links {
  max-height: calc(100vh - 160px); /* resto del header + botón cerrar */
  overflow-y: auto;
  padding-right: 10px;
}



.sidebar::-webkit-scrollbar {
  width: 8px;
}
.sidebar::-webkit-scrollbar-track {
  background: #1f2937; /* fondo del scrollbar */
}
.sidebar::-webkit-scrollbar-thumb {
  background-color: #4b5563; /* color del scroll */
  border-radius: 10px;
}

.sidebar a {
  padding: 15px 30px;
  text-decoration: none;
  font-size: 18px;
  color: white;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: 0.2s;
}

.sidebar a:hover {
  background-color: #334155;
}

.closebtn {
  position: absolute;
  top: 15px;
  right: 25px;
  font-size: 30px;
  color: white;
}

.hamburger {
  font-size: 28px;
  cursor: pointer;
  position: fixed;
  top: 15px;
  left: 20px;
  z-index: 3;
  color: white;
}

.logo {
  width: 60%;
  max-width: 300px;
  transition: transform 0.3s ease;
}

.logo:hover {
  transform: scale(1.05);
}

.sidebar-header {
  display: flex;
  align-items: center;
  padding: 20px;
  border-bottom: 1px solid #334155;
}

.sidebar-logo {
  width: 90px;
  height: 90px;
  border-radius: 5px;
  object-fit: contain;
  margin-right: 5px;
}

.sidebar-title h2 {
  margin: 0;
  font-size: 20px;
  line-height: 1.2;
  color: white;
}

.sidebar-title small {
  font-weight: normal;
  font-size: 12px;
  color: #cbd5e1;
}

.subtitle {
  margin: 2px 0 0;
  font-size: 11px;
  color: #94a3b8;
}

.flag-accion {
  color: #9ef772; /* Verde chiclamino (ne贸n estilo) */
  font-weight: bold;
  
}

.med-tracker {
  color: #61f553;
  text-shadow: 0 0 5px #61f553, 0 0 10px #000000;
  font-size: 16px;
}

.flag-accion-rojo {
  color: #bb0000; /* Verde chiclamino (ne贸n estilo) */
  font-weight: bold;
  
}

.med-tracker-rojo {
  color: #bb0000;
  font-weight: bold;
  font-size: 16px;
}

.wildcats-style {
  color: #ffffff;
  
}




.container {
  padding: 40px;
  text-align: center;
}

.player-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.card {
  background-color: #1e293b;
  color: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 0 10px #0005;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: scale(1.03);
}

.player-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 10px;
}

.edit-btn {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 15px;
  background-color: #3b82f6;
  color: white;
  text-decoration: none;
  border-radius: 8px;
}

.edit-btn:hover {
  background-color: #2563eb;
}

.fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  width: 60px;
  height: 60px;
  background-color: #3b82f6; /* Azul vibrante */
  color: white;
  font-size: 42px;
  text-align: center;
  line-height: 70px;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  text-decoration: none;
  z-index: 99;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.fab:hover {
  background-color: #2563eb;
  transform: scale(1.1);
}

.search-box {
  width: 100%;
  max-width: 400px;
  padding: 10px 15px;
  margin: 20px auto;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  box-shadow: 0 0 5px #0005;
}

.form-container {
  max-width: 500px;
  margin: 100px auto;
  padding: 30px;
  background-color: #1e293b;
  border-radius: 12px;
  color: white;
  box-shadow: 0 0 15px #0005;
}

.jugador-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.jugador-form input[type="text"],
.jugador-form input[type="number"],
.jugador-form input[type="file"] {
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 8px;
  background-color: #334155;
  color: white;
}

.jugador-form label {
  font-weight: bold;
  color: #9ef772;
}

.foto-preview {
  width: 100px;
  border-radius: 10px;
  margin-top: 5px;
  box-shadow: 0 0 10px #0008;
}


.btn-yellow {
  background-color: #FFDE21;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-yellow:hover {
  background-color: #2563eb;
}

.btn-azul {
  background-color: #3b82f6;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-azul:hover {
  background-color: #2563eb;
}



.btn-amarillo {
  background-color: #bdba1e;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-amarillo:hover {
  background-color: #f0ed51;
}



.btn-rojo {
  background-color: #990000;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-rojo:hover {
  background-color: #cc1111;
}

.btn-volver {
  background-color: #00cc11;
  color: white;
  padding: 12px;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-volver:hover {
  background-color: #009900;
}


.hero-video {
  position: relative;
  height: 100vh;
  overflow: hidden;
}

.bg-video {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  color: white;
  text-align: center;
  top: 50%;
  transform: translateY(-50%);
}

.login-form {
  margin: 40px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.input-group {
  display: flex;
  align-items: center;
  background-color: #334155;
  padding: 10px;
  border-radius: 8px;
}

.input-group i {
  color: #9ef772;
  margin-right: 10px;
  font-size: 16px;
}

.input-group input {
  flex: 1;
  border: none;
  background: transparent;
  color: white;
  font-size: 16px;
  outline: none;
}

.login-btn {
  padding: 10px;
  border: none;
  background-color: #3b82f6;
  color: white;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.login-btn:hover {
  background-color: #2563eb;
}

.login-error {
  background-color: #ef4444;
  color: white;
  padding: 10px 15px;
  border-radius: 8px;
  margin: 10px 20px;
  font-weight: bold;
  text-align: center;
  box-shadow: 0 0 10px #0005;
  animation: fadeError 0.5s ease;
}

@keyframes fadeError {
  from {
    opacity: 0;
    transform: translateY(-5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.preview-foto {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 0 10px #0005;
  margin-top: 10px;
}

.foto-actual {
  margin-bottom: 20px;
}

.btn-camara {
  background-color: #2563eb;
  color: white;
  padding: 10px 18px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  margin-bottom: 10px;
  transition: background 0.3s ease;
}

.btn-camara:hover {
  background-color: #1d4ed8;
}

.archivo-nombre {
  display: block;
  margin-top: 5px;
  font-size: 14px;
  color: #9ef772;
}


.registro-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  max-width: 400px;
  margin: auto;
  padding: 20px;
  background: #1e293b;
  color: white;
  border-radius: 10px;
  box-shadow: 0 0 10px #0005;
}

.registro-form input {
  padding: 10px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
}

.registro-form button {
  background-color: #3b82f6;
  color: white;
  padding: 10px;
  border: none;
  font-size: 16px;
  border-radius: 6px;
  cursor: pointer;
}

.registro-form button:hover {
  background-color: #2563eb;
}


.img-option-select {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 5px;
  margin-right: 8px;
  background-color: #2563eb;
  color: black;
  vertical-align: middle;
}

.img-option-select-logo {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 5px;
  margin-right: 8px;
  background-color: #ffffff;
  color: black;
  vertical-align: middle;
}
.select2-container--default .select2-selection--single {
  height: 40px;
  padding: 5px;
  font-size: 16px;
}


/* Fondo del dropdown */
.select2-container--default .select2-results__option {
  background-color: #1e293b;
  color: #f1f5f9;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
  background-color: #334155;
  color: #fff;
}

/* Fondo del input seleccionado */
.select2-container--default .select2-selection--single {
  background-color: #1e293b;
  color: #f1f5f9;
  border: 1px solid #334155;
}

/* Texto del input */
.select2-container--default .select2-selection--single .select2-selection__rendered {
  color: #f1f5f9;
  line-height: 36px;
}

/* Flechita del combo */
.select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 36px;
}

/* Ajuste de fondo del dropdown */
.select2-dropdown {
  background-color: #1e293b;
  border: 1px solid #334155;
}

.submenu-container {
  margin-top: 10px;
}

.submenu-toggle {
  cursor: pointer;
  padding: 10px 15px;
  color: #fff;
  background-color: #1f1f1f;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background 0.3s ease;
}

.submenu-toggle:hover {
  background-color: #292929;
}

.arrow-icon {
  transition: transform 0.3s ease;
}

.submenu {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
  flex-direction: column;
  background-color: #2a2a2a;
  margin-top: 5px;
  border-radius: 0 0 8px 8px;
  padding: 0 15px;
}

.submenu a {
  display: block;
  padding: 8px 0;
  font-size: 0.95em;
  color: #ccc;
  text-decoration: none;
  border-bottom: 1px solid #444;
}

.submenu a:last-child {
  border-bottom: none;
}

.submenu-container.active .submenu {
  max-height: 300px;
  padding: 10px 15px;
}

.submenu-container.active .arrow-icon {
  transform: rotate(180deg);
}

.sexo-selector {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.sexo-selector input[type="radio"] {
  display: none;
}

.sexo-card {
  cursor: pointer;
  padding: 10px 20px;
  border: 2px solid #444;
  border-radius: 10px;
  background: #2a2a2a;
  color: #ccc;
  transition: all 0.3s ease;
  font-size: 0.95em;
  text-align: center;
}

.sexo-selector input[type="radio"]:checked + .sexo-card {
  border-color: #00c9a7;
  background: #00c9a7;
  color: #000;
  font-weight: bold;
}


  select {
    color: white;
    background-color: #4a6572; /* Azul grisáceo */
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
  }

  select option {
    color: black; /* Opcional: para que las opciones no salgan en blanco */
    background-color: white;
  }

select:focus {
  outline: none;
  border-color: #7fd1ae;
  box-shadow: 0 0 5px #7fd1ae;
}





