* {
  text-transform: uppercase !important;
}

body {
  background-color: #121212;
  color: white;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  max-width: 1000px;
  width: 95%;
  margin: 0 auto;
  padding: 10px;
}

h1,
.titulo-central {
  color: #FFD700;
  font-size: 40px;
  font-weight: bold;
  margin: 10px 0 5px;
  text-align: center;
}

#fecha-hora,
#fecha-hora.fecha-centro {
  font-size: 20px;
  color: #ccc;
  margin-top: 4px;
  text-align: center;
}

form {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.campo,
.monto-container {
  width: 100%;
  max-width: 400px;
  background: white;
  padding: 6px;
  border-radius: 5px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.campo input,
.monto-container input {
  font-size: 16px;
  padding: 8px;
  border: none;
  border-radius: 4px;
  width: 100%;
  background: #f5f5f5;
  box-sizing: border-box;
}

.monto-botones {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
}

.btn-monto {
  flex: 1;
  height: 30px;
  font-size: 12px;
  font-weight: bold;
  border: 1px solid #FFD700;
  background: #1c1c1c;
  color: #FFD700;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

.btn-monto:hover {
  background: #FFD700;
  color: black;
}

button,
.btn-marcar {
  font-weight: bold;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.2s;
}

button {
  background: #FFD700;
  color: black;
  padding: 10px;
  font-size: 16px;
  width: 100%;
  max-width: 400px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
}

th {
  border: 1px solid #ffffff;
  padding: 8px;
  text-align: center;
}

td {
  border: 1px solid rgba(255,255,255,0.2);
  padding: 8px;
  text-align: center;
}

.destacado-amarillo {
  background: rgba(255, 235, 59, 0.4);
  border-left: 4px solid #ffeb3b;
}

.destacado-rojo {
  background: rgba(0, 200, 83, 0.35);
  border-left: 4px solid #00e676;
}

.destacado-verde {
  background: rgba(0, 200, 255, 0.15);
  font-weight: bold;
  border-left: 4px solid #00bcd4;
}

.destacado-turno {
  background: #222;
  font-style: italic;
  color: #FFD700;
  font-weight: bold;
}

.fila-eliminable {
  outline: 2px dashed #ff4d4d;
  animation: parpadeo 0.8s infinite alternate;
}

@keyframes parpadeo {
  from { background: rgba(255, 77, 77, 0.1); }
  to { background: rgba(255, 77, 77, 0.3); }
}

.filtros-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1000px;
  margin: auto;
  margin-bottom: 15px;
  padding: 0 10px;
  flex-wrap: wrap;
}

.filtro-fecha {
  display: flex;
  align-items: center;
  gap: 4px;
  color: white;
}
#dias-semana { gap: 2px !important; }
#dias-semana button { padding: 3px 5px !important; font-size: 10px !important; }

.filtro-fecha input[type="date"] {
  padding: 4px 10px;
  font-size: 13px;
  border-radius: 6px;
  border: 2px solid #00cc44;
  background: #1c1c1c;
  color: #00cc44;
  height: 34px;
  box-sizing: border-box;
  font-weight: bold;
}

#btn-buscar-fecha {
  padding: 4px 10px;
  font-size: 12px;
  width: auto;
  max-width: none;
}

.marcadores {
  display: flex;
  gap: 6px;
  align-items: center;
}

.btn-marcar {
  padding: 6px 10px;
  font-size: 12px;
}

.btn-marcar.amarillo {
  background: #ffd700;
  color: black;
  box-shadow: 0 0 6px #ffe066;
}

.btn-marcar.amarillo:hover {
  background: #ffea00;
}

.btn-marcar.rojo {
  background: #00c853;
  color: white;
  box-shadow: 0 0 6px #69f0ae;
}

.btn-marcar.rojo:hover {
  background: #00e676;
}

.btn-marcar.activo {
  outline: 2px dashed #FFD700;
  animation: brilloBoton 1s infinite alternate;
  box-shadow: 0 0 10px #FFD700;
}

@keyframes brilloBoton {
  from { outline-color: #FFD700; box-shadow: 0 0 4px #FFD700; }
  to { outline-color: #fff200; box-shadow: 0 0 12px #fff200; }
}

#btn-pendiente {
  margin-top: 10px;
  margin-bottom: 12px;
  padding: 8px 16px;
  font-weight: bold;
  border-radius: 6px;
  background-color: orange;
  color: black;
  border: none;
  cursor: pointer;
}

.fila-error-control {
  background-color: #450000 !important;
  color: white;
}

.boton-amarillo {
  background-color: #222;
  color: #FFD700;
  border: 2px solid #FFD700;
  padding: 10px 20px;
  font-size: 1.2rem;
  border-radius: 6px;
  cursor: pointer;
  margin: 10px 0;
  width: 200px;
}

.modal-consulta {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
}

.modal-contenido {
  background: #1c1c1c;
  border: 2px solid gold;
  color: white;
  padding: 20px 30px;
  border-radius: 10px;
  text-align: center;
  min-width: 300px;
}

.btn-consulta {
  margin-top: 20px;
  background-color: gold;
  color: black;
  border: none;
  padding: 10px 20px;
  font-weight: bold;
  font-size: 1rem;
  cursor: pointer;
  border-radius: 6px;
}

/* 📱 Ajustes para tablets */
@media (max-width: 900px) {
  .turno-buttons {
    position: relative;
    top: auto;
    left: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  .turno-buttons button {
    width: 130px;
    padding: 8px;
    font-size: 0.85rem;
  }
}

/* 📱 Ajustes para pantallas pequeñas */
@media (max-width: 600px) {
  .top-header {
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }

  .turno-buttons {
    position: relative;
    top: auto;
    left: auto;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .turno-buttons button {
    width: 110px;
    font-size: 0.8rem;
    padding: 6px;
  }

  .titulo-hora-ajustada {
    transform: none;
    margin: 10px 0;
  }

  form, .filtros-flex, .marcadores {
    flex-direction: column;
    align-items: center;
  }

  #tabla-pendientes {
    width: 95%;
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: 10px;
  }

  #tabla-registros {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }

  #tabla-registros thead {
    display: table;
    width: 100%;
  }

  #tabla-registros tbody {
    display: table;
    width: 100%;
  }

  #tabla-registros th, #tabla-registros td {
    font-size: 0.8rem;
    padding: 6px;
  }
}

