/* ==========================================================================
   Docemoldy Canvas Styles
   ========================================================================== */

body {
    user-select: none;
    -webkit-user-select: none;
}

input, textarea {
    user-select: text;
    -webkit-user-select: text;
}

/* Subtle grid pattern for the canvas */
.canvas-grid {
    background-image: radial-gradient(#d8b4fe 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

.canvas-grid-dark {
    background-image: radial-gradient(#4c1d95 1.5px, transparent 1.5px);
    background-size: 32px 32px;
}

/* Transform origin for pan and zoom */
.transform-origin-top-left {
    transform-origin: 0 0;
}

#canvas-content {
    will-change: transform;
}

/* Re-enable pointer events on interactive elements inside the container */
.canvas-card, .price-bubble {
    pointer-events: auto;
}

/* SVG Line styling */
.svg-connection-line {
    fill: none;
    stroke: #8b5cf6; 
    stroke-width: 5;
    stroke-dasharray: 10 8;
    animation: dash 30s linear infinite;
    stroke-linecap: round;
    opacity: 0.9;
}

@keyframes dash {
    to { stroke-dashoffset: -1000; }
}

/* Hides scrollbars but allows scrolling */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}
.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Smooth drag transitions */
.canvas-card, .price-bubble {
    transition: box-shadow 0.2s ease;
}

.dragging {
    opacity: 0.95;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.toast {
    position: fixed;
    bottom: 84px;
    right: 24px;
    background: #4c1d95;
    color: #ffffff;
    padding: 12px 20px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 700;
    z-index: 3000;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.toast.show {
    transform: translateY(0);
    opacity: 1;
}

.selected-card {
    box-shadow: 0 0 0 4px #a855f7, 0 25px 50px -12px rgba(0, 0, 0, 0.25) !important;
}

.custom-resizer {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 20px;
    height: 20px;
    cursor: se-resize;
    z-index: 30;
}

.card-gallery img {
    pointer-events: none; /* Let drops hit the box */
}
