/* Export Workflow Styles */

/* Workflow mode button styling */
.export-button.workflow-mode {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: 1px solid #3b82f6;
    position: relative;
    overflow: hidden;
}

.export-button.workflow-mode::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.export-button.workflow-mode:hover::before {
    left: 100%;
}

/* Workflow indicator animation */
#workflow-mode-indicator {
    animation: workflowPulse 2s ease-in-out infinite;
}

@keyframes workflowPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.02);
    }
}

/* Workflow progress indicators */
.workflow-progress {
    position: relative;
}

.workflow-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(59, 130, 246, 0.1) 50%, transparent 70%);
    animation: workflowScan 2s linear infinite;
}

@keyframes workflowScan {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

/* Workflow status icons */
.workflow-status-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1rem;
    height: 1rem;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.workflow-status-icon.running {
    background-color: #3b82f6;
    animation: workflowSpin 1s linear infinite;
}

.workflow-status-icon.completed {
    background-color: #10b981;
}

.workflow-status-icon.error {
    background-color: #ef4444;
}

@keyframes workflowSpin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Enhanced export section for workflow mode */
.export-section.workflow-mode {
    border: 1px solid rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.05) 0%, rgba(29, 78, 216, 0.05) 100%);
}

.export-section.workflow-mode .export-header {
    border-bottom: 1px solid rgba(59, 130, 246, 0.2);
    padding-bottom: 1rem;
    margin-bottom: 1rem;
}

/* Workflow notification styles */
.workflow-notification {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 1000;
    max-width: 400px;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.workflow-notification.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    color: white;
}

.workflow-notification.error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.9) 0%, rgba(220, 38, 38, 0.9) 100%);
    color: white;
}

.workflow-notification.info {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.9) 0%, rgba(29, 78, 216, 0.9) 100%);
    color: white;
}

/* Workflow progress bar enhancements */
.export-progress-bar.workflow-mode {
    background: linear-gradient(90deg, #3b82f6, #1d4ed8, #3b82f6);
    background-size: 200% 100%;
    animation: workflowProgressGlow 2s ease-in-out infinite;
}

@keyframes workflowProgressGlow {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #workflow-mode-indicator {
        font-size: 0.75rem;
        padding: 0.5rem;
    }
    
    .workflow-notification {
        max-width: calc(100vw - 2rem);
        margin: 0 1rem;
    }
}

/* Dark mode specific adjustments */
@media (prefers-color-scheme: dark) {
    .export-section.workflow-mode {
        background: linear-gradient(135deg, rgba(59, 130, 246, 0.1) 0%, rgba(29, 78, 216, 0.1) 100%);
    }
}