.canvas-grid {
    background-image: 
        radial-gradient(circle, #e5e7eb 1px, transparent 1px);
    background-size: 20px 20px;
    background-position: 0 0;
}

.canvas-grid:hover {
    cursor: grab;
}

.canvas-grid:active {
    cursor: grabbing;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* Smooth transitions */
.transition-transform {
    transition: transform 0.2s ease-in-out;
}

/* Entity hover effects */
svg rect {
    transition: all 0.2s ease-in-out;
}

svg rect:hover {
    filter: brightness(1.1);
}

/* Relationship line styling */
svg path {
    transition: stroke-width 0.2s ease-in-out;
}

svg path:hover {
    stroke-width: 3 !important;
}

/* Timeline styling */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    background: #e5e7eb;
    border-radius: 3px;
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #4f46e5;
    border-radius: 50%;
    cursor: pointer;
}

input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #4f46e5;
    border-radius: 50%;
    cursor: pointer;
    border: none;
}

/* Button hover effects */
button {
    transition: all 0.2s ease-in-out;
}

button:hover {
    transform: translateY(-1px);
}

button:active {
    transform: translateY(0);
}

/* Loading animation for future use */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .canvas-grid {
        background-size: 15px 15px;
    }
    
    svg rect {
        stroke-width: 3;
    }
    
    svg text {
        font-size: 14px;
    }
}

/* Print styles */
@media print {
    .no-print {
        display: none !important;
    }
    
    .canvas-grid {
        background: white !important;
    }
}