.converter-container {
    max-width: 800px;
}

/* Upload Section */
.upload-section {
    border: 2px dashed var(--card-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    text-align: center;
    background: rgba(255, 255, 255, 0.02);
    transition: all 0.2s;
    cursor: pointer;
    margin-bottom: var(--spacing-lg);
}

.upload-section:hover,
.upload-section.drag-over {
    border-color: var(--primary-color);
    background: rgba(59, 130, 246, 0.05);
}

.upload-content {
    pointer-events: none;
    /* Let clicks pass to container */
}

.upload-icon {
    font-size: 3rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.8;
}

.upload-section h3 {
    margin-bottom: var(--spacing-xs);
    color: var(--text-color);
}

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

/* Preview Section */
.preview-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-lg);
    animation: slideUp 0.3s ease;
}

.preview-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-md);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.image-wrapper {
    width: 100%;
    max-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: repeating-conic-gradient(#222 0% 25%, #333 0% 50%) 50% / 20px 20px;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: var(--spacing-md);
}

.image-wrapper img {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
}

.file-info {
    display: flex;
    gap: var(--spacing-md);
    color: var(--text-color);
    font-weight: 500;
}

.file-meta {
    color: var(--text-muted);
    font-weight: 400;
}

/* Controls */
.controls-panel {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.control-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.control-group label {
    color: var(--text-muted);
    font-size: 0.9rem;
}

select {
    width: 100%;
    padding: 0.8rem;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--card-border);
    border-radius: var(--radius-md);
    color: white;
    font-size: 1rem;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: var(--primary-color);
}

.btn-large {
    width: 100%;
    padding: 1rem;
    font-size: 1.1rem;
    margin-top: var(--spacing-sm);
}

.btn-text {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.5rem;
    margin-top: var(--spacing-xs);
}

.btn-text:hover {
    color: var(--text-color);
    text-decoration: underline;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hidden {
    display: none !important;
}