/* ========================================
   Bulk Operations UI Styles
   ======================================== */

/* Smooth transitions for progress updates */
.progress-animation {
    transition: all 0.3s ease-in-out;
}

/* Job card hover effects */
.job-card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}

.job-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animated progress bar pulsing effect */
.progress-bar-animated {
    animation: progress-pulse 2s ease-in-out infinite;
}

@keyframes progress-pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.85;
    }
}

/* Loading spinner for bulk operations */
.bulk-loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    border-top-color: #594ae2;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Status badge animations */
.status-badge {
    animation: fade-in 0.3s ease-in;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Job history table row hover */
.job-history-row {
    transition: background-color 0.2s ease-in-out;
}

.job-history-row:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

/* Progress percentage text */
.progress-text {
    font-weight: 600;
    font-size: 1.1rem;
    transition: color 0.3s ease-in-out;
}

/* Success state color */
.progress-success {
    color: #4caf50;
}

/* Warning state color */
.progress-warning {
    color: #ff9800;
}

/* Error state color */
.progress-error {
    color: #f44336;
}

/* Batch progress indicator */
.batch-indicator {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 4px 12px;
    background-color: rgba(89, 74, 226, 0.1);
    border-radius: 16px;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Real-time update indicator */
.live-indicator {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #4caf50;
    font-size: 0.875rem;
}

.live-indicator::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4caf50;
    border-radius: 50%;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.5;
        transform: scale(0.8);
    }
}

/* Job card with status border */
.job-card-active {
    border-left: 4px solid #594ae2;
}

.job-card-success {
    border-left: 4px solid #4caf50;
}

.job-card-error {
    border-left: 4px solid #f44336;
}

.job-card-warning {
    border-left: 4px solid #ff9800;
}

/* Empty state illustration */
.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: rgba(0, 0, 0, 0.5);
}

.empty-state-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    opacity: 0.3;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .job-card {
        margin-bottom: 1rem;
    }

    .progress-text {
        font-size: 1rem;
    }

    .batch-indicator {
        font-size: 0.75rem;
        padding: 3px 10px;
    }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .job-card:hover {
        box-shadow: 0 4px 12px rgba(255, 255, 255, 0.1);
    }

    .job-history-row:hover {
        background-color: rgba(255, 255, 255, 0.05);
    }

    .batch-indicator {
        background-color: rgba(89, 74, 226, 0.2);
    }
}

/* Accessibility: Focus states */
button:focus-visible,
.mud-button:focus-visible {
    outline: 2px solid #594ae2;
    outline-offset: 2px;
}

/* Print styles - hide interactive elements */
@media print {
    .job-card-actions,
    .bulk-loading,
    .live-indicator {
        display: none;
    }

    .job-card {
        box-shadow: none;
        border: 1px solid #ddd;
    }

    .progress-bar-animated {
        animation: none;
    }
}
