/* Watermark Remover Pro - Enhanced Brush Tool CSS */

/* Brush Tool Styles */
.wrp-brush-tool {
    margin-top: 20px;
    padding: 20px;
    background: var(--wrp-gray-50);
    border-radius: 12px;
}

.wrp-brush-controls {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}

.wrp-brush-control-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.wrp-brush-control-group label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--wrp-gray-700);
}

.wrp-brush-size-slider {
    width: 150px;
    height: 6px;
    border-radius: 3px;
    background: var(--wrp-gray-300);
    outline: none;
    -webkit-appearance: none;
}

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

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

.wrp-brush-size-value {
    display: inline-block;
    min-width: 40px;
    padding: 4px 8px;
    background: white;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

.wrp-brush-opacity-slider {
    width: 150px;
    height: 6px;
    border-radius: 3px;
    background: var(--wrp-gray-300);
    outline: none;
    -webkit-appearance: none;
}

.wrp-brush-opacity-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--wrp-secondary);
    cursor: pointer;
}

.wrp-brush-opacity-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--wrp-secondary);
    cursor: pointer;
    border: none;
}

.wrp-brush-actions {
    display: flex;
    gap: 12px;
}

.wrp-brush-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.wrp-brush-btn-primary {
    background: var(--wrp-primary);
    color: white;
}

.wrp-brush-btn-primary:hover {
    background: #4338CA;
    transform: translateY(-1px);
}

.wrp-brush-btn-secondary {
    background: var(--wrp-gray-300);
    color: var(--wrp-gray-700);
}

.wrp-brush-btn-secondary:hover {
    background: var(--wrp-gray-400);
}

.wrp-canvas-container {
    position: relative;
    display: inline-block;
    margin-bottom: 20px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: crosshair;
    max-width: 100%;
}

.wrp-canvas-container.brush-active {
    cursor: none;
}

.wrp-brush-cursor {
    position: absolute;
    border: 2px solid var(--wrp-primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 1000;
    background: rgba(79, 70, 229, 0.1);
}

.wrp-canvas-layers {
    position: relative;
    width: 100%;
    height: 100%;
}

.wrp-canvas-layer {
    position: absolute;
    top: 0;
    left: 0;
}

.wrp-mask-canvas {
    z-index: 2;
}

.wrp-zoom-controls {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 10;
}

.wrp-zoom-btn {
    width: 36px;
    height: 36px;
    background: white;
    border: 2px solid var(--wrp-gray-300);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: bold;
    color: var(--wrp-gray-700);
    transition: all 0.2s;
}

.wrp-zoom-btn:hover {
    background: var(--wrp-primary);
    color: white;
    border-color: var(--wrp-primary);
}

.wrp-undo-redo-controls {
    display: flex;
    gap: 8px;
}

.wrp-undo-btn, .wrp-redo-btn {
    padding: 8px 16px;
    background: white;
    border: 2px solid var(--wrp-gray-300);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: all 0.2s;
}

.wrp-undo-btn:hover, .wrp-redo-btn:hover {
    border-color: var(--wrp-primary);
    color: var(--wrp-primary);
}

.wrp-undo-btn:disabled, .wrp-redo-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.wrp-api-selector {
    margin-bottom: 20px;
    padding: 16px;
    background: white;
    border-radius: 12px;
    border: 2px solid var(--wrp-gray-200);
}

.wrp-api-selector label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--wrp-gray-700);
}

.wrp-api-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.wrp-api-option {
    position: relative;
}

.wrp-api-option input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.wrp-api-option label {
    display: block;
    padding: 12px 16px;
    background: var(--wrp-gray-50);
    border: 2px solid var(--wrp-gray-200);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    font-weight: 600;
}

.wrp-api-option input[type="radio"]:checked + label {
    background: var(--wrp-primary);
    color: white;
    border-color: var(--wrp-primary);
}

.wrp-api-option label:hover {
    border-color: var(--wrp-primary);
}

.wrp-api-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 0.75rem;
    border-radius: 4px;
    margin-left: 8px;
}

.wrp-api-badge.free {
    background: var(--wrp-secondary);
    color: white;
}

.wrp-api-badge.premium {
    background: #F59E0B;
    color: white;
}

.wrp-processing-indicator {
    display: none;
    padding: 16px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 8px;
    margin-top: 16px;
}

.wrp-processing-indicator.active {
    display: block;
}

.wrp-progress-bar {
    width: 100%;
    height: 8px;
    background: var(--wrp-gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 8px;
}

.wrp-progress-fill {
    height: 100%;
    background: var(--wrp-primary);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.wrp-brush-info {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(79, 70, 229, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--wrp-primary);
}

.wrp-keyboard-shortcuts {
    margin-top: 16px;
    padding: 12px;
    background: var(--wrp-gray-50);
    border-radius: 8px;
    font-size: 0.875rem;
}

.wrp-keyboard-shortcuts h4 {
    margin: 0 0 8px 0;
    font-size: 0.875rem;
    color: var(--wrp-gray-600);
}

.wrp-keyboard-shortcuts ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.wrp-keyboard-shortcuts li {
    display: flex;
    gap: 8px;
    margin-bottom: 4px;
}

.wrp-key {
    background: white;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid var(--wrp-gray-300);
    font-family: monospace;
    font-size: 0.75rem;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .wrp-brush-controls {
        flex-direction: column;
        align-items: stretch;
    }
    
    .wrp-brush-control-group {
        width: 100%;
    }
    
    .wrp-brush-size-slider,
    .wrp-brush-opacity-slider {
        width: 100%;
    }
    
    .wrp-api-options {
        grid-template-columns: 1fr;
    }
}
