.convert-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem;
}

.upload-area {
    border: 2px dashed var(--primary-color);
    border-radius: 12px;
    padding: 3rem;
    text-align: center;
    background: var(--bg-light);
    transition: all 0.3s ease;
    cursor: pointer;
}

.upload-area:hover {
    border-color: var(--accent-color);
    background: var(--bg-white);
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.upload-text {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.upload-hint {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.file-input {
    display: none;
}

.convert-area {
    margin-top: 2rem;
}

.convert-controls {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    margin-bottom: 2rem;
}

.control-row {
    display: flex;
    gap: 2rem;
    align-items: end;
    margin-bottom: 1.5rem;
}

.control-row:last-child {
    margin-bottom: 0;
    justify-content: center;
}

.control-group {
    flex: 1;
}

.control-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.format-select {
    width: 100%;
    padding: 0.75rem;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-white);
    font-size: 1rem;
    color: var(--text-dark);
}

.quality-control {
    display: flex;
    flex-direction: column;
}

.quality-slider {
    width: 100%;
    height: 6px;
    border-radius: 3px;
    background: var(--bg-light);
    outline: none;
    -webkit-appearance: none;
    margin-right: 1rem;
}

.quality-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
}

.quality-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--primary-color);
    cursor: pointer;
    border: none;
}

.quality-value {
    font-weight: 600;
    color: var(--primary-color);
    margin-left: 0.5rem;
    min-width: 40px;
}

.progress-container {
    margin: 1rem 0;
    padding: 1rem;
    background: var(--bg-white);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: var(--bg-light);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 0%;
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.result-container {
    background: var(--bg-white);
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.preview-comparison {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.preview-item {
    text-align: center;
}

.preview-item h3 {
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-size: 1.1rem;
}

.preview-image {
    max-width: 100%;
    max-height: 300px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

.download-section {
    text-align: center;
    padding: 2rem;
    background: var(--success-bg, #f0f9f0);
    border-radius: 12px;
    margin-top: 2rem;
}

.download-section h3 {
    color: var(--success-color, #28a745);
    margin-bottom: 0.5rem;
}

.download-section p {
    color: var(--text-muted);
    margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
    .control-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .preview-comparison {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .convert-container {
        padding: 1rem;
    }
    
    .upload-area {
        padding: 2rem 1rem;
    }
}