/* Event Designer - Editor Specific Styles */

/* Event Area Boundary */
.event-area-boundary {
    stroke: #0d6efd;
    stroke-width: 2;
    stroke-dasharray: 10, 5;
    fill: rgba(13, 110, 253, 0.05);
}

/* Grid */
.canvas-grid line {
    stroke: #dee2e6;
    stroke-width: 1;
}

.canvas-grid line.major {
    stroke: #adb5bd;
    stroke-width: 1;
}

/* Selection */
.canvas-container .upper-canvas {
    cursor: default;
}

/* Element States */
.fabric-object-selected {
    border: 2px solid #0d6efd !important;
}

/* Tooltips for elements */
.element-tooltip {
    position: absolute;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    pointer-events: none;
    z-index: 1000;
    white-space: nowrap;
}

/* Polygon Drawing Mode */
.polygon-mode .canvas-container {
    cursor: crosshair;
}

.polygon-vertex {
    fill: #0d6efd;
    stroke: white;
    stroke-width: 2;
}

/* Loading Overlay */
.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 500;
}

/* Save Indicator */
.save-indicator {
    position: fixed;
    top: 70px;
    right: 20px;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 0.85rem;
    z-index: 1000;
    animation: fadeIn 0.3s;
}

.save-indicator.saving {
    background: #fff3cd;
    color: #856404;
}

.save-indicator.saved {
    background: #d4edda;
    color: #155724;
}

.save-indicator.error {
    background: #f8d7da;
    color: #721c24;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Area Indicator on Canvas */
.area-label {
    position: absolute;
    background: rgba(13, 110, 253, 0.9);
    color: white;
    padding: 2px 8px;
    font-size: 11px;
    border-radius: 2px;
    pointer-events: none;
}

/* Snap Guidelines */
.snap-guide {
    stroke: #dc3545;
    stroke-width: 1;
    stroke-dasharray: 4, 4;
}

/* Ruler (future) */
.ruler {
    position: absolute;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
}

.ruler-h {
    top: 0;
    left: var(--sidebar-width);
    right: var(--properties-width);
    height: 20px;
}

.ruler-v {
    top: 20px;
    left: var(--sidebar-width);
    width: 20px;
    bottom: var(--statusbar-height);
}

/* Element being dragged from library */
.dragging-from-library {
    opacity: 0.5;
}

/* Out of bounds warning */
.element-out-of-bounds {
    outline: 2px dashed #dc3545 !important;
    outline-offset: 2px;
}

/* Measurement display on hover */
.measurement-display {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    font-size: 10px;
    border-radius: 2px;
    pointer-events: none;
}
