/* ================================================
   CONTROLES DE CANVAS SIMPLIFICADOS
   Estilo inspirado en Comunidad Vegetal
   ================================================ */

/* Controles de Zoom Simplificados (esquina superior derecha) */
.canvas-zoom-controls {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 100;
    background: rgba(255, 255, 255, 0.95);
    border: 2px solid #000;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 4px 4px 0 rgba(0,0,0,0.15);
}

.zoom-btn-simple {
    width: 36px;
    height: 36px;
    background: #fff;
    border: 2px solid #000;
    border-radius: 4px;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000;
    font-family: 'JetBrains Mono', monospace;
}

.zoom-btn-simple:hover {
    background: #000;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}

.zoom-btn-simple:active {
    transform: translateY(0);
    box-shadow: 0 0 0 rgba(0,0,0,0.2);
}

/* Footer del Canvas Simplificado */
.canvas-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f5f5f5;
    border-top: 2px solid #000;
    font-family: 'JetBrains Mono', monospace;
}

.scale-info {
    font-size: 13px;
    font-weight: 600;
    color: #000;
}

.canvas-hint {
    font-size: 11px;
    color: #666;
    font-style: italic;
}

/* Canvas Wrapper con cursor de arrastre */
.canvas-wrapper {
    position: relative;
    cursor: grab;
}

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

/* Ocultar controles antiguos si existen */
.view-menu,
.zoom-controls:not(.canvas-zoom-controls),
.view-controls,
.pan-indicator,
.shortcuts-info {
    display: none !important;
}

/* Canvas Legend mejorada */
.canvas-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 8px 0;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #ddd;
    border-radius: 4px;
}

.legend-color {
    width: 16px;
    height: 16px;
    border: 2px solid #000;
    border-radius: 3px;
}

.legend-text {
    font-weight: 500;
    color: #000;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
}

/* Ajustes para mantener consistencia con Comunidad Vegetal */
.spatial-canvas-container {
    background: #fff;
    border: 3px solid #000;
    border-radius: 0;
    box-shadow: 6px 6px 0 rgba(0,0,0,0.1);
}

.canvas-header {
    padding: 16px 20px;
    background: #fff;
    border-bottom: 3px solid #000;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.canvas-header h3 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    color: #000;
}

/* Responsive */
@media (max-width: 768px) {
    .canvas-zoom-controls {
        top: 10px;
        right: 10px;
        padding: 6px;
        gap: 6px;
    }
    
    .zoom-btn-simple {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .canvas-footer {
        flex-direction: column;
        gap: 8px;
        padding: 10px;
    }
    
    .canvas-hint {
        text-align: center;
    }
}
