/* 🔥 RESET */
* {
  /*margin: 0;*/
  padding: 0;
  box-sizing: border-box;
}

/* 🔥 BODY */
body {
  font-family: 'Segoe UI', sans-serif;
  background: radial-gradient(circle at top, #809bce, #b8e0d2);
  color: white;
}

/* 🔥 SIDEBAR */
.sidebar {
  position: fixed;
  width: 220px;
  height: 100%;
  background: linear-gradient(180deg, #020617, #020617 70%, #0f172a);
  padding: 20px;
  border-right: 1px solid #1e293b;
}

.sidebar h2 {
  margin-bottom: 30px;
}

.sidebar a {
  display: block;
  padding: 10px;
  margin-bottom: 10px;
  color: #94a3b8;
  text-decoration: none;
  border-radius: 8px;
  transition: 0.2s;
}

.sidebar a:hover {
  background: #1e293b;
  color: white;
}

/* 🔥 CONTENIDO */
.container {
  margin-left: 240px;
  padding: 20px;
}

/* 🔥 TITULO */
h1, h2 {
  margin-bottom: 15px;
}

/* 🔥 TARJETAS FIFA */
.card {
  background: #d8bfcd;
  border-radius: 20px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 0 25px rgba(0,0,0,0.6);
  border: 1px solid #1e293b;
  transition: 0.2s;
}

.card:hover {
  transform: scale(1.02);
}

/* 🔥 PARTIDOS */
.match-title {
  font-size: 18px;
  font-weight: bold;
}

.match-date {
  font-size: 13px;
  color: #94a3b8;
}

/* 🔥 MARCADOR */
.marcador {
  display: flex;
  gap: 10px;
  margin: 10px 0;
}

.marcador input {
  width: 60px;
  height: 40px;
  border-radius: 10px;
  border: none;
  text-align: center;
  font-size: 18px;
  background: #020617;
  color: white;
}

/* 🔥 BOTONES */
button {
  background: linear-gradient(90deg, #22c55e, #4ade80);
  border: none;
  padding: 10px 15px;
  border-radius: 10px;
  color: black;
  font-weight: bold;
  cursor: pointer;
  transition: 0.2s;
}

button:hover {
  transform: scale(1.05);
}

/* 🔥 RANKING */
.ranking-item {
  background: #020617;
  padding: 10px;
  border-radius: 10px;
  margin: 5px 0;
  border-left: 5px solid #22c55e;
}

/* 🥇 TOP */
.top1 { border-left: 5px solid gold; }
.top2 { border-left: 5px solid silver; }
.top3 { border-left: 5px solid #cd7f32; }

/* 🔥 INPUTS ADMIN */
input, select {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  border-radius: 10px;
  border: none;
  background: #020617;
  color: white;
}

.card {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 🔥 LAYOUT PRINCIPAL */
.layout {
  display: flex;
  gap: 20px;
  padding: 20px;
}

/* 📅 IZQUIERDA */
.contenido {
  flex: 3;
}

/* 🏆 DERECHA (FIJO) */
.ranking-panel {
  flex: 1;
  position: sticky;
  top: 20px;
  height: fit-content;

  background: #0f172a;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 0 20px rgba(0,0,0,0.3);
}

/* ITEMS DEL RANKING */
.ranking-item {
  padding: 10px;
  margin-bottom: 10px;
  background: #1e293b;
  border-radius: 10px;
  font-weight: bold;
}

/* TOP 3 */
.top1 {
  background: gold;
  color: black;
}

.top2 {
  background: silver;
  color: black;
}

.top3 {
  background: #cd7f32;
  color: black;
}


.main-container {
  display: flex;
  margin-left: 220px;
  padding: 20px;
  gap: 20px;
}

.left-panel {
  width: 70%;
}

.right-panel {
  width: 30%;
  position: fixed;
  right: 20px;
  top: 80px;
  max-height: 80vh;
  overflow-y: auto;
  background: #0f172a;
  padding: 20px;
  border-radius: 15px;
}

.ranking-item {
  padding: 10px;
  margin-bottom: 10px;
  background: #1e293b;
  border-radius: 10px;
}

.top1 { background: gold; color: black; }
.top2 { background: silver; color: black; }
.top3 { background: #cd7f32; color: black; }

.tipo-apuesta button {
  margin: 5px;
  padding: 10px;
  border-radius: 8px;
  background: #1e293b;
  color: white;
  border: none;
  cursor: pointer;
}

.apuesta-simple button {
  margin: 5px;
  padding: 10px;
  border-radius: 8px;
  background: #22c55e;
  color: white;
  border: none;
}
/* 📱 RESPONSIVE */
@media (max-width: 768px) {

  .main-container {
    flex-direction: column;
    margin-left: 0;
    padding: 10px;
  }

  /* Sidebar más pequeño */
  .sidebar {
    width: 100%;
    height: auto;
    position: relative;
    display: flex;
    justify-content: space-around;
    padding: 10px;
  }

  .sidebar a {
    font-size: 14px;
  }

  /* Panel izquierdo */
  .left-panel {
    width: 100%;
  }

  /* Ranking abajo */
  .right-panel {
    position: relative;
    width: 100%;
    top: 0;
    right: 0;
    margin-top: 20px;
  }

  /* Inputs más grandes */
  input {
    width: 60px;
    font-size: 16px;
  }

  button {
    width: 100%;
    margin-top: 10px;
  }

}


/* 🔥 BODY LOGIN */
.login-body {
  margin: 0;
  padding: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  height: 100vh;

  background: url('../assets/image.jpg') no-repeat center center;
  background-size: cover;
}

/* 🔥 CARD */
.card {
  width: 90%;
  max-width: 350px;

  background: rgba(30, 41, 59, 0.9);
  padding: 25px;

  border-radius: 15px;
  box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

/* INPUTS */
.card input {
  width: 100%;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 8px;
  border: none;
}

/* BOTÓN */
.card button {
  width: 100%;
  padding: 12px;
  background: #22c55e;
  border: none;
  border-radius: 8px;
  color: white;
  font-weight: bold;
}

/* TEXTO */
.small {
  font-size: 14px;
  color: #cbd5f5;
  text-align: center;
}