.tool-container {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: #cbd5e1;
    overflow: hidden;
}
.tool-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 1rem;
    border-bottom: 1px solid #1e293b;
    margin-bottom: 1rem;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}
.btn-undo-icon {
    background: #1e293b;
    color: #cbd5e1;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font-size: 11px;
    transition: all 0.2s;
}
.btn-undo-icon:hover:not(:disabled) {
    background: #334155;
    color: white;
}
.btn-undo-icon:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.header-pink-btn {
    height: 30px !important;
    padding: 0 10px !important;
    font-size: 11px !important;
    border-radius: 8px !important;
    background: #ec4899;
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}
.tool-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
}
.control-group {
    margin-bottom: 1.5rem;
}
.control-label {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
}
.control-label span:last-child {
    color: #ec4899;
}
.editor-range {
    width: 100%;
    accent-color: #ec4899;
}

/* AI Blur Button Area */
.main-action-area {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 4px 0;
    overflow: hidden;
    box-sizing: border-box;
}

.ai-blur-btn {
    background: linear-gradient(135deg, #db2777, #f43f5e);
    color: white;
    width: 100%;
    padding: 12px;
    border-radius: 30px;
    font-weight: 800;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px rgba(236, 72, 153, 0.3);
    transition: transform 0.2s;
    overflow: hidden;
    box-sizing: border-box;
}

.ai-blur-btn:hover {
    transform: scale(1.02);
}

/* Animated Border Loading State inside Button */
.ai-blur-btn.processing {
    border: 2px solid transparent;
    background: linear-gradient(#0b0f19, #0b0f19) padding-box, linear-gradient(90deg, #c084fc 0%, #7c3aed 32%, #2563eb 52%, #a855f7 72%, #c084fc 100%) border-box;
    background-size: 100% 100%, 240% 100%;
    animation: editor-border-flow 1.2s linear infinite;
    cursor: wait;
    opacity: 0.9;
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

@keyframes editor-border-flow {
    from { background-position: 0 0, 0% 0; }
    to { background-position: 0 0, 200% 0; }
}

.percentage-text {
    font-weight: 800;
    margin-left: 4px;
    color: #c084fc;
}
