@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #333;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
}

.container {
    background: white;
    padding: 2rem 3rem;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    margin:auto;
    width: 90%;
}

h1 {
    color: #1a237e;
    margin-bottom: 0.5rem;
}

p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

/* Estilo del input de archivo */
input[type="file"] {
    display: none;
}

.file-label {
    background-color: #3949ab;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    display: inline-block;
    transition: background-color 0.3s;
}

.file-label:hover {
    background-color: #1a237e;
}

#file-status {
    display: block;
    margin-top: 10px;
    font-weight: bold;
    color: #2e7d32;
}

button {
    background-color: #d81b60;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    margin-top: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

button:hover:not(:disabled) {
    background-color: #c2185b;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(216, 27, 96, 0.4);
}

button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

/* Resultado */
#resultado, #historial {
    margin-top: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.numero, .estrella {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    color: white;
    font-size: 1.5rem;
    font-weight: bold;
    width: 50px;
    height: 50px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.numero {
    background: linear-gradient(135deg, #1e88e5, #0d47a1);
}

.estrella {
    background: linear-gradient(135deg, #fdd835, #f57f17);
    color: #333;
}

/* Spinner de carga */
.hidden {
    display: none !important;
}

#loading p {
    margin-top: 1rem;
    color: #d81b60;
}

.spinner {
    border: 6px solid #f3f3f3;
    border-top: 6px solid #d81b60;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}