/* VModel Face Swap Styles */
.vmodel-face-swap-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.vmodel-header {
    text-align: center;
    margin-bottom: 40px;
}

.vmodel-header h2 {
    color: #1a202c;
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.vmodel-header p {
    color: #718096;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

.vmodel-upload-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .vmodel-upload-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.vmodel-upload-box {
    background: #f8fafc;
    border: 2px dashed #cbd5e0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.vmodel-upload-box:hover {
    border-color: #667eea;
    background: #f0f4ff;
    transform: translateY(-2px);
}

.vmodel-upload-box.has-image {
    border-color: #48bb78;
    background: #f0fff4;
}

.vmodel-upload-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    opacity: 0.7;
}

.vmodel-upload-box h3 {
    color: #2d3748;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.vmodel-upload-box p {
    color: #718096;
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.vmodel-upload-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.vmodel-upload-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
}

.vmodel-preview {
    margin-top: 20px;
    display: none;
}

.vmodel-preview.active {
    display: block;
}

.vmodel-preview img {
    max-width: 100%;
    max-height: 200px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vmodel-controls {
    text-align: center;
    margin-bottom: 40px;
}

.vmodel-process-btn {
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);
    color: white;
    border: none;
    padding: 16px 40px;
    border-radius: 12px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(72, 187, 120, 0.3);
    min-width: 200px;
}

.vmodel-process-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(72, 187, 120, 0.4);
}

.vmodel-process-btn:disabled {
    background: #e2e8f0;
    color: #a0aec0;
    cursor: not-allowed;
    box-shadow: none;
}

.vmodel-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid #ffffff40;
    border-radius: 50%;
    border-top-color: #ffffff;
    animation: spin 1s ease-in-out infinite;
    margin-right: 8px;
}

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

.vmodel-result-section {
    text-align: center;
    padding: 30px;
    background: #f8fafc;
    border-radius: 12px;
    margin-bottom: 20px;
}

.vmodel-result-section h3 {
    color: #2d3748;
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 20px;
}

.vmodel-result-image img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    margin-bottom: 20px;
}

.vmodel-result-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.vmodel-download-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.vmodel-new-swap-btn {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vmodel-download-btn:hover,
.vmodel-new-swap-btn:hover {
    transform: translateY(-2px);
}

.vmodel-error {
    background: #fed7d7;
    color: #c53030;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #e53e3e;
    margin-top: 20px;
    font-weight: 500;
}

.vmodel-progress {
    background: #e2e8f0;
    border-radius: 10px;
    height: 8px;
    margin: 20px 0;
    overflow: hidden;
}

.vmodel-progress-bar {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100%;
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 10px;
}

.vmodel-status {
    text-align: center;
    margin: 15px 0;
    color: #718096;
    font-size: 0.95rem;
}

/* Drag and Drop styles */
.vmodel-upload-box.drag-over {
    border-color: #667eea;
    background: #f0f4ff;
    transform: scale(1.02);
}

/* Loading animation for upload boxes */
.vmodel-upload-box.uploading {
    position: relative;
}

.vmodel-upload-box.uploading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.2), transparent);
    animation: loading-shine 1.5s infinite;
}

@keyframes loading-shine {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Responsive improvements */
@media (max-width: 480px) {
    .vmodel-face-swap-container {
        padding: 20px;
        margin: 10px;
    }
    
    .vmodel-header h2 {
        font-size: 2rem;
    }
    
    .vmodel-upload-box {
        padding: 20px 15px;
    }
    
    .vmodel-process-btn {
        padding: 14px 30px;
        font-size: 1.1rem;
    }
    
    .vmodel-result-actions {
        flex-direction: column;
        align-items: center;
    }
}

/* Success state */
.vmodel-success {
    background: #c6f6d5;
    color: #22543d;
    padding: 15px 20px;
    border-radius: 8px;
    border-left: 4px solid #48bb78;
    margin-top: 20px;
    font-weight: 500;
}

/* Access actions */
.vmodel-access-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
    align-items: center;
}

.vmodel-register-btn,
.vmodel-login-btn {
    display: inline-block;
    padding: 14px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
    white-space: nowrap !important;
    width: 400px;
    font-size: 14px;
    line-height: 1.4;
}

.vmodel-register-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.vmodel-login-btn {
    background: #e2e8f0;
    color: #4a5568;
}

.vmodel-register-btn:hover,
.vmodel-login-btn:hover {
    transform: translateY(-2px);
    text-decoration: none;
} 