.blur-editor-container {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    overflow: hidden;
    height: 85vh;
    min-height: 600px;
    display: flex;
    flex-direction: column;
    position: relative;
}

.editor-toolbar {
    padding: 10px 20px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid var(--border-color);
    z-index: 10;
}

.editor-toolbar.bottom-bar {
    border-top: 1px solid var(--border-color);
    border-bottom: none;
    justify-content: space-between;
    background: #f8fafc;
}

.tool-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-right: 15px;
    border-right: 1px solid var(--border-color);
}

.tool-group:last-child {
    border-right: none;
}

.icon-tool-btn {
    width: 38px;
    height: 38px;
    border: 1px solid var(--border-color);
    background: #fff;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.1rem;
    color: var(--text-dark);
    transition: all 0.2s;
}

.icon-tool-btn:hover {
    background: #eff6ff;
    color: var(--primary-blue);
    border-color: #bfdbfe;
}

.icon-tool-btn.active {
    background: var(--primary-blue);
    color: white;
    border-color: var(--primary-blue);
}

.icon-tool-btn.danger:hover {
    background: #fee2e2;
    color: #ef4444;
    border-color: #fca5a5;
}

.editor-workspace-blur {
    flex: 1;
    background: #e2e8f0;
    position: relative;
    overflow: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background-image:
        linear-gradient(45deg, #cbd5e1 25%, transparent 25%),
        linear-gradient(-45deg, #cbd5e1 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, #cbd5e1 75%),
        linear-gradient(-45deg, transparent 75%, #cbd5e1 75%);
    background-size: 20px 20px;
}

.upload-section {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    z-index: 20;
}

.canvas-wrapper {
    max-width: 100%;
    max-height: 100%;
    position: relative;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

.canvas-container {
    position: relative;
    user-select: none;
    line-height: 0;
}

#sourceVideo {
    display: block;
    max-width: 100%;
    max-height: 70vh;
    width: auto;
    height: auto;
    background: #000;
}

#overlayLayer {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    overflow: hidden;
}

.blur-object {
    position: absolute;
    border: 1px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.3);
    cursor: move;
    box-sizing: border-box;
    overflow: hidden;
}

.blur-object.circle {
    border-radius: 50%;
}

.blur-object.selected {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 1px var(--primary-blue), 0 0 0 4px rgba(59, 130, 246, 0.2);
    z-index: 10;
}

.resize-handle {
    width: 10px;
    height: 10px;
    background: #fff;
    border: 1px solid var(--primary-blue);
    position: absolute;
    display: none;
    z-index: 20;
}

.blur-object.selected .resize-handle {
    display: block;
}

.handle-nw {
    top: -6px;
    left: -6px;
    cursor: nw-resize;
}

.handle-ne {
    top: -6px;
    right: -6px;
    cursor: ne-resize;
}

.handle-sw {
    bottom: -6px;
    left: -6px;
    cursor: sw-resize;
}

.handle-se {
    bottom: -6px;
    right: -6px;
    cursor: se-resize;
}

.properties-panel {
    display: flex;
    align-items: center;
    gap: 15px;
}

.prop-label {
    font-size: 0.9rem;
    font-weight: 600;
}

.radio-group {
    display: flex;
    background: #e2e8f0;
    padding: 3px;
    border-radius: 6px;
}

.radio-option {
    cursor: pointer;
}

.radio-option input {
    display: none;
}

.radio-option span {
    display: inline-block;
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 4px;
    color: var(--text-light);
    transition: all 0.2s;
}

.radio-option input:checked+span {
    background: #fff;
    color: var(--primary-blue);
    font-weight: 600;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
}

.loader {
    width: 48px;
    height: 48px;
    border: 5px solid #e2e8f0;
    border-bottom-color: var(--primary-blue);
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
    margin-bottom: 20px;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

#progressText {
    font-weight: bold;
    color: var(--primary-blue);
}