/* Advanced Eraser Modal */
.advanced-eraser-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(12px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.eraser-modal-dialog {
    width: 100%;
    max-width: 920px;
    height: 88vh;
    background: #0F172A;
    border-radius: 18px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
}

.eraser-modal-top-bar {
    width: 100%;
    padding: 14px 20px;
    background: #1E293B;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.eraser-title-group {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-close-eraser-modal {
    background: transparent;
    border: none;
    color: #94A3B8;
    font-size: 1.4rem;
    cursor: pointer;
    line-height: 1;
}

.btn-close-eraser-modal:hover {
    color: #FFFFFF;
}

.eraser-canvas-viewport {
    flex: 1;
    width: 100%;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #0F172A;
    background-image: linear-gradient(45deg, #1E293B 25%, transparent 25%),
                      linear-gradient(-45deg, #1E293B 25%, transparent 25%),
                      linear-gradient(45deg, transparent 75%, #1E293B 75%),
                      linear-gradient(-45deg, transparent 75%, #1E293B 75%);
    background-size: 20px 20px;
    background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

#eraser-active-canvas {
    max-width: 90%;
    max-height: 90%;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    cursor: crosshair;
}

.eraser-brush-cursor-ring {
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.9);
    background: rgba(79, 70, 229, 0.2);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    display: none;
}

.eraser-bottom-control-bar {
    width: 100%;
    padding: 12px 20px;
    background: #1E293B;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.eraser-mode-btn-group {
    display: flex;
    align-items: center;
    background: #0F172A;
    padding: 4px;
    border-radius: 10px;
    gap: 4px;
}

.btn-eraser-tool {
    padding: 8px 14px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: #94A3B8;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-eraser-tool.active {
    background: #4F46E5;
    color: #FFFFFF;
}

.eraser-sliders-center-group {
    display: flex;
    align-items: center;
    gap: 20px;
}

.eraser-slider-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #FFFFFF;
    font-size: 0.78rem;
    font-weight: 600;
}

.eraser-right-action-group {
    display: flex;
    align-items: center;
    gap: 14px;
}

.zoom-level-badge {
    font-size: 0.78rem;
    font-weight: 600;
    color: #94A3B8;
}

.btn-apply-eraser-green {
    padding: 10px 22px;
    border-radius: 10px;
    border: none;
    background: #10B981;
    color: #FFFFFF;
    font-family: var(--font-heading);
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-apply-eraser-green:hover {
    background: #059669;
}
