/* Custom styles to complement Bootstrap */

/* Pulsating button effect for workflow actions */
@keyframes glowPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0.7);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 10px 5px rgba(var(--bs-primary-rgb), 0.5);
        transform: scale(1.02);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(var(--bs-primary-rgb), 0);
        transform: scale(1);
    }
}

.btn-next-action {
    animation: glowPulse 2s infinite;
    position: relative;
    z-index: 1;
    font-weight: 500;
}

.btn-next-action:hover {
    animation: none;
    box-shadow: 0 0 10px 5px rgba(var(--bs-primary-rgb), 0.5);
}

/* Compact results summary */
.compact-results {
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.compact-results h4 {
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
}

/* Dropzone customization */
.dropzone {
    border: 2px dashed var(--bs-secondary);
    border-radius: 5px;
    background-color: var(--bs-body-bg);
    min-height: 150px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.dropzone:hover {
    border-color: var(--bs-primary);
}

.dropzone .dz-message {
    margin: 1em 0;
}

/* Tab navigation styles */
.nav-tabs .nav-link {
    color: var(--bs-secondary);
}

.nav-tabs .nav-link.active {
    color: var(--bs-primary);
    font-weight: 500;
}

/* Progress bar animation */
@keyframes progressAnimation {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.progress-bar {
    background: linear-gradient(45deg, var(--bs-primary), var(--bs-info), var(--bs-primary));
    background-size: 200% 200%;
    animation: progressAnimation 2s ease infinite;
}

/* Card styling */
.card {
    border: none;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

.card-header {
    background-color: var(--bs-dark-bg-subtle);
    border-bottom: 1px solid var(--bs-border-color);
}

/* Form control focus states */
.form-control:focus, .form-select:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
}

/* Spinner customization */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Statistics cards */
#processResults .col-md-3 h3 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

/* Alert customizations */
.alert-success, .alert-info, .alert-danger {
    border: none;
}

/* Responsive spacing adjustments */
@media (max-width: 767.98px) {
    .container {
        padding-left: 20px;
        padding-right: 20px;
    }
    
    #processTabs .nav-link {
        padding: 0.5rem 0.75rem;
        font-size: 0.9rem;
    }
}
