/* Sorteo del Potro - Custom Styles */

/* Number grid */
.numero-grid {
    display: grid;
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
}

@media (max-width: 640px) {
    .numero-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 3px;
    }
}

.numero-btn {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.15s;
    border: 2px solid transparent;
    user-select: none;
}

.numero-btn.disponible {
    background-color: #f5f5f4;
    color: #44403c;
    border-color: #d6d3d1;
}

.numero-btn.disponible:hover {
    background-color: #fef3c7;
    border-color: #f59e0b;
}

.numero-btn.seleccionado {
    background-color: #b45309;
    color: white;
    border-color: #92400e;
    transform: scale(1.05);
}

.numero-btn.ocupado {
    background-color: #e7e5e4;
    color: #a8a29e;
    cursor: not-allowed;
    opacity: 0.6;
}

.numero-btn.filtro-oculto {
    display: none;
}

.numero-btn.confirmado {
    background-color: #dcfce7;
    color: #166534;
    border-color: #86efac;
    cursor: not-allowed;
}

/* Share canvas */
#shareCanvas {
    max-width: 100%;
    height: auto;
}

/* Status badges */
.badge {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-pendiente {
    background-color: #fef3c7;
    color: #92400e;
}

.badge-confirmado {
    background-color: #dcfce7;
    color: #166534;
}

.badge-rechazado {
    background-color: #fee2e2;
    color: #991b1b;
}

.badge-reservado {
    background-color: #e0e7ff;
    color: #3730a3;
}

/* Comprobante thumbnail */
.comprobante-thumb {
    max-width: 15rem;
    height: 15rem;
    object-fit: cover;
    border-radius: 0.5rem;
    border: 2px solid #d6d3d1;
    cursor: pointer;
    transition: border-color 0.15s, transform 0.15s;
}

.comprobante-thumb:hover {
    border-color: #f59e0b;
    transform: scale(1.05);
}

/* Lightbox overlay */
.lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    cursor: pointer;
}

.lightbox-overlay.hidden {
    display: none;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 0.5rem;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
}

}