.ie-dropzone {
    border: 2px dashed var(--border-color);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top, rgba(var(--primary-rgb), 0.08), transparent 55%),
        rgba(var(--primary-rgb), 0.02);
    padding: 3.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: border-color var(--transition-speed, 0.2s) ease, background-color var(--transition-speed, 0.2s) ease, transform var(--transition-speed, 0.2s) ease;
}

.ie-dropzone:hover,
.ie-dropzone.dragover {
    border-color: var(--primary-color);
    background-color: rgba(var(--primary-rgb), 0.06);
    transform: translateY(-1px);
}

.ie-dropzone__icon {
    font-size: 3.5rem;
    line-height: 1;
}

/* Fixed Preview Stage & Frame */
.ie-preview-stage {
    height: 480px;
    min-height: 480px;
    max-height: 480px;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background:
        radial-gradient(circle at top, rgba(var(--primary-rgb), 0.07), transparent 58%),
        linear-gradient(180deg, rgba(var(--primary-rgb), 0.03), rgba(var(--primary-rgb), 0.01));
    padding: 1rem;
    position: relative;
    box-sizing: border-box;
    display: flex;
}

.ie-preview-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 100%;
    min-height: 100%;
    margin: auto;
    flex-shrink: 0;
}

.ie-preview-image {
    display: block;
    max-width: none;
    max-height: none;
    user-select: none;
    -webkit-user-drag: none;
    transform-origin: center center;
    flex-shrink: 0;
}

/* Control Panel & Groups */
.ie-controls-panel {
    position: sticky;
    top: 1.25rem;
}

.ie-control-group {
    background: rgba(var(--primary-rgb), 0.02);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
    padding: 0.75rem 1rem;
}

.ie-control-group__label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted, #6c757d);
    margin-bottom: 0.5rem;
}

.ie-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 38px;
    height: 38px;
    padding: 0.375rem 0.5rem;
    font-size: 0.8125rem;
    font-weight: 500;
    border-radius: var(--radius-md, 6px);
    white-space: nowrap;
    transition: all var(--transition-speed, 0.2s) ease;
}

.ie-btn i {
    font-size: 1rem;
    line-height: 1;
}

.ie-btn-aspect {
    padding: 0.2rem 0.5rem;
    font-size: 0.75rem;
}

.ie-btn--primary {
    min-height: 48px;
    height: 48px;
    font-size: 1rem;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.25);
}

.ie-btn--primary:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), 0.35);
}

@media (max-width: 991.98px) {
    .ie-controls-panel {
        position: static;
        top: auto;
    }

    .ie-preview-stage {
        height: 360px;
        min-height: 360px;
        max-height: 360px;
    }
}

@media (max-width: 575.98px) {
    .ie-btn {
        padding: 0.25rem 0.35rem;
        font-size: 0.75rem;
    }

    .ie-btn i {
        font-size: 0.9rem;
    }
}
