/* Progress Steps */
.progress-steps {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 30px 20px;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0.5;
    transition: all 0.3s;
}

.step.active {
    opacity: 1;
}

.step-number {
    width: 40px;
    height: 40px;
    background: #e5e7eb;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #6b7280;
}

.step.active .step-number {
    background: #2563eb;
    color: white;
}

.step-text {
    font-size: 0.9rem;
    font-weight: 500;
    color: #6b7280;
}

/* Images Container */
.images-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
    padding: 30px;
    max-height: 500px;
    overflow-y: auto;
}

.image-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.image-item:hover {
    transform: translateY(-5px);
}

/* Configuration Section */
.config-section {
    padding: 40px;
}

.config-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin: 30px 0;
}

.config-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.config-group label {
    font-weight: 600;
    color: #374151;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.form-control {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.slider {
    width: 100%;
    height: 8px;
    -webkit-appearance: none;
    background: #e5e7eb;
    border-radius: 4px;
    outline: none;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 24px;
    height: 24px;
    background: #2563eb;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.config-options {
    display: flex;
    gap: 30px;
    margin: 30px 0;
    flex-wrap: wrap;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #2563eb;
}

.config-actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
}

/* Progress Section */
.progress-container {
    margin: 40px 0;
}

.progress-bar {
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981, #3b82f6);
    width: 0%;
    transition: width 0.5s ease;
    border-radius: 6px;
}

.progress-text {
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    color: #2563eb;
    margin-bottom: 30px;
}

.progress-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.progress-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8fafc;
    border-radius: 10px;
    border-left: 4px solid #2563eb;
}

.progress-item i {
    font-size: 1.5rem;
    color: #2563eb;
}

/* Result Section */
.result-success {
    text-align: center;
    margin-bottom: 40px;
}

.success-icon {
    font-size: 80px;
    color: #10b981;
    margin-bottom: 20px;
}

.result-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.result-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 25px;
    background: #f8fafc;
    border-radius: 12px;
    border-left: 4px solid #2563eb;
}

.result-card i {
    font-size: 2.5rem;
    color: #2563eb;
}

/* Download Options */
.download-card {
    background: #f8fafc;
    border-radius: 15px;
    padding: 40px;
    margin-top: 30px;
}

.size-buttons {
    display: flex;
    gap: 15px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.size-btn {
    padding: 12px 24px;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    flex: 1;
    min-width: 120px;
}

.size-btn.active {
    background: #2563eb;
    color: white;
    border-color: #2563eb;
}

.custom-size {
    display: flex;
    gap: 10px;
    margin-top: 20px;
}

.custom-size input {
    flex: 1;
    padding: 12px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
}

.btn-small {
    padding: 12px 24px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
}

.download-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
}

/* Buttons */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-secondary {
    background: #f3f4f6;
    color: #374151;
}

.btn-secondary:hover {
    background: #e5e7eb;
}

.btn-success {
    background: #10b981;
    color: white;
}

.btn-success:hover {
    background: #059669;
}

.btn-danger {
    background: #ef4444;
    color: white;
}

.btn-danger:hover {
    background: #dc2626;
}

.btn-info {
    background: #3b82f6;
    color: white;
}

.btn-warning {
    background: #f59e0b;
    color: white;
}

/* Section Header */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
    border-bottom: 1px solid #e5e7eb;
}

.section-header h2 {
    font-size: 1.5rem;
    color: #1f2937;
}

.action-buttons {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.images-actions {
    display: flex;
    gap: 15px;
    padding: 30px;
    border-top: 1px solid #e5e7eb;
    flex-wrap: wrap;
}

/* Notification */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    transform: translateX(150%);
    transition: transform 0.4s;
    max-width: 400px;
    border-left: 5px solid #10b981;
}

.notification.show {
    transform: translateX(0);
}

.notification.error {
    border-left-color: #ef4444;
}

.notification.warning {
    border-left-color: #f59e0b;
}

.notification i {
    font-size: 1.5rem;
    color: #10b981;
}

.notification.error i {
    color: #ef4444;
}

.close-notification {
    background: none;
    border: none;
    color: #6b7280;
    cursor: pointer;
    padding: 5px;
    margin-left: auto;
}

/* Responsive */
@media (max-width: 768px) {
    .progress-steps {
        gap: 10px;
        padding: 20px 10px;
    }
    
    .step-text {
        font-size: 0.8rem;
    }
    
    .config-grid {
        grid-template-columns: 1fr;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .images-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .size-buttons {
        flex-direction: column;
    }
    
    .download-actions {
        flex-direction: column;
    }
}

