/* Step-based UI Styling */
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    flex: 1;
}

.step-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bs-secondary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    margin-bottom: 0.5rem;
    border: 2px solid var(--bs-secondary);
    transition: all 0.3s ease;
}

.step-item.active .step-circle {
    background: var(--bs-primary);
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.25);
}

.step-item.completed .step-circle {
    background: var(--bs-success);
    border-color: var(--bs-success);
}

.step-line {
    height: 2px;
    background: var(--bs-secondary);
    flex: 1;
    margin: 0 1rem;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.step-line.completed {
    background: var(--bs-success);
}

/* Upload Area Styling */
.upload-area {
    border: 2px dashed var(--bs-border-color);
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.upload-area:hover {
    border-color: var(--bs-primary);
    background: rgba(13, 110, 253, 0.1);
}

.upload-area.drag-over {
    border-color: var(--bs-success);
    background: rgba(25, 135, 84, 0.1);
}

.upload-area.uploaded {
    border-color: var(--bs-success);
    background: rgba(25, 135, 84, 0.05);
}

.upload-section {
    height: 100%;
}

.filename-display {
    min-height: 60px;
}

/* Animation Classes */
.fade-in {
    animation: fadeIn 0.8s ease-in;
}

.slide-up {
    animation: slideUp 0.6s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Main Header Styling */
.main-header {
    background: linear-gradient(135deg, var(--bs-primary) 0%, var(--bs-info) 100%);
    color: white;
    padding: 3rem 0;
    text-align: center;
    margin-bottom: 2rem;
}

.main-header h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.main-header .subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0;
}

/* Card Enhancements */
.card {
    border: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
}

.card-header {
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid var(--bs-border-color);
    border-radius: 12px 12px 0 0 !important;
}

/* Form Enhancements */
.form-control:focus {
    border-color: var(--bs-primary);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

.form-range:focus {
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.25);
}

/* Button Enhancements */
.btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn:hover {
    transform: translateY(-1px);
}

.btn-lg {
    padding: 0.75rem 2rem;
    font-size: 1.1rem;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .main-header h1 {
        font-size: 2rem;
    }
    
    .main-header .subtitle {
        font-size: 1rem;
    }
    
    .step-item {
        font-size: 0.8rem;
    }
    
    .step-circle {
        width: 35px;
        height: 35px;
        font-size: 0.9rem;
    }
    
    .upload-area {
        padding: 1.5rem;
    }
}

/* Status Indicators */
.status-indicator {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

.status-indicator.success {
    background: var(--bs-success);
}

.status-indicator.warning {
    background: var(--bs-warning);
}

.status-indicator.error {
    background: var(--bs-danger);
}

/* Progress Bar */
.progress-wrapper {
    margin: 1rem 0;
}

.progress {
    height: 8px;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.progress-bar {
    border-radius: 4px;
    transition: width 0.3s ease;
    background: linear-gradient(90deg, var(--bs-primary), var(--bs-info));
}