/* Image Enhancer Styles */
.image-enhancer-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    box-sizing: border-box;
}

.enhancer-upload-area {
    border: 2px dashed #ccc;
    border-radius: 12px;
    padding: 60px 20px;
    text-align: center;
    background: #fafafa;
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.enhancer-upload-area:hover,
.enhancer-upload-area.dragover {
    border-color: #2271b1;
    background: #f0f6fc;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.upload-content svg {
    color: #72777c;
    margin-bottom: 20px;
}

.upload-content h3 {
    margin: 0 0 12px 0;
    color: #2c3338;
    font-size: 1.5em;
    font-weight: 600;
}

.upload-content p {
    margin: 0 0 25px 0;
    color: #646970;
    font-size: 1em;
}

.enhancer-btn {
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
    padding: 12px 24px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
    color: #2c3338;
    line-height: 1.4;
}

.enhancer-btn:hover {
    background: #f0f0f1;
    border-color: #8c8f94;
    transform: translateY(-1px);
}

.enhancer-btn.primary {
    background: #2271b1;
    border-color: #2271b1;
    color: white;
}

.enhancer-btn.primary:hover {
    background: #135e96;
    border-color: #135e96;
}

.enhancer-btn.success {
    background: #00a32a;
    border-color: #00a32a;
    color: white;
}

.enhancer-btn.success:hover {
    background: #008a20;
    border-color: #008a20;
}

/* Preview Section */
#preview-section {
    text-align: center;
}

.image-preview {
    margin: 20px 0;
    display: inline-block;
    max-width: 100%;
}

.image-preview img {
    max-width: 300px;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Enhancement Options */
.enhancement-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 25px 0;
}

.level-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 15px;
    border: 2px solid #dcdcde;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    background: white;
}

.level-option:hover {
    border-color: #8c8f94;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.level-option input[type="radio"] {
    display: none;
}

.level-option input[type="radio"]:checked + .level-badge {
    background: #2271b1;
    color: white;
    transform: scale(1.1);
}

.level-option input[type="radio"]:checked ~ .level-label {
    color: #2271b1;
    font-weight: 600;
}

.level-badge {
    display: inline-block;
    background: #f6f7f7;
    color: #2c3338;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.level-label {
    font-size: 0.9em;
    color: #646970;
    transition: color 0.3s ease;
}

/* Progress Section */
.progress-container {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 30px 0;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.progress-bar {
    flex: 1;
    height: 16px;
    background: #f6f7f7;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #dcdcde;
    position: relative;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #2271b1, #135e96);
    border-radius: 8px;
    width: 0%;
    transition: width 0.4s ease;
    position: relative;
    overflow: hidden;
}

.progress-fill::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

.progress-text {
    font-weight: 700;
    color: #2c3338;
    min-width: 50px;
    text-align: center;
    font-size: 1.1em;
}

#progress-status {
    text-align: center;
    color: #646970;
    font-style: italic;
    margin-top: 10px;
    font-size: 0.95em;
}

/* Result Section */
.image-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    margin: 30px 0;
}

.image-box {
    text-align: center;
    background: white;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.image-box h5 {
    margin: 0 0 15px 0;
    color: #2c3338;
    font-size: 1.1em;
    font-weight: 600;
}

.image-box img {
    max-width: 100%;
    height: auto;
    max-height: 300px;
    border-radius: 6px;
    border: 1px solid #dcdcde;
    background: #fafafa;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 25px;
}

/* Error Message */
.error-message {
    background: #fcf0f1;
    border: 1px solid #d63638;
    color: #d63638;
    padding: 15px;
    border-radius: 6px;
    margin: 20px 0;
    text-align: center;
    font-weight: 500;
}

/* Responsive Design */
@media (max-width: 768px) {
    .image-enhancer-container {
        padding: 15px;
    }
    
    .enhancer-upload-area {
        padding: 40px 15px;
    }
    
    .image-comparison {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .enhancement-levels {
        grid-template-columns: 1fr;
    }
    
    .progress-container {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .action-buttons .enhancer-btn {
        width: 100%;
        max-width: 250px;
    }
}

@media (max-width: 480px) {
    .upload-content h3 {
        font-size: 1.3em;
    }
    
    .upload-content p {
        font-size: 0.9em;
    }
    
    .enhancer-btn {
        padding: 10px 20px;
        font-size: 13px;
    }
}