/**
 * Video Background Remover - Custom Styles
 */

/* Frame item selection styling */
.frame-item.selected img {
    border-color: #3b82f6 !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.3);
}

.frame-item.selected .check-mark {
    display: flex !important;
}

/* Smooth transitions */
.frame-item img {
    transition: all 0.15s ease;
}

.frame-item:hover img {
    transform: scale(1.02);
}

/* Loading animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 2s linear infinite;
}

/* Drop zone active state */
#drop-zone.drag-over {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

/* View transitions */
.view {
    transition: opacity 0.2s ease;
}

/* Result preview animation */
#result-preview {
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Button disabled state */
button:disabled {
    cursor: not-allowed;
    opacity: 0.6;
}

/* Mobile responsive adjustments */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    #drop-zone {
        padding: 2rem 1rem;
    }

    #frames-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}
