
/* Background pattern */
body::before,
body::after {
    content: '';
    position: fixed;
    top: 0;
    bottom: 0;
    width: calc((100vw - 77rem) / 2);
    background-image: radial-gradient(circle, #d1d5db 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}
body::before {
    left: 0;
    -webkit-mask-image: radial-gradient(ellipse 60% 130% at 100% 50%, transparent 0%, black 100%);
    mask-image: radial-gradient(ellipse 60% 130% at 100% 50%, transparent 0%, black 100%);
}
body::after {
    right: 0;
    -webkit-mask-image: radial-gradient(ellipse 60% 130% at 0% 50%, transparent 0%, black 100%);
    mask-image: radial-gradient(ellipse 60% 130% at 0% 50%, transparent 0%, black 100%);
}
body > * {
    position: relative;
    z-index: 1;
}

/* Sellography Custom Styles */
[x-cloak] { display: none !important; }

.leaflet-container {
    font-family: inherit;
}

/* Custom scrollbar for webkit */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

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

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

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

/* Map drawing cursor styles */
.cursor-draw {
    cursor: crosshair !important;
}

.cursor-edit {
    cursor: move !important;
}

.cursor-delete {
    cursor: not-allowed !important;
}

/* Snap indicator animation */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.snap-indicator {
    animation: fadeIn 0.2s ease-out;
}

/* Vertex marker styles */
.vertex-marker {
    border-radius: 50%;
    width: 12px;
    height: 12px;
    margin-left: -6px !important;
    margin-top: -6px !important;
}

.vertex-marker:hover {
    background: #3b82f6;
    transform: scale(1.3);
    transition: transform 0.15s ease;
}

/* Street snap highlight */
.street-snap-line {
    stroke: #10b981;
    stroke-width: 4;
    stroke-opacity: 0.6;
    stroke-dasharray: 8, 4;
    animation: dash 1s linear infinite;
}

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

/* Region fill patterns */
.region-fill {
    fill-opacity: 0.15;
    transition: fill-opacity 0.2s ease;
}

.region-fill:hover {
    fill-opacity: 0.25;
}

/* Ensure dashboard orange colors work */
.bg-orange-100 {
    background-color: #ffedd5 !important;
}
.text-orange-600 {
    color: #ea580c !important;
}
.text-orange-800 {
    color: #9a3412 !important;
}

/* Loading spinner */
.spinner {
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3b82f6;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
