/* Base styles */
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.5;
}

/* Animation for file drop */
@keyframes pulse {
    0% { background-color: rgba(59, 130, 246, 0.05); }
    50% { background-color: rgba(59, 130, 246, 0.15); }
    100% { background-color: rgba(59, 130, 246, 0.05); }
}

.drop-zone-active {
    animation: pulse 1.5s infinite;
    border-color: #3B82F6 !important;
}

/* Image preview styles */
#previewContainer {
    position: relative;
    min-height: 300px;
}

.image-preview {
    display: flex;
    height: 100%;
}

.image-preview img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    margin: auto;
}

/* Split view for comparison */
.split-view {
    display: flex;
    height: 100%;
}

.split-view .original, .split-view .vector {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.split-view .divider {
    width: 2px;
    background-color: #E5E7EB;
    position: relative;
}

.split-view .divider-handle {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #3B82F6;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: ew-resize;
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Loading state */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-cols-3 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}