/* General */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-image: url(navidad.jpg);
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
}

.container {
    text-align: center;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 0 50px rgba(0, 255, 255, 0.2);
    width: 90%;
    max-width: 800px;
}
h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #00ffff;
    animation: fadeIn 1s ease-in-out;
}

p {
    margin-bottom: 20px;
}

/* Cuadrícula Responsiva */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 15px;
    margin-top: 20px;
}
/* Estilo de las bolitas (números) */
.number {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 70px;
    height: 70px;
    background-color: #222;
    border-radius: 50%;
    font-size: 20px;
    font-weight: bold;
    color: #00ffff;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.3);
}

.number:hover {
    transform: scale(1.1);
    background-color: #00ffff;
    color: #121212;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
}



/* Colores para los números */
.free {
    background-color: #B0B0B0; /* Plomo para los números libres */
}

.selected {
    background-color: #4CAF50; /* Verde para los seleccionados */
}

.reserved {
    background-color: #F44336; /* Rojo para los reservados */
}
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #121212;
    padding: 30px;
    border-radius: 10px;
    width: 90%;
    max-width: 700px;
    text-align: center;
    animation: fadeInModal 0.4s ease-in-out;
    overflow-y: auto;
}

/* Animación para mostrar el modal */
@keyframes fadeInModal {
    0% {
        opacity: 0;
        transform: translateY(-50px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}
/* Inputs futuristas */
input {
    width: 100%;
    max-width: 350px;
    padding: 15px;
    margin: 10px 0;
    border: none;
    border-radius: 30px;
    background: linear-gradient(135deg, #1e1e1e, #333);
    color: #00ffff;
    font-size: 16px;
    outline: none;
    text-align: center;
    transition: all 0.3s ease-in-out;
    box-shadow: inset 0 0 10px rgba(0, 255, 255, 0.3);
}

input:hover {
    background: linear-gradient(135deg, #333, #444);
    box-shadow: inset 0 0 15px rgba(0, 255, 255, 0.5);
}

input:focus {
    background: linear-gradient(135deg, #00ffff, #004d66);
    color: #fff;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.8);
}

/* Botones futuristas */
button.futuristic-btn {
    background: linear-gradient(135deg, #00ffff, #004d66);
    color: #121212;
    border: none;
    padding: 15px 30px;
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    margin-top: 20px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
}

button.futuristic-btn:hover {
    background: linear-gradient(135deg, #004d66, #00ffff);
    color: #00ffff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.6);
    transform: scale(1.05);
}

button.futuristic-btn:active {
    transform: scale(0.95);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.8);
}

/* Leyenda */
.legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 20px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    font-size: 14px;
    color: #fff;
}

.color-box {
    width: 20px;
    height: 20px;
    border-radius: 5px;
    margin-right: 10px;
}

/* Colores de las cajas en la leyenda */
.color-box.reserved {
    background-color: #ff5722;
}

.color-box.selected {
    background-color: #4caf50;
}

.color-box.free {
    background-color: #fff;
    border: 1px solid #ccc;
}
/* Tabla */
.table-container {
    overflow-x: auto;
    max-height: 300px;
    margin-top: 20px;
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th,
table td {
    padding: 12px;
    text-align: center;
    border: 1px solid #333;
}

table th {
    background-color: #00ffff;
    color: #121212;
}

table td {
    background-color: #222;
}

/* Input de búsqueda */
#search-box {
    margin-bottom: 15px;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: #222;
    color: #00ffff;
    outline: none;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}

/* Estilo de botones de paginación */
.pagination-controls {
    display: flex;
    justify-content: center;
    margin-top: 15px;
    gap: 5px;
}

.pagination-btn {
    background-color: #222;
    color: #00ffff;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.pagination-btn.active {
    background-color: #00ffff;
    color: #121212;
    font-weight: bold;
}

.pagination-btn:hover {
    background-color: #00ffff;
    color: #121212;
}
