/* styles.css */
body {
    font-family: 'Arial', sans-serif;
    background-color: #f0f0f0;
    margin: 0;
    padding: 0;
    color: #333;
}

header {
    background-color: #007bff;
    color: white;
    padding: 10px 0;
    text-align: center;
    margin-bottom: 20px;
}

header h1 {
    margin: 0;
}

.container {
    width: 80%;
    margin: 0 auto;
    text-align: center;
    padding-bottom: 300px; /* Añadir padding inferior */
}

h2 {
    color: #007bff;
    text-align: center;
}

.legend {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.legend span {
    display: flex;
    align-items: center;
    gap: 5px;
}

.legend .number-circle {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.numbers-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}

.number-circle {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
}

.number-circle.available {
    background-color: #28a745;
    color: white;
}

.number-circle.unavailable {
    background-color: #dc3545;
    color: white;
    cursor: not-allowed;
}

.form-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.form-popup.open {
    display: block;
}

input[type="text"],
input[type="number"],
textarea,
select {
    width: calc(100% - 22px);
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

button,
input[type="submit"] {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
}

button:hover,
input[type="submit"]:hover {
    background-color: #0056b3;
}

.footer {
    background-color: #007bff;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: fixed;
    bottom: 0;
    width: 100%;
}

.alert {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #28a745;
    color: white;
    padding: 15px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.alert.error {
    background-color: #dc3545;
}

/* Estilos para dispositivos móviles */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.5em;
    }

    .container {
        width: 90%;
    }

    .number-circle {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .form-popup {
        width: 90%;
        padding: 15px;
    }

    input[type="text"],
    input[type="number"],
    textarea,
    select {
        width: calc(100% - 22px);
        padding: 8px;
    }

    button,
    input[type="submit"] {
        padding: 8px 15px;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 1.2em;
    }

    .container {
        width: 95%;
    }

    .number-circle {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }

    .form-popup {
        width: 95%;
        padding: 10px;
    }

    input[type="text"],
    input[type="number"],
    textarea,
    select {
        width: calc(100% - 20px);
        padding: 6px;
    }

    button,
    input[type="submit"] {
        padding: 6px 10px;
    }

    .footer {
        padding: 10px 0;
    }
}