#btn-volver-arriba,
#btn-ir-abajo {
  position: fixed;
  right: 20px;
  width: 40px;
  height: 40px;
  padding: 0;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-weight: bold;
  border: 2px solid #fff;
  border-radius: 12px;
  font-size: 1.2rem;
  cursor: pointer;
  z-index: 999;
  display: none;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(4px);
}

#btn-volver-arriba {
  bottom: 20px;
}

#btn-ir-abajo {
  bottom: 70px;
}

#btn-volver-arriba:hover,
#btn-ir-abajo:hover {
  background-color: rgba(255, 255, 255, 0.3);
  transform: scale(1.08);
}

.separador-control {
  background-color: #0066cc88;
  font-weight: bold;
  color: white;
}

.titulo-central {
  margin-bottom: 5px;
}

#fecha-hora {
  margin-top: 0;
}

/* ✅ Posición de botones y layout */
.turno-buttons {
  position: absolute;
  top: 20px;
  left: 20px;
  display: flex;
  flex-direction: column;
  gap: 1.5px;
}

.turno-buttons button {
  display: block;
  margin: 8px 0;
  width: 160px;
  height: 44px;
  padding: 0 10px;
  font-size: 12px;
  background-color: #222;
  color: gold;
  border: 1px solid gold;
  font-weight: bold;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 10px;
  margin-bottom: 10px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.titulo-hora-ajustada {
  flex-grow: 1;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  padding-top: 10px;
  width: 100%;
}

.tab-bono {
  background-color: #222;
  color: gold;
  border: 1px solid gold;
  font-weight: bold;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.2s ease;
}

.tab-bono:hover {
  background-color: gold;
  color: black;
}

.tab-bono.activo-tab {
  background-color: gold;
  color: black;
  box-shadow: 0 0 8px gold;
}

#panel-juegos {
  margin-top: 12px;
  padding: 20px;
  background-color: #111;
  border: 2px solid gold;
  border-radius: 10px;
  color: white;
  font-family: sans-serif;
  max-width: 95%;
  margin-left: auto;
  margin-right: auto;
}

#panel-juegos input,
#panel-juegos select,
#panel-juegos button {
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 6px;
  border: none;
}

#panel-juegos table {
  width: 100%;
  margin-top: 16px;
  border-collapse: collapse;
  font-size: 0.95rem;
}

#panel-juegos th,
#panel-juegos td {
  padding: 8px;
  text-align: center;
  border: 1px solid #333;
}

#resumen-juegos {
  margin-top: 12px;
  font-weight: bold;
  color: #FFD700;
}

.casino-logeado-nombre {
  color: #39ff14;
  font-weight: 800;
  text-align: center;
}

/* === CELULAR (≤480px) === */
@media (max-width: 480px) {
  /* V1: pendientes fullwidth en celular (hoy se sale de pantalla) */
  #tabla-pendientes {
    position: fixed !important;
    width: 95% !important;
    right: 2.5% !important;
    left: 2.5% !important;
    top: auto !important;
    bottom: 60px !important;
  }

  /* V2: botones de monto más grandes para el toque */
  .btn-monto {
    height: 44px !important;
    font-size: 14px !important;
  }

  /* V3: botones de turno compactos (no se aprietan) */
  .turno-buttons button {
    width: 90px !important;
    font-size: 0.7rem !important;
    height: 38px !important;
  }

  /* V4: botón eliminar más grande para el toque */
  #modo-eliminar {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* V5: selector de días wrap en celular */
  .filtro-fecha { flex-wrap: wrap; justify-content: center; }
  #dias-semana { width: 100%; justify-content: center; order: 3; margin-top: 4px; }
}

