body {
    background-color: #f1f3f5;
    color: #1e293b;
    overflow-x: hidden;
}

@keyframes pulseGlowEdit {
    0%, 100% {
        box-shadow: 0 0 25px rgba(99, 102, 241, 0.45), 0 0 50px rgba(168, 85, 247, 0.25);
        border-color: #6366f1;
    }
    50% {
        box-shadow: 0 0 40px rgba(236, 72, 153, 0.55), 0 0 80px rgba(99, 102, 241, 0.4);
        border-color: #ec4899;
    }
}

.canvas-editing {
    animation: pulseGlowEdit 2.2s infinite ease-in-out;
    border-width: 4px !important;
    cursor: none;
}

@keyframes shieldPulse {
    0%, 100% {
        box-shadow: 0 0 20px rgba(245, 158, 11, 0.35), 0 0 40px rgba(234, 179, 8, 0.15);
        border-color: #f59e0b;
    }
    50% {
        box-shadow: 0 0 30px rgba(245, 158, 11, 0.6), 0 0 60px rgba(234, 179, 8, 0.3);
        border-color: #fbbf24;
    }
}

.canvas-shielded {
    animation: shieldPulse 3s infinite ease-in-out;
    border-width: 4px !important;
}

.canvas-default {
    border: 2px solid #e2e8f0;
    box-shadow: 0 20px 45px -10px rgba(0, 0, 0, 0.08), 0 10px 20px -5px rgba(0, 0, 0, 0.04);
}

#mainCanvas {
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

#customBrushDot {
    pointer-events: none;
    position: fixed;
    top: 0;
    left: 0;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    display: none;
    box-shadow: 0 0 4px rgba(0,0,0,0.45);
    border: 1.5px solid rgba(255,255,255,0.9);
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: #e2e8f0;
}
::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}
